From 5313e15e07d4841e11c25af6fbe4ea51c5ed901b Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 7 Sep 2017 10:08:39 +0200 Subject: [PATCH] backend/remote-state/gcloud: Move the definition of the Backend struct. --- backend/remote-state/gcloud/backend.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/backend/remote-state/gcloud/backend.go b/backend/remote-state/gcloud/backend.go index 8941bebf6..bb67a7bfa 100644 --- a/backend/remote-state/gcloud/backend.go +++ b/backend/remote-state/gcloud/backend.go @@ -13,6 +13,16 @@ import ( "google.golang.org/api/option" ) +type Backend struct { + *schema.Backend + + storageClient *storage.Client + storageContext googleContext.Context + + bucketName string + stateDir string +} + func New() backend.Backend { s := &schema.Backend{ Schema: map[string]*schema.Schema{ @@ -42,16 +52,6 @@ func New() backend.Backend { return result } -type Backend struct { - *schema.Backend - - storageClient *storage.Client - storageContext googleContext.Context - - bucketName string - stateDir string -} - func (b *Backend) configure(ctx context.Context) error { if b.storageClient != nil { return nil