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.
Click to show internal directories.
Click to hide internal directories.