imageresolver

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageResolver

type ImageResolver interface {
	// ResolveImageReference will use the image resolver to map an image reference
	// to the image's SHA256 value from the registry.
	ResolveImageReference(imageReference string) (string, error)
}

ImageResolve implements a method of identifying an image reference.

type Skopeo

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

Skopeo is the default image resolver using skopeo.

func NewSkopeoResolver

func NewSkopeoResolver(skopeoPath, authFile string) (*Skopeo, error)

NewSkopeoResolver returns the skopeo resolver setting the exec filepath and the authfile used by skopeo.

func (*Skopeo) ResolveImageReference

func (skopeo *Skopeo) ResolveImageReference(imageReference string) (string, error)

ResolveImageReference will use the image resolver to map an image reference to the image's SHA256 value from the registry.

Jump to

Keyboard shortcuts

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