gcs

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend added in v0.4.5

type Backend 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"`

	ProjectPtr *project.Project
	// contains filtered or unexported fields
}

Backend - describe s3 backend for interface package.backend.

func (*Backend) GetBackendBytes added in v0.4.5

func (b *Backend) GetBackendBytes(stackName, unitName string) ([]byte, error)

GetBackendBytes generate terraform backend config.

func (*Backend) GetBackendHCL added in v0.4.5

func (b *Backend) GetBackendHCL(stackName, unitName string) (*hclwrite.File, error)

GetBackendHCL generate terraform backend config.

func (*Backend) GetRemoteStateHCL added in v0.4.5

func (b *Backend) GetRemoteStateHCL(stackName, unitName string) ([]byte, error)

GetRemoteStateHCL generate terraform remote state for this backend.

func (*Backend) LockState added in v0.4.5

func (b *Backend) LockState() error

func (*Backend) Name added in v0.4.5

func (b *Backend) Name() string

Name return name.

func (*Backend) Provider added in v0.4.5

func (b *Backend) Provider() string

Provider return name.

func (*Backend) ReadState added in v0.4.5

func (b *Backend) ReadState() (string, error)

func (*Backend) State added in v0.4.5

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

func (*Backend) UnlockState added in v0.4.5

func (b *Backend) UnlockState() error

func (*Backend) WriteState added in v0.4.5

func (b *Backend) WriteState(stateData string) error

type Factory

type Factory struct{}

Factory factory for backends.

func (*Factory) New

func (f *Factory) New(config []byte, name string, p *project.Project) (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