ggcr

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 7

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