store

package
v5.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

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, paths []string, options *libartTypes.AddOptions) (*digest.Digest, error)

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

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) 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) 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