21 lines
611 B
Go
21 lines
611 B
Go
package nas
|
|
|
|
import "time"
|
|
|
|
type NASConfig struct {
|
|
// Path is the destination as configured. It may be a UNC path, an
|
|
// smb:// URL, or a directory on this host; see ParseLocation.
|
|
Path string
|
|
Username string
|
|
Password string
|
|
Timeout time.Duration
|
|
RetryLimit int
|
|
VerifySize bool
|
|
// AutoMount allows the recorder to mount an SMB share itself when the
|
|
// host has not already mounted it. Linux only, and requires root, so it
|
|
// is off by default in favour of a clear "mount it first" error.
|
|
AutoMount bool
|
|
// MountPoint overrides where AutoMount attaches the share.
|
|
MountPoint string
|
|
}
|