Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBasicAuth ¶ added in v0.7.0
GenerateBasicAuth generates a Basic Authentication header value from a username and password.
Types ¶
type RegistryAuth ¶
type RegistryAuth interface {
// CredentialFunc returns an authentication mechanism that can be used to access the registry at the provided URL.
CredentialFunc(scope string) (auth2.CredentialFunc, error)
}
RegistryAuth abstracts over credentials that can be used to access registries.
func NewClientAuthFromToken ¶
func NewClientAuthFromToken(token string) RegistryAuth
func NewClientAuthFromUsernamePassword ¶ added in v0.7.0
func NewClientAuthFromUsernamePassword(username, password string) RegistryAuth
Click to show internal directories.
Click to hide internal directories.