Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Default path to OCI-compliant CAS SociContentStorePath = "/var/lib/soci-snapshotter-grpc/content/" // Default path to snapshotter root dir SociSnapshotterRootPath = "/var/lib/soci-snapshotter-grpc/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundFetchConfig ¶
type BackgroundFetchConfig struct { Disable bool `toml:"disable"` // SilencePeriodMsec defines the time (in ms) the background fetcher // will be paused for when a new image is mounted. SilencePeriodMsec int64 `toml:"silence_period_msec"` // FetchPeriodMsec specifies how often a background fetch will occur. // The background fetcher will fetch one span every FetchPeriodMsec. FetchPeriodMsec int64 `toml:"fetch_period_msec"` // MaxQueueSize specifies the maximum size of the work queue // i.e., the maximum number of span managers that can be queued // in the background fetcher. MaxQueueSize int `toml:"max_queue_size"` // EmitMetricPeriodSec is the amount of interval (in second) at which the background // fetcher emits metrics EmitMetricPeriodSec int64 `toml:"emit_metric_period_sec"` }
type BlobConfig ¶
type BlobConfig struct { ValidInterval int64 `toml:"valid_interval"` CheckAlways bool `toml:"check_always"` FetchTimeoutSec int64 `toml:"fetching_timeout_sec"` ForceSingleRangeMode bool `toml:"force_single_range_mode"` MaxRetries int `toml:"max_retries"` MinWaitMsec int64 `toml:"min_wait_msec"` MaxWaitMsec int64 `toml:"max_wait_msec"` // MaxSpanVerificationRetries defines the number of additional times fetch // will be invoked in case of span verification failure. MaxSpanVerificationRetries int `toml:"max_span_verification_retries"` }
type Config ¶
type Config struct { HTTPCacheType string `toml:"http_cache_type"` FSCacheType string `toml:"filesystem_cache_type"` ResolveResultEntry int `toml:"resolve_result_entry"` Debug bool `toml:"debug"` AllowNoVerification bool `toml:"allow_no_verification"` DisableVerification bool `toml:"disable_verification"` MaxConcurrency int64 `toml:"max_concurrency"` NoPrometheus bool `toml:"no_prometheus"` MountTimeoutSec int64 `toml:"mount_timeout_sec"` FuseMetricsEmitWaitDurationSec int64 `toml:"fuse_metrics_emit_wait_duration_sec"` // BlobConfig is config for layer blob management. BlobConfig `toml:"blob"` // DirectoryCacheConfig is config for directory-based cache. DirectoryCacheConfig `toml:"directory_cache"` FuseConfig `toml:"fuse"` BackgroundFetchConfig `toml:"background_fetch"` }
type DirectoryCacheConfig ¶
type FuseConfig ¶
type FuseConfig struct { // AttrTimeout defines overall timeout attribute for a file system in seconds. AttrTimeout int64 `toml:"attr_timeout"` // EntryTimeout defines TTL for directory, name lookup in seconds. EntryTimeout int64 `toml:"entry_timeout"` // NegativeTimeout defines the overall entry timeout for failed lookups. NegativeTimeout int64 `toml:"negative_timeout"` // LogFuseOperations enables logging of operations on FUSE FS. This is to be used // for debugging purposes only. This option may emit sensitive information, // e.g. filenames and paths within an image LogFuseOperations bool `toml:"log_fuse_operations"` }
Click to show internal directories.
Click to hide internal directories.