storage

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocalBlobPath

func LocalBlobPath(cacheBlobs, hash string) string

func LocalManifestPath

func LocalManifestPath(cacheManifest, name, tag string) string

func WithAuth

func WithAuth(auth authn.Authenticator) func(po *options) error

func WithTransport

func WithTransport(t http.RoundTripper) func(po *options) error

func WithUserAgent

func WithUserAgent(ua string) func(po *options) error

Types

type Puller

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

func NewPuller

func NewPuller(opts ...option) (*Puller, error)

func (*Puller) Get

func (p *Puller) Get(ctx context.Context, ref name.Reference) (*remote.Descriptor, error)

func (*Puller) Head

func (p *Puller) Head(ctx context.Context, ref name.Reference) (*v1.Descriptor, error)

func (*Puller) Layer added in v0.0.9

func (p *Puller) Layer(ctx context.Context, ref name.Digest) (v1.Layer, error)

type Pusher

type Pusher interface {
	PushImage(ctx context.Context, ref name.Reference, image v1.Image) error
	PushImageWithIndex(ctx context.Context, repo name.Repository, image v1.Image) error
	PushImageIndex(ctx context.Context, ref name.Reference, imageIndex v1.ImageIndex) error
}

func NewLocalPusher

func NewLocalPusher(cacheBlobs, cacheManifest string) Pusher

func NewPusher

func NewPusher(opts ...option) (Pusher, error)

Jump to

Keyboard shortcuts

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