Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePlatformConstraint ¶
ValidatePlatformConstraint returns a boolean indicating whether the provided platform constraint string is valid.
Types ¶
type Credentials ¶
type Credentials struct {
// Username identifies a principal, which combined with the value of the
// Password field, can be used for reading from some image repository.
Username string
// Password, when combined with the principal identified by the Username
// field, can be used for reading from some image repository.
Password string
}
Credentials represents the credentials for connecting to a private image repository.
type Selector ¶
type Selector interface {
// MatchesTag returns a boolean value indicating whether or not the Selector
// would consider an image with the specified tag eligible for selection.
MatchesTag(string) bool
// Select selects images from a container image repository.
Select(context.Context) ([]kargoapi.DiscoveredImageReference, error)
}
Selector is an interface for selecting images from a container image repository.
func NewSelector ¶
func NewSelector( sub kargoapi.ImageSubscription, creds *Credentials, ) (Selector, error)
NewSelector returns some implementation of the Selector interface that selects images from a container image repository based on the provided subscription.
Click to show internal directories.
Click to hide internal directories.