Documentation
¶
Index ¶
- Constants
- func CheckSociVersion(requiredVersion string) error
- func ConvertSociIndexV2(ctx context.Context, client *client.Client, srcRef string, destRef string, ...) (string, error)
- func CreateSociIndexV1(rawRef string, gOpts types.GlobalCommandOptions, allPlatform bool, ...) error
- func PushSoci(rawRef string, gOpts types.GlobalCommandOptions, allPlatform bool, ...) error
- func SociAppendDefaultLabelsHandlerWrapper(indexDigest string, wrapper func(images.Handler) images.Handler) func(f images.Handler) images.Handler
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
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.
Click to show internal directories.
Click to hide internal directories.