Documentation
¶
Index ¶
- Variables
- type ArtifactStore
- func (as ArtifactStore) Add(ctx context.Context, dest string, paths []string, ...) (*digest.Digest, error)
- func (as ArtifactStore) Inspect(ctx context.Context, nameOrDigest string) (*libartifact.Artifact, error)
- func (as ArtifactStore) List(ctx context.Context) (libartifact.ArtifactList, error)
- func (as ArtifactStore) Pull(ctx context.Context, name string, opts libimage.CopyOptions) error
- func (as ArtifactStore) Push(ctx context.Context, src, dest string, opts libimage.CopyOptions) error
- func (as ArtifactStore) Remove(ctx context.Context, name string) (*digest.Digest, error)
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 ¶
func (as ArtifactStore) List(ctx context.Context) (libartifact.ArtifactList, error)
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
Click to show internal directories.
Click to hide internal directories.