Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TargetSkipVerifyLabel is a snapshot label key that indicates to skip content // verification for the layer. TargetSkipVerifyLabel = "containerd.io/snapshot/remote/stargz.skipverify" // TargetPrefetchSizeLabel is a snapshot label key that indicates size to prefetch // the layer. If the layer is eStargz and contains prefetch landmarks, these config // will be respeced. TargetPrefetchSizeLabel = "containerd.io/snapshot/remote/stargz.prefetch" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobConfig ¶
type BlobConfig struct { ValidInterval int64 `toml:"valid_interval"` CheckAlways bool `toml:"check_always"` // ChunkSize is the granularity at which background fetch and on-demand reads // are fetched from the remote registry. ChunkSize int64 `toml:"chunk_size"` FetchTimeoutSec int64 `toml:"fetching_timeout_sec"` ForceSingleRangeMode bool `toml:"force_single_range_mode"` // PrefetchChunkSize is the maximum bytes transferred per http GET from remote registry // during prefetch. It is recommended to have PrefetchChunkSize > ChunkSize. // If PrefetchChunkSize < ChunkSize prefetch bytes will be fetched as a single http GET, // else total GET requests for prefetch = ceil(PrefetchSize / PrefetchChunkSize). PrefetchChunkSize int64 `toml:"prefetch_chunk_size"` MaxRetries int `toml:"max_retries"` MinWaitMSec int `toml:"min_wait_msec"` MaxWaitMSec int `toml:"max_wait_msec"` }
type Config ¶
type Config struct { HTTPCacheType string `toml:"http_cache_type"` FSCacheType string `toml:"filesystem_cache_type"` // ResolveResultEntryTTLSec is TTL (in sec) to cache resolved layers for // future use. (default 120s) ResolveResultEntryTTLSec int `toml:"resolve_result_entry_ttl_sec"` ResolveResultEntry int `toml:"resolve_result_entry"` // deprecated PrefetchSize int64 `toml:"prefetch_size"` PrefetchTimeoutSec int64 `toml:"prefetch_timeout_sec"` NoPrefetch bool `toml:"noprefetch"` NoBackgroundFetch bool `toml:"no_background_fetch"` 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"` // BlobConfig is config for layer blob management. BlobConfig `toml:"blob"` // DirectoryCacheConfig is config for directory-based cache. DirectoryCacheConfig `toml:"directory_cache"` FuseConfig `toml:"fuse"` }
type DirectoryCacheConfig ¶
type FuseConfig ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.