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.
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 ¶
WithInsecureRegistry sets insecure registry.
Click to show internal directories.
Click to hide internal directories.