Documentation
¶
Index ¶
- func BuildCommand(opts []Opt) ([]string, error)
- type DaemonCommand
- type Opt
- func WithAPISock(api string) Opt
- func WithBackendSource(source string) Opt
- func WithBootstrap(b string) Opt
- func WithConfig(config string) Opt
- func WithFailoverPolicy(policy string) Opt
- func WithFscacheDriver(w string) Opt
- func WithFscacheThreads(num int) Opt
- func WithID(id string) Opt
- func WithLogFile(l string) Opt
- func WithLogLevel(l string) Opt
- func WithLogRotationSize(l int) Opt
- func WithMode(m string) Opt
- func WithMountpoint(m string) Opt
- func WithPrefetchFiles(p string) Opt
- func WithSupervisor(s string) Opt
- func WithThreadNum(num int) Opt
- func WithUpgrade() Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DaemonCommand ¶
type DaemonCommand struct {
// "singleton" "fuse"
Mode string `type:"subcommand"`
// "blobcache" "fscache" "virtiofs"
FscacheDriver string `type:"param" name:"fscache"`
FscacheThreads string `type:"param" name:"fscache-threads"`
Upgrade bool `type:"flag" name:"upgrade" default:""`
ThreadNum string `type:"param" name:"thread-num"`
// `--id` is required by `--supervisor` when starting nydusd
ID string `type:"param" name:"id"`
Config string `type:"param" name:"config"`
Bootstrap string `type:"param" name:"bootstrap"`
Mountpoint string `type:"param" name:"mountpoint"`
APISock string `type:"param" name:"apisock"`
LogLevel string `type:"param" name:"log-level"`
LogRotationSize int `type:"param" name:"log-rotation-size"`
Supervisor string `type:"param" name:"supervisor"`
LogFile string `type:"param" name:"log-file"`
PrefetchFiles string `type:"param" name:"prefetch-files"`
BackendSource string `type:"param" name:"backend-source"`
FailoverPolicy string `type:"param" name:"failover-policy"`
}
Define how to build a command line to start a nydusd daemon
type Opt ¶
type Opt = func(cmd *DaemonCommand)
func WithAPISock ¶
func WithBackendSource ¶ added in v0.13.5
func WithBootstrap ¶
func WithConfig ¶
func WithFailoverPolicy ¶ added in v0.15.5
func WithFscacheDriver ¶
func WithFscacheThreads ¶
func WithLogFile ¶
func WithLogLevel ¶
func WithLogRotationSize ¶ added in v0.10.0
func WithMountpoint ¶
func WithPrefetchFiles ¶ added in v0.12.0
func WithSupervisor ¶
func WithThreadNum ¶
func WithUpgrade ¶
func WithUpgrade() Opt
Click to show internal directories.
Click to hide internal directories.