Documentation ¶
Index ¶
- func BuildCommand(opts []Opt) ([]string, error)
- type DaemonCommand
- type Opt
- func WithAPISock(api string) Opt
- func WithBootstrap(b string) Opt
- func WithConfig(config 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 WithMode(m string) Opt
- func WithMountpoint(m 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"` Supervisor string `type:"param" name:"supervisor"` LogFile string `type:"param" name:"log-file"` }
Define how to build a command line to start a nydusd daemon
type Opt ¶
type Opt = func(cmd *DaemonCommand)
func WithAPISock ¶
func WithBootstrap ¶
func WithConfig ¶
func WithFscacheDriver ¶
func WithFscacheThreads ¶
func WithLogFile ¶
func WithLogLevel ¶
func WithMountpoint ¶
func WithSupervisor ¶
func WithThreadNum ¶
func WithUpgrade ¶
func WithUpgrade() Opt
Click to show internal directories.
Click to hide internal directories.