Documentation ¶
Index ¶
- Constants
- func GitRedactedRemoteURL(url string) string
- func MatchesPlatformSelection(given regv1.Platform, required ctlconf.PlatformSelection) bool
- func URLRepo(url string) (string, bool)
- type BuiltImage
- type DigestedImage
- type ErrImage
- type Factory
- type FactoryOpts
- type GitRepo
- type Image
- type Matcher
- type PlatformSelectedImage
- type PreresolvedImage
- type ResolvedImage
- type TagSelectedImage
- type TaggedImage
Constants ¶
const ( GitRepoRemoteURLUnknown = "<unknown>" GitRepoHeadSHANoCommits = "<no commits>" )
Variables ¶
This section is empty.
Functions ¶
func GitRedactedRemoteURL ¶ added in v0.41.0
GitRedactedRemoteURL redacts any user/password information in the URL
func MatchesPlatformSelection ¶ added in v0.41.0
func MatchesPlatformSelection(given regv1.Platform, required ctlconf.PlatformSelection) bool
MatchesPlatformSelection checks if the given platform matches the required platforms. The given platform matches the required platform if - architecture and OS are identical. - OS version and variant are identical if provided. - features and OS features of the required platform are subsets of those of the given platform. Adapted from https://github.com/google/go-containerregistry/blob/570ba6c88a5041afebd4599981d849af96f5dba9/pkg/v1/remote/index.go#L263
Types ¶
type BuiltImage ¶
type BuiltImage struct {
// contains filtered or unexported fields
}
func NewBuiltImage ¶
type DigestedImage ¶
type DigestedImage struct {
// contains filtered or unexported fields
}
func MaybeNewDigestedImage ¶
func MaybeNewDigestedImage(url string) *DigestedImage
func NewDigestedImageFromParts ¶
func NewDigestedImageFromParts(url, digest string) DigestedImage
type ErrImage ¶ added in v0.41.0
type ErrImage struct {
// contains filtered or unexported fields
}
func NewErrImage ¶ added in v0.41.0
type FactoryOpts ¶ added in v0.41.0
type FactoryOpts struct { Conf ctlconf.Conf AllowedToBuild bool GlobalPlatformSelection *ctlconf.PlatformSelection }
type GitRepo ¶ added in v0.7.0
type GitRepo struct {
// contains filtered or unexported fields
}
func NewGitRepo ¶ added in v0.7.0
type Matcher ¶ added in v0.41.0
type Matcher struct {
// contains filtered or unexported fields
}
func NewMatcher ¶ added in v0.41.0
type PlatformSelectedImage ¶ added in v0.41.0
type PlatformSelectedImage struct {
// contains filtered or unexported fields
}
PlatformSelectedImage selects specific image matching arch/platform
func NewPlatformSelectedImage ¶ added in v0.41.0
func NewPlatformSelectedImage(image Image, selection *ctlconf.PlatformSelection, registry ctlreg.Registry) PlatformSelectedImage
type PreresolvedImage ¶ added in v0.10.0
type PreresolvedImage struct {
// contains filtered or unexported fields
}
func NewPreresolvedImage ¶ added in v0.10.0
func NewPreresolvedImage(url string, origins []ctlconf.Origin) PreresolvedImage
type ResolvedImage ¶
type ResolvedImage struct {
// contains filtered or unexported fields
}
ResolvedImage represents an image that will be resolved into url+digest
func NewResolvedImage ¶ added in v0.5.0
func NewResolvedImage(url string, registry ctlreg.Registry) ResolvedImage
type TagSelectedImage ¶ added in v0.41.0
type TagSelectedImage struct {
// contains filtered or unexported fields
}
TagSelectedImage represents an image that will be resolved into url+digest
func NewTagSelectedImage ¶ added in v0.41.0
func NewTagSelectedImage(url string, selection *v1alpha1.VersionSelection, registry ctlreg.Registry) TagSelectedImage
type TaggedImage ¶ added in v0.41.0
type TaggedImage struct {
// contains filtered or unexported fields
}
TaggedImage represents an image that will be tagged when its URL is requested
func NewTaggedImage ¶ added in v0.41.0
func NewTaggedImage(image Image, imgDst ctlconf.ImageDestination, registry ctlreg.Registry) TaggedImage