Documentation
¶
Index ¶
- Variables
- type Dfpath
- type Option
- func WithCacheDir(dir string) Option
- func WithCacheDirMode(mode fs.FileMode) Option
- func WithDataDir(dir string) Option
- func WithDataDirMode(mode fs.FileMode) Option
- func WithDownloadUnixSocketPath(path string) Option
- func WithLogDir(dir string) Option
- func WithPluginDir(dir string) Option
- func WithWorkHome(dir string) Option
- func WithWorkHomeMode(mode fs.FileMode) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultWorkHome = "/usr/local/dragonfly" DefaultWorkHomeMode = os.FileMode(0700) DefaultCacheDir = "/var/cache/dragonfly" DefaultCacheDirMode = os.FileMode(0700) DefaultConfigDir = "/etc/dragonfly" DefaultLogDir = "/var/log/dragonfly" DefaultDataDir = "/var/lib/dragonfly" DefaultDataDirMode = os.FileMode(0700) DefaultPluginDir = "/usr/local/dragonfly/plugins" DefaultDownloadUnixSocketPath = "/var/run/dfdaemon.sock" )
Functions ¶
This section is empty.
Types ¶
type Dfpath ¶
type Dfpath interface {
WorkHome() string
WorkHomeMode() fs.FileMode
CacheDir() string
CacheDirMode() fs.FileMode
LogDir() string
DataDir() string
DataDirMode() fs.FileMode
PluginDir() string
DaemonSockPath() string
DaemonLockPath() string
DfgetLockPath() string
}
Dfpath is the interface used for init project path.
type Option ¶
type Option func(d *dfpath)
Option is a functional option for configuring the dfpath.
func WithCacheDirMode ¶ added in v2.0.30
WithCacheDirMode sets the cacheDir mode
func WithDataDirMode ¶ added in v2.0.30
WithDataDirMode sets the dataDir mode
func WithDownloadUnixSocketPath ¶ added in v2.0.6
WithDownloadUnixSocketPath set unix socket path.
func WithPluginDir ¶ added in v2.0.5
WithPluginDir set plugin directory.
func WithWorkHomeMode ¶ added in v2.0.30
WithWorkHomeMode sets the workHome directory mode
Click to show internal directories.
Click to hide internal directories.