oci

package
v0.2.0-rc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 CopyPolicy(ctx context.Context, log *zerolog.Logger,
	sourceRef, sourceUser, sourcePassword,
	destinationRef, destinationUser, destinationPassword,
	ociStore string) error

func IsAllowedMediaType added in v0.2.0

func IsAllowedMediaType(mediatype string) bool

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 NewOCI

func NewOCI(ctx context.Context, log *zerolog.Logger, hostsFunc docker.RegistryHosts, policyRoot string) (*Oci, error)

func (*Oci) GetManifest added in v0.2.0

func (o *Oci) GetManifest(descriptor *ocispec.Descriptor) (*ocispec.Manifest, error)

func (*Oci) GetStore added in v0.2.0

func (o *Oci) GetStore() *oci.Store

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)

func (*Oci) Pull

func (o *Oci) Pull(ref string) (digest.Digest, error)

func (*Oci) Push

func (o *Oci) Push(ref string) (digest.Digest, error)

func (*Oci) Tag

func (o *Oci) Tag(existingRef, newRef string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL