Documentation
¶
Index ¶
- Variables
- type ArtifactMetadata
- type Opt
- type Store
- func (s *Store) DeleteArtifact(identifier string) error
- func (s *Store) GetArtifact(identifier string) (string, error)
- func (s *Store) GetArtifactImage(identifier string) (v1.Image, error)
- func (s *Store) GetArtifactMetadata(identifier string) (*ArtifactMetadata, error)
- func (s *Store) GetArtifactPath(identifier string) (string, error)
- func (s *Store) ListArtifacts() ([]ArtifactMetadata, error)
- func (s *Store) StoreArtifact(img v1.Image, reference string) (string, error)
Constants ¶
This section is empty.
Variables ¶
var ErrStoreCorrupted = errors.New("local artifact store corrupted")
ErrStoreCorrupted indicates that the local artifact store is in an inconsistent or partially missing state (e.g. missing tar, refs or metadata). Callers may safely attempt to re-fetch the artifact from the remote source.
Functions ¶
This section is empty.
Types ¶
type ArtifactMetadata ¶
type ArtifactMetadata struct {
Digest string `json:"digest"`
Reference string `json:"reference"`
Size int64 `json:"size"`
StoredAt time.Time `json:"stored_at"`
Labels map[string]string `json:"labels,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
}
ArtifactMetadata contains metadata about stored artifacts
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages the local content store for artifacts
func (*Store) DeleteArtifact ¶
DeleteArtifact removes an artifact from the store
func (*Store) GetArtifact ¶ added in v1.8.2
func (*Store) GetArtifactImage ¶
GetArtifactImage loads an artifact by digest or reference and returns it as a v1.Image
func (*Store) GetArtifactMetadata ¶
func (s *Store) GetArtifactMetadata(identifier string) (*ArtifactMetadata, error)
GetArtifactMetadata returns metadata for an artifact by digest or reference
func (*Store) GetArtifactPath ¶
GetArtifactPath returns the file path for an artifact by digest or reference
func (*Store) ListArtifacts ¶
func (s *Store) ListArtifacts() ([]ArtifactMetadata, error)
ListArtifacts returns a list of all stored artifacts