Documentation
¶
Overview ¶
Package store reads and writes Zot-compatible OCI image layout repositories.
Index ¶
- Constants
- type PlatformArchive
- type PushOptions
- 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) LoadDockerArchives(ctx context.Context, dst name.Tag, archives []PlatformArchive) error
- func (s Store) Pull(ctx context.Context, ref name.Tag, opts ...remote.Option) error
- func (s Store) Push(ctx context.Context, src name.Tag, opts ...PushOptions) 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 PlatformArchive ¶ added in v1.0.4
PlatformArchive describes one platform image in a Docker archive.
type PushOptions ¶ added in v1.0.5
PushOptions configures Store.Push.
type Store ¶
type Store struct{ Root string }
func (Store) Descriptor ¶
Descriptor returns the store descriptor tagged by ref.
func (Store) LoadDockerArchives ¶ added in v1.0.4
func (s Store) LoadDockerArchives(ctx context.Context, dst name.Tag, archives []PlatformArchive) error
LoadDockerArchives imports Docker archives into the store under dst.
func (Store) Pull ¶ added in v1.0.8
Pull imports an image or complete image index from its remote registry reference.
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.