Documentation ¶
Index ¶
- func CredentialsStore(configFile configfile.ConfigFile) credentials.Store
- func EncodeAuth(authConfig types.AuthConfig) (string, error)
- func EncodedAuth(ref string) (string, error)
- func EncodedConfigAuth(imageRef string) (string, error)
- func EncodedEnvAuth() (string, error)
- func GetPullOptions(imageName string) (image.PullOptions, error)
- func WarnOnAPIConsumption(container watchtowerTypes.Container) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CredentialsStore ¶
func CredentialsStore(configFile configfile.ConfigFile) credentials.Store
CredentialsStore returns a new credentials store based on the settings provided in the configuration file.
func EncodeAuth ¶
func EncodeAuth(authConfig types.AuthConfig) (string, error)
EncodeAuth Base64 encode an AuthConfig struct for transmission over HTTP
func EncodedAuth ¶
EncodedAuth returns an encoded auth config for the given registry loaded from environment variables or docker config as available in that order
func EncodedConfigAuth ¶
EncodedConfigAuth returns an encoded auth config for the given registry loaded from the docker config Returns an empty string if credentials cannot be found for the referenced server The docker config must be mounted on the container
func EncodedEnvAuth ¶
EncodedEnvAuth returns an encoded auth config for the given registry loaded from environment variables Returns an error if authentication environment variables have not been set
func GetPullOptions ¶
func GetPullOptions(imageName string) (image.PullOptions, error)
func WarnOnAPIConsumption ¶
func WarnOnAPIConsumption(container watchtowerTypes.Container) bool
WarnOnAPIConsumption will return true if the registry is known-expected to respond well to HTTP HEAD in checking the container digest -- or if there are problems parsing the container hostname. Will return false if behavior for container is unknown.
Types ¶
This section is empty.