Skip to content

Commit

Permalink
Make BuildS3Config public (#3132)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvaldivia authored Apr 1, 2020
1 parent eeeca23 commit 0ea8d1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/config-host-add.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ func probeS3Signature(accessKey, secretKey, url string) (string, *probe.Error) {
return s3Config.Signature, nil
}

// buildS3Config constructs an S3 Config and does
// BuildS3Config constructs an S3 Config and does
// signature auto-probe when needed.
func buildS3Config(url, accessKey, secretKey, api, lookup string) (*Config, *probe.Error) {
func BuildS3Config(url, accessKey, secretKey, api, lookup string) (*Config, *probe.Error) {

s3Config := newS3Config(url, &hostConfigV9{
AccessKey: accessKey,
Expand Down Expand Up @@ -278,7 +278,7 @@ func mainConfigHostAdd(ctx *cli.Context) error {
accessKey, secretKey := fetchHostKeys(args)
checkConfigHostAddSyntax(ctx, accessKey, secretKey)

s3Config, err := buildS3Config(url, accessKey, secretKey, api, lookup)
s3Config, err := BuildS3Config(url, accessKey, secretKey, api, lookup)
fatalIf(err.Trace(ctx.Args()...), "Unable to initialize new config from the provided credentials.")

addHost(ctx.Args().Get(0), hostConfigV9{
Expand Down

0 comments on commit 0ea8d1d

Please sign in to comment.