registryclient

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 22 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.8.0

type Client interface {
	// Keychain provides the configured credentials
	Keychain() authn.Keychain

	// FetchImageDescriptor fetches Descriptor from registry with given imageRef
	// and provides access to metadata about remote artifact.
	FetchImageDescriptor(context.Context, string) (*gcrremote.Descriptor, error)

	// BuildRemoteOption builds remote.Option based on client.
	BuildRemoteOption(context.Context) remote.Option

	// RefreshKeychainPullSecrets loads fresh data from pull secrets (if non-empty) and updates Keychain.
	RefreshKeychainPullSecrets(ctx context.Context) error
	// contains filtered or unexported methods
}

Client provides registry related objects.

func New added in v1.9.0

func New(options ...Option) (Client, error)

New creates a new Client with options

func NewOrDie added in v1.9.0

func NewOrDie(options ...Option) Client

New creates a new Client with options

type Option added in v1.8.0

type Option = func(*config) error

Option is an option to initialize registry client.

func WithAllowInsecureRegistry added in v1.8.0

func WithAllowInsecureRegistry() Option

WithKeychainPullSecrets provides initialize registry client option that allows to use insecure registries.

func WithCredentialHelpers added in v1.10.0

func WithCredentialHelpers(credentialHelpers ...string) Option

WithKeychainPullSecrets provides initialize registry client option that allows to use insecure registries.

func WithKeychainPullSecrets added in v1.8.0

func WithKeychainPullSecrets(ctx context.Context, lister corev1listers.SecretNamespaceLister, imagePullSecrets ...string) Option

WithKeychainPullSecrets provides initialize registry client option that allows to use pull secrets.

func WithLocalKeychain added in v1.9.0

func WithLocalKeychain() Option

WithLocalKeychain provides initialize keychain with the default local keychain.

func WithTracing added in v1.9.0

func WithTracing() Option

WithTracing enables tracing in the http client.

Jump to

Keyboard shortcuts

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