gcs

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendGCS

type BackendGCS struct {
	Bucket                    string `yaml:"bucket"`
	Credentials               string `yaml:"credentials,omitempty"`
	ImpersonateServiceAccount string `yaml:"impersonate_service_account,omitempty"`
	AccessToken               string `yaml:"access_token,omitempty"`
	EncryptionKey             string `yaml:"encryption_key,omitempty"`
	Prefix                    string `yaml:"prefix"`
	// contains filtered or unexported fields
}

BackendGCS - describe s3 backend for interface package.backend.

func (*BackendGCS) GetBackendBytes

func (b *BackendGCS) GetBackendBytes(infraName, moduleName string) ([]byte, error)

GetBackendBytes generate terraform backend config.

func (*BackendGCS) GetBackendHCL

func (b *BackendGCS) GetBackendHCL(infraName, moduleName string) (*hclwrite.File, error)

GetBackendHCL generate terraform backend config.

func (*BackendGCS) GetRemoteStateHCL

func (b *BackendGCS) GetRemoteStateHCL(infraName, moduleName string) ([]byte, error)

GetRemoteStateHCL generate terraform remote state for this backend.

func (*BackendGCS) Name

func (b *BackendGCS) Name() string

Name return name.

func (*BackendGCS) Provider

func (b *BackendGCS) Provider() string

Provider return name.

func (*BackendGCS) State

func (b *BackendGCS) State() map[string]interface{}

type Factory

type Factory struct{}

Factory factory for backends.

func (*Factory) New

func (f *Factory) New(config []byte, name string) (project.Backend, error)

New creates the new backend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL