registry

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseImageReference added in v0.35.0

func ParseImageReference(url string, insecure bool) (name.Reference, error)

ParseImageReference parses the given reference string into a container registry repository reference.

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)

Jump to

Keyboard shortcuts

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