Documentation
¶
Overview ¶
Package ocidir implements the OCI Image Layout scheme with a directory (not packed in a tar)
Index ¶
- type OCIDir
- func (o *OCIDir) BlobDelete(ctx context.Context, r ref.Ref, d types.Descriptor) error
- func (o *OCIDir) BlobGet(ctx context.Context, r ref.Ref, d types.Descriptor) (blob.Reader, error)
- func (o *OCIDir) BlobHead(ctx context.Context, r ref.Ref, d types.Descriptor) (blob.Reader, error)
- func (o *OCIDir) BlobMount(ctx context.Context, refSrc ref.Ref, refTgt ref.Ref, d types.Descriptor) error
- func (o *OCIDir) BlobPut(ctx context.Context, r ref.Ref, d types.Descriptor, rdr io.Reader) (types.Descriptor, error)
- func (o *OCIDir) Close(ctx context.Context, r ref.Ref) error
- func (o *OCIDir) Info() scheme.Info
- func (o *OCIDir) ManifestDelete(ctx context.Context, r ref.Ref) error
- func (o *OCIDir) ManifestGet(ctx context.Context, r ref.Ref) (manifest.Manifest, error)
- func (o *OCIDir) ManifestHead(ctx context.Context, r ref.Ref) (manifest.Manifest, error)
- func (o *OCIDir) ManifestPut(ctx context.Context, r ref.Ref, m manifest.Manifest, ...) error
- func (o *OCIDir) TagDelete(ctx context.Context, r ref.Ref) error
- func (o *OCIDir) TagList(ctx context.Context, r ref.Ref, opts ...scheme.TagOpts) (*tag.List, error)
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OCIDir ¶
type OCIDir struct {
// contains filtered or unexported fields
}
OCIDir is used for accessing OCI Image Layouts defined as a directory
func (*OCIDir) BlobDelete ¶
BlobDelete removes a blob from the repository
func (*OCIDir) BlobHead ¶
BlobHead verifies the existence of a blob, the reader contains the headers but no body to read
func (*OCIDir) BlobMount ¶
func (o *OCIDir) BlobMount(ctx context.Context, refSrc ref.Ref, refTgt ref.Ref, d types.Descriptor) error
BlobMount attempts to perform a server side copy of the blob
func (*OCIDir) BlobPut ¶
func (o *OCIDir) BlobPut(ctx context.Context, r ref.Ref, d types.Descriptor, rdr io.Reader) (types.Descriptor, error)
BlobPut sends a blob to the repository, returns the digest and size when successful
func (*OCIDir) ManifestDelete ¶
ManifestDelete removes a manifest, including all tags that point to that manifest
func (*OCIDir) ManifestGet ¶
ManifestGet retrieves a manifest from a repository
func (*OCIDir) ManifestHead ¶
ManifestHead gets metadata about the manifest (existence, digest, mediatype, size)
func (*OCIDir) ManifestPut ¶
func (o *OCIDir) ManifestPut(ctx context.Context, r ref.Ref, m manifest.Manifest, opts ...scheme.ManifestOpts) error
ManifestPut sends a manifest to the repository
type Opts ¶
type Opts func(*config)
Opts are used for passing options to ocidir
func WithFS ¶
WithFS allows the rwfs to be replaced The default is to use the OS, this can be used to sandbox within a folder This can also be used to pass an in-memory filesystem for testing or special use cases