Versions in this module Expand all Collapse all v0 v0.1.1 Aug 24, 2023 v0.1.0 Aug 9, 2023 Changes in this version + func ExtractLayer(ctx context.Context, dst string, src oras.ReadOnlyTarget, ...) (*os.File, error) + func ExtractLayers(ctx context.Context, dst string, src oras.ReadOnlyTarget, ...) ([]*os.File, error) + func FetchImage(ctx context.Context, src oras.ReadOnlyTarget, ref string, p *ocispec.Platform) (image *ocispec.Image, layers []ocispec.Descriptor, err error) + func FetchLayer(ctx context.Context, src oras.ReadOnlyTarget, desc ocispec.Descriptor) (io.ReadCloser, error) + func RootFS(ctx context.Context, dst string, src oras.ReadOnlyTarget, image *ocispec.Image, ...) ([]*os.File, error) + type ImageCache struct + LocalStore oras.Target + RemoteRepository func(registry.Reference) oras.ReadOnlyTarget + TargetPlatform *ocispec.Platform + func (c *ImageCache) Exists(ctx context.Context, target ocispec.Descriptor) (bool, error) + func (c *ImageCache) Fetch(ctx context.Context, target ocispec.Descriptor) (io.ReadCloser, error) + func (c *ImageCache) Resolve(ctx context.Context, reference string) (ocispec.Descriptor, error)