Documentation ¶
Index ¶
- func ReadPathOrContents(input string) (string, error)
- type Backend
- func (b *Backend) Configure() error
- func (b *Backend) GetBackendBytes(stackName, unitName string) ([]byte, error)
- func (b *Backend) GetBackendHCL(stackName, unitName string) (*hclwrite.File, error)
- func (b *Backend) GetRemoteStateHCL(stackName, unitName string) ([]byte, error)
- func (b *Backend) LockState() error
- func (b *Backend) Name() string
- func (b *Backend) Provider() string
- func (b *Backend) ReadState() (string, error)
- func (b *Backend) State() map[string]interface{}
- func (b *Backend) UnlockState() error
- func (b *Backend) WriteState(stateData string) error
- type Factory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadPathOrContents ¶
ReadPathOrContents reads the contents of a file if the input is a file path, or returns the input as is if it's not a file path.
Types ¶
type Backend ¶
type Backend struct { Bucket string `yaml:"bucket"` Credentials string `yaml:"credentials,omitempty"` ImpersonateSA string `yaml:"impersonate_service_account,omitempty"` ImpersonateSADelegates []string `yaml:"impersonate_service_account_delegates,omitempty"` AccessToken string `yaml:"access_token,omitempty"` Prefix string `yaml:"prefix"` StorageCustomEndpoint string `yaml:"storage_custom_endpoint,omitempty"` ProjectPtr *project.Project `yaml:"-"` // contains filtered or unexported fields }
Backend - describe GCS backend for interface package.backend.
func (*Backend) GetBackendBytes ¶
GetBackendBytes generate terraform backend config.
func (*Backend) GetBackendHCL ¶
GetBackendHCL generate terraform backend config.
func (*Backend) GetRemoteStateHCL ¶
GetRemoteStateHCL generate terraform remote state for this backend.
func (*Backend) UnlockState ¶
func (*Backend) WriteState ¶
Click to show internal directories.
Click to hide internal directories.