remote

package
v0.0.0-...-cfcd82a Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Remote

type Remote struct {
	Ref string
	// contains filtered or unexported fields
}

Remote provides the ability to access remote registry

func New

func New(ref string, resolver remotes.Resolver) (*Remote, error)

New creates remote instance from docker remote resolver

func (*Remote) Pull

func (remote *Remote) Pull(ctx context.Context, desc ocispec.Descriptor, byDigest bool) (io.ReadCloser, error)

Pull pulls blob from registry

func (*Remote) Push

func (remote *Remote) Push(ctx context.Context, desc ocispec.Descriptor, byDigest bool, reader io.Reader) error

Push pushes blob to registry

func (*Remote) Resolve

func (remote *Remote) Resolve(ctx context.Context) (*ocispec.Descriptor, error)

Resolve parses descriptor for given image reference

Jump to

Keyboard shortcuts

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