package convertor
import "github.com/containerd/accelerated-container-image/pkg/convertor"
Index ¶
- func IndexConvertFunc(opts ...Option) converter.ConvertFunc
- type ImageConvertor
- type Option
- func WithClient(client *containerd.Client) Option
- func WithDbstr(dbstr string) Option
- func WithFsType(fsType string) Option
- func WithImageRef(imgRef string) Option
- func WithResolver(resolver remotes.Resolver) Option
- type OverlaybdLayer
Functions ¶
func IndexConvertFunc ¶
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 ¶
type Option func(o *options) error
func WithClient ¶
func WithClient(client *containerd.Client) Option
func WithDbstr ¶
func WithFsType ¶
func WithImageRef ¶
func WithResolver ¶
type OverlaybdLayer ¶
type OverlaybdLayer struct { Host string Repo string ChainID string DataDigest string DataSize int64 }
Source Files ¶
- Version
- v0.5.2
- Published
- Nov 9, 2022
- Platform
- js/wasm
- Imports
- 31 packages
- Last checked
- 1 minute ago –
Tools for package owners.