Documentation
¶
Overview ¶
Package authn defines different methods of authentication for talking to a container registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface {
// Authorization returns the value to use in an http transport's Authorization header.
Authorization() (string, error)
}
Authenticator is used to authenticate Docker transports.
var Anonymous Authenticator = &anonymous{}
Anonymous is a singleton Authenticator for providing anonymous auth.
type Basic ¶
Basic implements Authenticator for basic authentication.
func (*Basic) Authorization ¶
Authorization implements Authenticator.
type Bearer ¶
type Bearer struct {
Token string `json:"token"`
}
Bearer implements Authenticator for bearer authentication.
func (*Bearer) Authorization ¶
Authorization implements Authenticator.
type Keychain ¶
type Keychain interface {
// Resolve looks up the most appropriate credential for the specified registry.
Resolve(name.Registry) (Authenticator, error)
}
Keychain is an interface for resolving an image reference to a credential.
var ( // Export an instance of the default keychain. DefaultKeychain Keychain = &defaultKeychain{} )
There are a variety of ways a domain may get qualified within the Docker credential file. We enumerate them here as format strings.
func NewMultiKeychain ¶
NewMultiKeychain composes a list of keychains into one new keychain.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package k8schain exposes an implementation of the authn.Keychain interface based on the semantics the Kubelet follows when pulling the images for a Pod in Kubernetes.
|
Package k8schain exposes an implementation of the authn.Keychain interface based on the semantics the Kubelet follows when pulling the images for a Pod in Kubernetes. |
|
tests/explicit
command
|
|
|
tests/implicit
command
|
|
|
tests/noauth
command
|
|
|
tests/serviceaccount
command
|