Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthOptionsGetter ¶ added in v0.35.0
type AuthOptionsGetter struct {
client.Client
TokenCache *cache.TokenCache
}
AuthOptionsGetter builds a slice of options from an ImageRepository by looking up references to Secrets etc. on the Kubernetes cluster using the provided client interface. If no external authentication provider is configured on the ImageRepository, the given ProviderOptions are used for authentication. Options are extracted from the following ImageRepository spec fields:
- spec.image - spec.secretRef - spec.provider - spec.certSecretRef - spec.serviceAccountName
func (*AuthOptionsGetter) GetOptions ¶ added in v0.35.0
func (r *AuthOptionsGetter) GetOptions(ctx context.Context, repo *imagev1.ImageRepository, involvedObject *cache.InvolvedObject) ([]remote.Option, error)
Click to show internal directories.
Click to hide internal directories.