remote

package
v0.0.0-...-4e386bd Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	// Fetch fetches a named reference and returns an image.
	Fetch(ref name.Reference) (v1.Image, error)
}

Fetcher is an interface for fetching a ref.

type ImageReader

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

ImageReader reads images from a remote registry.

func NewImageReader

func NewImageReader(options ...ImageReaderOption) *ImageReader

NewImageReader creates an instance of ImageReader.

func (ImageReader) Read

func (i ImageReader) Read(refStr string) (v1.Image, error)

Read reads an image from remote.

type ImageReaderOption

type ImageReaderOption func(ir *ImageReader)

ImageReaderOption is a functional option for configuring ImageReader. TODO: use remote.Option

func WithInsecure

func WithInsecure(forceInsecure bool) ImageReaderOption

WithInsecure sets an insecure registry.

type ImageWriter

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

ImageWriter is a remote image writer.

func NewImageWriter

func NewImageWriter(optionList ...Option) *ImageWriter

NewImageWriter creates an instance of ImageWriter.

func (*ImageWriter) Write

func (i *ImageWriter) Write(ref string, image v1.Image) error

Write writes an image to a remote registry.

func (*ImageWriter) WriteIndex

func (i *ImageWriter) WriteIndex(ref string, imageIndex v1.ImageIndex) error

WriteIndex writes an index to a remote registry.

type Option

type Option func(o *options)

Option is a functional option for configuring remote.

func WithInsecureRegistry

func WithInsecureRegistry(forceInsecure bool) Option

WithInsecureRegistry sets insecure registry.

type ReferenceParser

type ReferenceParser interface {
	// Parse parsers a reference string and returns a named reference.
	Parse(refStr string, forceInsecure bool) (name.Reference, error)
}

ReferenceParser parsers a reference.

Jump to

Keyboard shortcuts

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