store

package
v5.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const ManifestSchemaVersion = 2

Variables

View Source
var (
	ErrEmptyArtifactName = errors.New("artifact name cannot be empty")
)

Functions

This section is empty.

Types

type ArtifactStore

type ArtifactStore struct {
	SystemContext *types.SystemContext
	// contains filtered or unexported fields
}

func NewArtifactStore

func NewArtifactStore(storePath string, sc *types.SystemContext) (*ArtifactStore, error)

NewArtifactStore is a constructor for artifact stores. Most artifact dealings depend on this. Store path is the filesystem location.

func (ArtifactStore) Add

func (as ArtifactStore) Add(ctx context.Context, dest string, artifactBlobs []entities.ArtifactBlob, options *libartTypes.AddOptions) (*digest.Digest, error)

Add takes one or more artifact blobs and add them to the local artifact store. The empty string input is for possible custom artifact types.

func (ArtifactStore) BlobMountPaths added in v5.5.0

func (as ArtifactStore) BlobMountPaths(ctx context.Context, nameOrDigest string, options *libartTypes.BlobMountPathOptions) ([]libartTypes.BlobMountPath, error)

BlobMountPaths allows the caller to access the file names from the store and how they should be mounted.

func (ArtifactStore) Extract added in v5.5.0

func (as ArtifactStore) Extract(ctx context.Context, nameOrDigest string, target string, options *libartTypes.ExtractOptions) error

Extract an artifact to local file or directory

func (ArtifactStore) ExtractTarStream added in v5.6.0

func (as ArtifactStore) ExtractTarStream(ctx context.Context, w io.Writer, nameOrDigest string, options *libartTypes.ExtractOptions) error

Extract an artifact to tar stream

func (ArtifactStore) Inspect

func (as ArtifactStore) Inspect(ctx context.Context, nameOrDigest string) (*libartifact.Artifact, error)

Inspect an artifact in a local store

func (ArtifactStore) List

List artifacts in the local store

func (ArtifactStore) Pull

func (as ArtifactStore) Pull(ctx context.Context, name string, opts libimage.CopyOptions) (digest.Digest, error)

Pull an artifact from an image registry to a local store

func (ArtifactStore) Push

func (as ArtifactStore) Push(ctx context.Context, src, dest string, opts libimage.CopyOptions) (digest.Digest, error)

Push an artifact to an image registry

func (ArtifactStore) Remove

func (as ArtifactStore) Remove(ctx context.Context, name string) (*digest.Digest, error)

Remove an artifact from the local artifact store

Jump to

Keyboard shortcuts

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