backend/remote-state/gcloud: Move the definition of the Backend struct.
This commit is contained in:
parent
def3279ec7
commit
5313e15e07
|
@ -13,6 +13,16 @@ import (
|
||||||
"google.golang.org/api/option"
|
"google.golang.org/api/option"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type Backend struct {
|
||||||
|
*schema.Backend
|
||||||
|
|
||||||
|
storageClient *storage.Client
|
||||||
|
storageContext googleContext.Context
|
||||||
|
|
||||||
|
bucketName string
|
||||||
|
stateDir string
|
||||||
|
}
|
||||||
|
|
||||||
func New() backend.Backend {
|
func New() backend.Backend {
|
||||||
s := &schema.Backend{
|
s := &schema.Backend{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
|
@ -42,16 +52,6 @@ func New() backend.Backend {
|
||||||
return result
|
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 {
|
func (b *Backend) configure(ctx context.Context) error {
|
||||||
if b.storageClient != nil {
|
if b.storageClient != nil {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue