package convertor

import "github.com/containerd/accelerated-container-image/pkg/convertor"

Index

Functions

func CreateImage

func CreateImage(ctx context.Context, is images.Store, imgName string, imgDesc ocispec.Descriptor) error

func NerdctlConvert

func NerdctlConvert(ctx context.Context, client *containerd.Client, srcImage, targetImage, fsType string) error

func UniquePart

func UniquePart() string

NOTE: based on https://github.com/containerd/containerd/blob/v1.4.3/rootfs/apply.go#L181-L187

Types

type ImageConvertor

type ImageConvertor interface {
	Convert(ctx context.Context, srcManifest ocispec.Manifest, fsType string) (ocispec.Descriptor, error)
}

func NewOverlaybdConvertor

func NewOverlaybdConvertor(ctx context.Context, cs content.Store, sn snapshots.Snapshotter, resolver remotes.Resolver, ref string, dbstr string) (ImageConvertor, error)

type OverlaybdLayer

type OverlaybdLayer struct {
	Host       string
	Repo       string
	ChainID    string
	DataDigest string
	DataSize   int64
}

Source Files

convertor.go

Version
v0.5.1
Published
Oct 28, 2022
Platform
linux/amd64
Imports
31 packages
Last checked
7 minutes ago

Tools for package owners.