package command
import "github.com/containerd/nydus-snapshotter/pkg/daemon/command"
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
Functions ¶
func BuildCommand ¶
Build exec style command line
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 ¶
func WithBootstrap ¶
func WithConfig ¶
func WithFailoverPolicy ¶
func WithFscacheDriver ¶
func WithFscacheThreads ¶
func WithID ¶
func WithLogFile ¶
func WithLogLevel ¶
func WithLogRotationSize ¶
func WithMode ¶
func WithMountpoint ¶
func WithPrefetchFiles ¶
func WithSupervisor ¶
func WithThreadNum ¶
func WithUpgrade ¶
func WithUpgrade() Opt
Source Files ¶
- Version
- v0.15.15 (latest)
- Published
- Apr 17, 2026
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 1 hour ago –
Tools for package owners.