From e8aaf0b56ebd4cb2c7973876e9ecb48385cae8b8 Mon Sep 17 00:00:00 2001 From: Daniel Valdivia Date: Mon, 30 Mar 2020 13:36:54 -0700 Subject: [PATCH] Make BuildS3Config public --- cmd/config-host-add.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/config-host-add.go b/cmd/config-host-add.go index d824e5ba5e..07d81a6d8b 100644 --- a/cmd/config-host-add.go +++ b/cmd/config-host-add.go @@ -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, @@ -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{