Documentation
¶
Index ¶
- type ArtifactMetadata
- type Opt
- type Store
- func (s *Store) DeleteArtifact(identifier 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 ¶
This section is empty.
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) 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
Click to show internal directories.
Click to hide internal directories.