Versions in this module Expand all Collapse all v1 v1.2.0 Oct 24, 2018 Changes in this version + const MediaTypeContainerd1Checkpoint + const MediaTypeContainerd1CheckpointConfig + const MediaTypeContainerd1CheckpointPreDump + const MediaTypeContainerd1RW + const MediaTypeContainerd1Resource + const MediaTypeDockerSchema1Manifest + const MediaTypeDockerSchema2Config + const MediaTypeDockerSchema2Layer + const MediaTypeDockerSchema2LayerForeign + const MediaTypeDockerSchema2LayerForeignGzip + const MediaTypeDockerSchema2LayerGzip + const MediaTypeDockerSchema2Manifest + const MediaTypeDockerSchema2ManifestList + var ErrSkipDesc = fmt.Errorf("skip descriptor") + var ErrStopHandler = fmt.Errorf("stop handler") + func Check(ctx context.Context, provider content.Provider, image ocispec.Descriptor, ...) (available bool, required, present, missing []ocispec.Descriptor, err error) + func Children(ctx context.Context, provider content.Provider, desc ocispec.Descriptor) ([]ocispec.Descriptor, error) + func Config(ctx context.Context, provider content.Provider, image ocispec.Descriptor, ...) (ocispec.Descriptor, error) + func Dispatch(ctx context.Context, handler Handler, descs ...ocispec.Descriptor) error + func IsCompressedDiff(ctx context.Context, mediaType string) (bool, error) + func Manifest(ctx context.Context, provider content.Provider, image ocispec.Descriptor, ...) (ocispec.Manifest, error) + func Platforms(ctx context.Context, provider content.Provider, image ocispec.Descriptor) ([]ocispec.Platform, error) + func RootFS(ctx context.Context, provider content.Provider, configDesc ocispec.Descriptor) ([]digest.Digest, error) + func Walk(ctx context.Context, handler Handler, descs ...ocispec.Descriptor) error + type DeleteOpt func(context.Context, *DeleteOptions) error + func SynchronousDelete() DeleteOpt + type DeleteOptions struct + Synchronous bool + type Exporter interface + Export func(ctx context.Context, store content.Provider, desc ocispec.Descriptor, ...) error + type Handler interface + Handle func(ctx context.Context, desc ocispec.Descriptor) (subdescs []ocispec.Descriptor, err error) + type HandlerFunc func(ctx context.Context, desc ocispec.Descriptor) (subdescs []ocispec.Descriptor, err error) + func ChildrenHandler(provider content.Provider) HandlerFunc + func FilterPlatforms(f HandlerFunc, m platforms.Matcher) HandlerFunc + func Handlers(handlers ...Handler) HandlerFunc + func LimitManifests(f HandlerFunc, m platforms.MatchComparer, n int) HandlerFunc + func SetChildrenLabels(manager content.Manager, f HandlerFunc) HandlerFunc + func (fn HandlerFunc) Handle(ctx context.Context, desc ocispec.Descriptor) (subdescs []ocispec.Descriptor, err error) + type Image struct + CreatedAt time.Time + Labels map[string]string + Name string + Target ocispec.Descriptor + UpdatedAt time.Time + func (image *Image) Config(ctx context.Context, provider content.Provider, ...) (ocispec.Descriptor, error) + func (image *Image) RootFS(ctx context.Context, provider content.Provider, ...) ([]digest.Digest, error) + func (image *Image) Size(ctx context.Context, provider content.Provider, ...) (int64, error) + type Importer interface + Import func(ctx context.Context, store content.Store, reader io.Reader) (ocispec.Descriptor, error) + type Store interface + Create func(ctx context.Context, image Image) (Image, error) + Delete func(ctx context.Context, name string, opts ...DeleteOpt) error + Get func(ctx context.Context, name string) (Image, error) + List func(ctx context.Context, filters ...string) ([]Image, error) + Update func(ctx context.Context, image Image, fieldpaths ...string) (Image, error)