Documentation
¶
Index ¶
- func AuthToBase64(auth Auth) (string, error)
- type Auth
- type SetRegistryAuthConfigOption
- func WithAuth(creds Auth) SetRegistryAuthConfigOption
- func WithEmail(email string) SetRegistryAuthConfigOptiondeprecated
- func WithIdentityToken(identityToken string) SetRegistryAuthConfigOption
- func WithPassword(password string) SetRegistryAuthConfigOption
- func WithRegistryToken(registryToken string) SetRegistryAuthConfigOption
- func WithServerAddress(serverAddress string) SetRegistryAuthConfigOption
- func WithUsername(username string) SetRegistryAuthConfigOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthToBase64 ¶
AuthToBase64 converts auth credentials to base64 encoded auth string
Types ¶
type Auth ¶
type Auth struct {
Username string `json:"username"`
Password string `json:"password"`
ServerAddress string `json:"serveraddress"`
}
Auth represents registry authentication credentials
type SetRegistryAuthConfigOption ¶
type SetRegistryAuthConfigOption func(*registry.AuthConfig) error
SetAuthConfigOption is a function that sets a parameter for the registry auth config.
func WithAuth ¶
func WithAuth(creds Auth) SetRegistryAuthConfigOption
WithAuth is the base64 encoded auth string.
func WithEmail
deprecated
func WithEmail(email string) SetRegistryAuthConfigOption
WithEmail is an optional setter associated with the username.
Deprecated: will be removed in a later version of docker.
func WithIdentityToken ¶
func WithIdentityToken(identityToken string) SetRegistryAuthConfigOption
WithIdentityToken is used to authenticate the user and get an access token for the registry.
func WithPassword ¶
func WithPassword(password string) SetRegistryAuthConfigOption
WithPassword is the password for the registry.
func WithRegistryToken ¶
func WithRegistryToken(registryToken string) SetRegistryAuthConfigOption
WithRegistryToken is a bearer token to be sent to a registry
func WithServerAddress ¶
func WithServerAddress(serverAddress string) SetRegistryAuthConfigOption
WithServerAddress is the address of the registry.
func WithUsername ¶
func WithUsername(username string) SetRegistryAuthConfigOption
WithUsername is the username for the registry.