Documentation
¶
Index ¶
- Constants
- Variables
- type ArtifactStore
- func (as ArtifactStore) Add(ctx context.Context, dest string, paths []string, ...) (*digest.Digest, error)
- func (as ArtifactStore) BlobMountPaths(ctx context.Context, nameOrDigest string, ...) ([]libartTypes.BlobMountPath, error)
- func (as ArtifactStore) Extract(ctx context.Context, nameOrDigest string, target string, ...) 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 ¶
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, 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) 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) 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.