From 83c650cf1ce3bebbefde65ca2bd87472dd70d92c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Aug 2021 17:05:21 +0800 Subject: [PATCH] build(deps): bump github.com/beyondstorage/go-storage/v4 from 4.5.0 to 4.6.0 (#39) * build(deps): bump github.com/beyondstorage/go-storage/v4 Bumps [github.com/beyondstorage/go-storage/v4](https://github.com/beyondstorage/go-storage) from 4.5.0 to 4.6.0. - [Release notes](https://github.com/beyondstorage/go-storage/releases) - [Changelog](https://github.com/beyondstorage/go-storage/blob/master/CHANGELOG.md) - [Commits](https://github.com/beyondstorage/go-storage/compare/v4.5.0...v4.6.0) --- updated-dependencies: - dependency-name: github.com/beyondstorage/go-storage/v4 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Auto build to generate code Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com> --- generated.go | 11 +++++++++++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/generated.go b/generated.go index 800723b..e21b45f 100644 --- a/generated.go +++ b/generated.go @@ -7,6 +7,7 @@ import ( "net/http" "time" + . "github.com/beyondstorage/go-storage/v4/pairs" "github.com/beyondstorage/go-storage/v4/pkg/httpclient" "github.com/beyondstorage/go-storage/v4/services" . "github.com/beyondstorage/go-storage/v4/types" @@ -17,6 +18,7 @@ var _ services.ServiceError var _ httpclient.Options var _ time.Duration var _ http.Request +var _ Error // Type is the type for dropbox const Type = "dropbox" @@ -135,6 +137,8 @@ type pairStorageNew struct { StorageFeatures StorageFeatures HasWorkDir bool WorkDir string + // Enable features + // Default pairs } // parsePairStorageNew will parse Pair slice into *pairStorageNew @@ -177,8 +181,15 @@ func parsePairStorageNew(opts []Pair) (pairStorageNew, error) { } result.HasWorkDir = true result.WorkDir = v.Value.(string) + // Enable features + // Default pairs } } + + // Enable features + + // Default pairs + if !result.HasCredential { return pairStorageNew{}, services.PairRequiredError{Keys: []string{"credential"}} } diff --git a/go.mod b/go.mod index 01a5bf0..7a95f36 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.14 require ( github.com/beyondstorage/go-integration-test/v4 v4.2.0 - github.com/beyondstorage/go-storage/v4 v4.5.0 + github.com/beyondstorage/go-storage/v4 v4.6.0 github.com/dropbox/dropbox-sdk-go-unofficial/v6 v6.0.2 github.com/google/uuid v1.3.0 golang.org/x/oauth2 v0.0.0-20210413134643-5e61552d6c78 // indirect diff --git a/go.sum b/go.sum index 5d28856..ef0f7a7 100644 --- a/go.sum +++ b/go.sum @@ -38,8 +38,8 @@ github.com/Xuanwo/templateutils v0.1.0/go.mod h1:OdE0DJ+CJxDBq6psX5DPV+gOZi8bhuH github.com/beyondstorage/go-integration-test/v4 v4.2.0 h1:h2+SLmlDqjfBg+NzVcDr6VCmcD7I2xG+mqMzDlaCG+0= github.com/beyondstorage/go-integration-test/v4 v4.2.0/go.mod h1:jLyYWSGUjQRH7U1HdaLbXE5sxBgqrtK73q+Q7PGIuSs= github.com/beyondstorage/go-storage/v4 v4.3.0/go.mod h1:0fdcRCzLKMQe7Ve4zPlyTGgoPYwuINiV79Gx9tCt9tQ= -github.com/beyondstorage/go-storage/v4 v4.5.0 h1:cWkX1A+yVLldEpj/Ad9capev9K1fbVIVcRvwqWsMgpw= -github.com/beyondstorage/go-storage/v4 v4.5.0/go.mod h1:mc9VzBImjXDg1/1sLfta2MJH79elfM6m47ZZvZ+q/Uw= +github.com/beyondstorage/go-storage/v4 v4.6.0 h1:a05dtbYjMZB7LrUSvVzzHwlx33B4yEmd5oQB7Itk7VY= +github.com/beyondstorage/go-storage/v4 v4.6.0/go.mod h1:mc9VzBImjXDg1/1sLfta2MJH79elfM6m47ZZvZ+q/Uw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=