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 DefaultCacheDir = "/var/cache/dragonfly"
View Source
var DefaultCacheDirMode = os.FileMode(0755)
View Source
var DefaultConfigDir = "/etc/dragonfly"
View Source
var DefaultDataDir = "/var/lib/dragonfly"
View Source
var DefaultDataDirMode = os.FileMode(0755)
View Source
var DefaultDownloadUnixSocketPath = "/var/run/dfdaemon.sock"
View Source
var DefaultLogDir = "/var/log/dragonfly"
View Source
var DefaultPluginDir = "/usr/local/dragonfly/plugins"
View Source
var DefaultWorkHome = "/usr/local/dragonfly"
View Source
var DefaultWorkHomeMode = os.FileMode(0755)
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.