convertor

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 31 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexConvertFunc added in v0.5.2

func IndexConvertFunc(opts ...Option) converter.ConvertFunc

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 Option added in v0.5.2

type Option func(o *options) error

func WithClient added in v0.5.2

func WithClient(client *containerd.Client) Option

func WithDbstr added in v0.5.2

func WithDbstr(dbstr string) Option

func WithFsType added in v0.5.2

func WithFsType(fsType string) Option

func WithImageRef added in v0.5.2

func WithImageRef(imgRef string) Option

func WithResolver added in v0.5.2

func WithResolver(resolver remotes.Resolver) Option

type OverlaybdLayer

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

Jump to

Keyboard shortcuts

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