config

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

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       int64 `toml:"chunk_size"`
	FetchTimeoutSec int64 `toml:"fetching_timeout_sec"`
}

type Config

type Config struct {
	HTTPCacheType       string `toml:"http_cache_type"`
	FSCacheType         string `toml:"filesystem_cache_type"`
	ResolveResultEntry  int    `toml:"resolve_result_entry"`
	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"`

	// BlobConfig is config for layer blob management.
	BlobConfig `toml:"blob"`

	// DirectoryCacheConfig is config for directory-based cache.
	DirectoryCacheConfig `toml:"directory_cache"`
}

type DirectoryCacheConfig

type DirectoryCacheConfig struct {
	MaxLRUCacheEntry int  `toml:"max_lru_cache_entry"`
	MaxCacheFds      int  `toml:"max_cache_fds"`
	SyncAdd          bool `toml:"sync_add"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL