snapshotterutil

package
v2.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TargetSizeLabel is a label which contains layer size.
	TargetSizeLabel = "containerd.io/snapshot/remote/soci.size"

	// TargetSociIndexDigestLabel is a label which contains the digest of the soci index.
	TargetSociIndexDigestLabel = "containerd.io/snapshot/remote/soci.index.digest"
)

Variables

This section is empty.

Functions

func CheckSociVersion added in v2.1.3

func CheckSociVersion(requiredVersion string) error

CheckSociVersion checks if the SOCI binary version is at least the required version

func ConvertSociIndexV2 added in v2.1.3

func ConvertSociIndexV2(ctx context.Context, client *client.Client, srcRef string, destRef string, gOpts types.GlobalCommandOptions, sOpts types.SociOptions) (string, error)

ConvertSociIndexV2 converts an image to SOCI format and returns the converted image reference with digest

func CreateSociIndexV1 added in v2.1.3

func CreateSociIndexV1(rawRef string, gOpts types.GlobalCommandOptions, allPlatform bool, platforms []string, sOpts types.SociOptions) error

CreateSociIndexV1 creates a SOCI index(`rawRef`)

func PushSoci

func PushSoci(rawRef string, gOpts types.GlobalCommandOptions, allPlatform bool, platforms []string) error

PushSoci pushes a SOCI index(`rawRef`) `hostsDirs` are used to resolve image `rawRef`

func SociAppendDefaultLabelsHandlerWrapper

func SociAppendDefaultLabelsHandlerWrapper(indexDigest string, wrapper func(images.Handler) images.Handler) func(f images.Handler) images.Handler

SociAppendDefaultLabelsHandlerWrapper makes a handler which appends image's basic information to each layer descriptor as annotations during unpack. These annotations will be passed to this remote snapshotter as labels and used to construct source information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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