Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultDaemonMode DaemonMode = DaemonModeMultiple DefaultLogLevel string = "info" )
View Source
const ( FsDriverFusedev string = "fusedev" FsDriverFscache string = "fscache" )
Variables ¶
View Source
var SnapshotsDir string
Functions ¶
Types ¶
type Config ¶
type Config struct {
Address string `toml:"-"`
ConvertVpcRegistry bool `toml:"-"`
DaemonCfgPath string `toml:"daemon_cfg_path"`
PublicKeyFile string `toml:"-"`
RootDir string `toml:"-"`
CacheDir string `toml:"cache_dir"`
GCPeriod time.Duration `toml:"gc_period"`
ValidateSignature bool `toml:"validate_signature"`
NydusdBinaryPath string `toml:"nydusd_binary_path"`
NydusImageBinaryPath string `toml:"nydus_image_binary"`
DaemonMode DaemonMode `toml:"daemon_mode"`
FsDriver string `toml:"fs_driver"`
SyncRemove bool `toml:"sync_remove"`
EnableMetrics bool `toml:"enable_metrics"`
MetricsFile string `toml:"metrics_file"`
EnableStargz bool `toml:"enable_stargz"`
LogLevel string `toml:"-"`
LogDir string `toml:"log_dir"`
LogToStdout bool `toml:"log_to_stdout"`
DisableCacheManager bool `toml:"disable_cache_manager"`
EnableNydusOverlayFS bool `toml:"enable_nydus_overlayfs"`
NydusdThreadNum int `toml:"nydusd_thread_num"`
CleanupOnClose bool `toml:"cleanup_on_close"`
KubeconfigPath string `toml:"kubeconfig_path"`
EnableKubeconfigKeychain bool `toml:"enable_kubeconfig_keychain"`
RotateLogMaxSize int `toml:"log_rotate_max_size"`
RotateLogMaxBackups int `toml:"log_rotate_max_backups"`
RotateLogMaxAge int `toml:"log_rotate_max_age"`
RotateLogLocalTime bool `toml:"log_rotate_local_time"`
RotateLogCompress bool `toml:"log_rotate_compress"`
APISocket string `toml:"api_socket"`
RecoverPolicy string `toml:"recover_policy"`
}
func (*Config) FillUpWithDefaults ¶ added in v0.4.0
func (*Config) SetupNydusBinaryPaths ¶
type DaemonMode ¶ added in v0.4.0
type DaemonMode string
Define a policy how to fork nydusd daemon and attach file system instances to serve.
const ( // One nydusd, one rafs instance DaemonModeMultiple DaemonMode = "multiple" DaemonModeShared DaemonMode = "shared" // No nydusd daemon is needed to be started. Snapshotter does not start any nydusd // and only interacts with containerd with mount slice to pass necessary configuration // to container runtime DaemonModeNone DaemonMode = "none" DaemonModeInvalid DaemonMode = "" )
type SnapshotterConfig ¶ added in v0.4.0
func LoadSnapshotterConfig ¶ added in v0.4.0
func LoadSnapshotterConfig(snapshotterConfigPath string) (*SnapshotterConfig, error)
Click to show internal directories.
Click to hide internal directories.