Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

[WIP] Add the ability to support authentication to AWS ECR #1455

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Document the package registry/credentials functions
John Bryan Sazon committed Oct 23, 2018
commit f4635ff33dfe6ece47f758979ea3e72854cae65a
2 changes: 2 additions & 0 deletions registry/credentials.go
Original file line number Diff line number Diff line change
@@ -98,6 +98,8 @@ func ParseCredentials(from string, b []byte) (Credentials, error) {
return Credentials{m: m}, nil
}

// ImageCredsWithDefaults designates the appropriate credential to use for a repository
// using a docker configuration file supplied by the caller.
func ImageCredsWithDefaults(lookup func() ImageCreds, configPath string) (func() ImageCreds, error) {
// pre-flight check
bs, err := ioutil.ReadFile(configPath)