package plugin

import "github.com/containerd/containerd/metadata/plugin"

Index

Constants

const (
	// SharingPolicyShared represents the "shared" sharing policy
	SharingPolicyShared = "shared"
	// SharingPolicyIsolated represents the "isolated" sharing policy
	SharingPolicyIsolated = "isolated"
)

Types

type BoltConfig

type BoltConfig struct {
	// ContentSharingPolicy sets the sharing policy for content between
	// namespaces.
	//
	// The default mode "shared" will make blobs available in all
	// namespaces once it is pulled into any namespace. The blob will be pulled
	// into the namespace if a writer is opened with the "Expected" digest that
	// is already present in the backend.
	//
	// The alternative mode, "isolated" requires that clients prove they have
	// access to the content by providing all of the content to the ingest
	// before the blob is added to the namespace.
	//
	// Both modes share backing data, while "shared" will reduce total
	// bandwidth across namespaces, at the cost of allowing access to any blob
	// just by knowing its digest.
	ContentSharingPolicy string `toml:"content_sharing_policy"`
}

BoltConfig defines the configuration values for the bolt plugin, which is loaded here, rather than back registered in the metadata package.

func (*BoltConfig) Validate

func (bc *BoltConfig) Validate() error

Validate validates if BoltConfig is valid

Source Files

plugin.go

Version
v1.7.0-rc.0
Published
Feb 27, 2023
Platform
js/wasm
Imports
12 packages
Last checked
18 minutes ago

Tools for package owners.