diff --git a/config/config.go b/config/config.go index 6d6c0c4e3..98babb73f 100644 --- a/config/config.go +++ b/config/config.go @@ -177,9 +177,9 @@ func saveConfig(v *viper.Viper, file string) error { return nil } -// FetchDecodedAuth fetches auth string from config, decodes and +// GetDecodedAuth fetches auth string from config, decodes and // returns username password -func FetchDecodedAuth() (string, string, error) { +func GetDecodedAuth() (string, string, error) { encodedAuth := CFG.RegistryAuth.GetString() return DecodeAuth(encodedAuth) } diff --git a/docker/registry.go b/docker/registry.go index 17e02d739..fc760b5cb 100644 --- a/docker/registry.go +++ b/docker/registry.go @@ -18,7 +18,7 @@ type ListRepositoryTagsResponse struct { // ListRepositoryTags lists the tags for a given repository func ListRepositoryTags(repository string) ([]string, error) { registry := config.CFG.RegistryAuthority.GetString() - user, password, err := config.FetchDecodedAuth() + user, password, err := config.GetDecodedAuth() if err != nil { return []string{}, errors.Wrap(err, "Error fetching credentials") }