Skip to content

Commit

Permalink
Change credential getter to match naming elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
andscoop committed Apr 23, 2018
1 parent ab8ba48 commit 8df8460
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion docker/registry.go
Expand Up @@ -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")
}
Expand Down

0 comments on commit 8df8460

Please sign in to comment.