Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServiceECR = "ecr" ServiceECRPublic = "ecr-public" )
Variables ¶
View Source
var AWSKeychain authn.Keychain = awskeychain{}
View Source
var AnonymousKeychain authn.Keychain = anonymuskc{}
View Source
var AzureKeychain authn.Keychain = azurekeychain{}
View Source
var GCPKeychain authn.Keychain = gcpkeychain{}
Functions ¶
func NewAutoRefreshSecretsKeychain ¶ added in v1.10.2
func NewAutoRefreshSecretsKeychain(lister corev1listers.SecretNamespaceLister, imagePullSecrets ...string) (authn.Keychain, error)
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) // BuildCosignRemoteOption builds remote.Option for cosign client. BuildCosignRemoteOption(context.Context) (remote.Option, error) // BuildGCRRemoteOption builds []gcrremote.option based on client. BuildGCRRemoteOption(ctx context.Context) ([]gcrremote.Option, error) // contains filtered or unexported methods }
Client provides registry related objects.
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
WithAllowInsecureRegistry initialize registry client option that allows to use insecure registries.
func WithCredentialProviders ¶ added in v1.10.5
WithCredentialProviders initialize registry client option by using registries credentials
func WithKeychainPullSecrets ¶ added in v1.8.0
func WithKeychainPullSecrets(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.
Click to show internal directories.
Click to hide internal directories.