backend

package
v0.0.0-...-2440f66 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Push(ctx context.Context, ra content.ReaderAt, desc ocispec.Descriptor) error
	Pull(blobDigest digest.Digest) (io.ReadCloser, error)
	External() bool
}

type OSSBackend

type OSSBackend struct {
	// contains filtered or unexported fields
}

func NewOSSBackend

func NewOSSBackend(cfg *config.OSS, forcePush bool) (*OSSBackend, error)

func (*OSSBackend) External

func (b *OSSBackend) External() bool

func (*OSSBackend) Pull

func (b *OSSBackend) Pull(blobDigest digest.Digest) (io.ReadCloser, error)

func (*OSSBackend) Push

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistryBackend

func NewRegistryBackend(remote *remote.Remote) (*Registry, error)

func (*Registry) External

func (r *Registry) External() bool

func (*Registry) Pull

func (r *Registry) Pull(blobDigest digest.Digest) (io.ReadCloser, error)

func (*Registry) Push

Jump to

Keyboard shortcuts

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