Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CraneOption ¶ added in v0.2.0
type CraneOption func(*CraneResolver)
CraneOption is a function that configures the `CraneResolver`
func Insecure ¶ added in v0.4.0
func Insecure() CraneOption
Insecure returns a CraneOption that sets the auth to insecure
func WithDefaultKeychain ¶ added in v0.3.0
func WithDefaultKeychain() CraneOption
WithDefaultAuth returns a CraneOption that sets the auth to the default keychain
func WithUserPassAuth ¶ added in v0.2.0
func WithUserPassAuth(username, password string) CraneOption
WithUserPassAuth returns a CraneOption that adds an authenticator
type CraneResolver ¶ added in v0.2.0
type CraneResolver struct {
// contains filtered or unexported fields
}
DefaultResolver uses the containers series of libraries to resolve image digests
func NewCraneResolver ¶ added in v0.2.0
func NewCraneResolver(opts ...CraneOption) CraneResolver
NewCraneResolver returns a CraneResolver with the applied options.
func (CraneResolver) ResolveImageReference ¶ added in v0.2.0
func (res CraneResolver) ResolveImageReference(imageReference string) (string, error)
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.
func GetResolver ¶ added in v0.0.2
func GetResolver(resolver ResolverOption, args map[string]string) (ImageResolver, error)
type ResolverOption ¶ added in v0.0.2
type ResolverOption string
const ( ResolverCrane ResolverOption = "crane" ResolverSkopeo ResolverOption = "skopeo" ResolverScript ResolverOption = "script" )
func (*ResolverOption) String ¶ added in v0.0.2
func (opt *ResolverOption) String() string
type ResolverOptions ¶ added in v0.0.2
type ResolverOptions []ResolverOption
func GetResolverOptions ¶ added in v0.0.2
func GetResolverOptions() ResolverOptions
func (ResolverOptions) String ¶ added in v0.0.2
func (opts ResolverOptions) String() string
type Script ¶ added in v0.0.2
type Script struct {
// contains filtered or unexported fields
}
Script supports using a script/executable as an image resolver. The script only needs to return the digest. Examples of custom resolvers can be found in the hack/resolvers folder on the repo.
type Skopeo ¶
type Skopeo struct {
// contains filtered or unexported fields
}
Skopeo is the default image resolver using skopeo.
func NewSkopeoResolver ¶
NewSkopeoResolver returns the skopeo resolver setting the exec filepath and the authfile used by skopeo.