Documentation
¶
Overview ¶
Package store reads and writes Zot-compatible OCI image layout repositories.
Index ¶
- Constants
- type Store
- func (s Store) Descriptor(_ context.Context, ref name.Tag) (v1.Descriptor, error)
- func (s Store) Image(_ context.Context, ref name.Tag, platform v1.Platform) (v1.Image, error)
- func (s Store) Push(ctx context.Context, ref name.Tag) error
- func (s Store) PutArtifact(_ context.Context, ref name.Tag, subject v1.Descriptor, artifact v1.Image, ...) error
- func (s Store) PutImage(_ context.Context, ref name.Tag, img v1.Image) error
- func (s Store) PutIndex(_ context.Context, ref name.Tag, idx v1.ImageIndex) error
- func (s Store) RepoPath(ref name.Tag) string
- func (s Store) Save(ctx context.Context, refs []name.Tag, platform *v1.Platform, w io.Writer) error
- func (s Store) Tag(ctx context.Context, src, dst name.Tag) error
Constants ¶
View Source
const RefNameAnnotation = "org.opencontainers.image.ref.name"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct{ Root string }
func (Store) Descriptor ¶
Descriptor returns the store descriptor tagged by ref.
func (Store) PutArtifact ¶
func (s Store) PutArtifact(_ context.Context, ref name.Tag, subject v1.Descriptor, artifact v1.Image, title string) error
PutArtifact writes an OCI artifact that refers to subject.
Click to show internal directories.
Click to hide internal directories.