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 ¶ added in v0.7.21
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 ¶ added in v0.4.5
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 ¶ added in v0.4.5
GetBackendBytes generate terraform backend config.
func (*Backend) GetBackendHCL ¶ added in v0.4.5
GetBackendHCL generate terraform backend config.
func (*Backend) GetRemoteStateHCL ¶ added in v0.4.5
GetRemoteStateHCL generate terraform remote state for this backend.
func (*Backend) UnlockState ¶ added in v0.4.5
func (*Backend) WriteState ¶ added in v0.4.5
Click to show internal directories.
Click to hide internal directories.