Versions in this module Expand all Collapse all v1 v1.0.1 Jun 25, 2024 Changes in this version + type Artifact struct + Data []byte + Path string + type Impl interface + GetBlob func(context.Context, types.ImageSource, types.BlobInfo, types.BlobInfoCache) (io.ReadCloser, int64, error) + GetManifest func(context.Context, types.ImageSource, *digest.Digest) ([]byte, string, error) + LayerInfos func(manifest.Manifest) []manifest.LayerInfo + ManifestConfigInfo func(manifest.Manifest) types.BlobInfo + ManifestFromBlob func([]byte, string) (manifest.Manifest, error) + MkdirAll func(string, os.FileMode) error + NewImageSource func(context.Context, types.ImageReference, *types.SystemContext) (types.ImageSource, error) + NewReference func(reference.Named) (types.ImageReference, error) + ParseNormalizedNamed func(string) (reference.Named, error) + ReadAll func(io.Reader) ([]byte, error) + ReadDir func(string) ([]os.DirEntry, error) + ReadFile func(string) ([]byte, error) + RemoveAll func(string) error + WriteFile func(string, []byte, os.FileMode) error + type OCIArtifact struct + func New() *OCIArtifact + func (o *OCIArtifact) Pull(ctx context.Context, img string, opts *PullOptions) (*Artifact, error) + type PullOptions struct + CacheEntryMaxAge time.Duration + CachePath string + EnforceConfigMediaType string + MaxSize int + SystemContext *types.SystemContext