ggcr

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

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImageLayout

func NewImageLayout(registryClient RegistryClient, layoutPath path.LayoutPath) registry.Layout

func NewRegistryClient

func NewRegistryClient(options ...Option) *client

NewRegistryClient returns a new Client.

Types

type Option

type Option func(*client)

Option represents a functional option for NewRegistryClient.

func WithTransport

func WithTransport(transport http.RoundTripper) Option

WithTransport overrides the default transport used for remote operations, default is http.DefaultTransport.

type RegistryClient

type RegistryClient interface {
	// ReadRemoteImage builds an abstract image from a repository.
	ReadRemoteImage(n image.Name) (registry.Image, error)

	// NewImageFromManifest builds an abstract image from an image manifest.
	NewImageFromManifest(img v1.Image) registry.Image

	// NewImageFromIndex builds an abstract image from an image index.
	NewImageFromIndex(img v1.ImageIndex) registry.Image
}

RegistryClient provides methods for building abstract images. This interface is not intended for external consumption.

Directories

Path Synopsis
pathfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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