Documentation ¶
Index ¶
- Constants
- func CopyPolicy(ctx context.Context, log *zerolog.Logger, ...) error
- func IsAllowedMediaType(mediatype string) bool
- func RemoveBlob(ref *ocispec.Descriptor, path string) error
- type Oci
- func (o *Oci) GetManifest(descriptor *ocispec.Descriptor) (*ocispec.Manifest, error)
- func (o *Oci) GetStore() *oci.Store
- func (o *Oci) GetTarballAndConfigLayerDescriptor(ctx context.Context, descriptor *ocispec.Descriptor) (*ocispec.Descriptor, *ocispec.Descriptor, error)
- func (o *Oci) ListReferences() (map[string]ocispec.Descriptor, error)
- func (o *Oci) Pull(ref string) (digest.Digest, error)
- func (o *Oci) Push(ref string) (digest.Digest, error)
- func (o *Oci) Tag(existingRef, newRef string) error
Constants ¶
View Source
const ( MediaTypeImageLayer = "application/vnd.oci.image.layer.v1.tar+gzip" MediaTypeConfig = "application/vnd.oci.image.config.v1+json" )
Variables ¶
This section is empty.
Functions ¶
func CopyPolicy ¶
func IsAllowedMediaType ¶ added in v0.2.0
func RemoveBlob ¶ added in v0.2.0
func RemoveBlob(ref *ocispec.Descriptor, path string) error
Types ¶
type Oci ¶
type Oci struct {
// contains filtered or unexported fields
}
func (*Oci) GetManifest ¶ added in v0.2.0
func (*Oci) GetTarballAndConfigLayerDescriptor ¶ added in v0.2.0
func (o *Oci) GetTarballAndConfigLayerDescriptor(ctx context.Context, descriptor *ocispec.Descriptor) (*ocispec.Descriptor, *ocispec.Descriptor, error)
func (*Oci) ListReferences ¶
func (o *Oci) ListReferences() (map[string]ocispec.Descriptor, error)
Click to show internal directories.
Click to hide internal directories.