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 ¶
WithCacheDirMode sets the cacheDir mode
func WithDataDirMode ¶
WithDataDirMode sets the dataDir mode
func WithDownloadUnixSocketPath ¶
WithDownloadUnixSocketPath set unix socket path.
func WithWorkHomeMode ¶
WithWorkHomeMode sets the workHome directory mode
Click to show internal directories.
Click to hide internal directories.