Documentation ¶
Index ¶
- Constants
- type Backend
- func (b *Backend) CLIInit(opts *backend.CLIOpts) error
- func (b *Backend) Colorize() *colorstring.Colorize
- func (b *Backend) ConfigSchema() *configschema.Block
- func (b *Backend) Configure(obj cty.Value) tfdiags.Diagnostics
- func (b *Backend) DeleteWorkspace(name string) error
- func (b *Backend) PrepareConfig(obj cty.Value) (cty.Value, tfdiags.Diagnostics)
- func (b *Backend) StateMgr(name string) (statemgr.Full, error)
- func (b *Backend) Workspaces() ([]string, error)
Constants ¶
View Source
const EnvVarAddress = "ATLAS_ADDRESS"
View Source
const EnvVarToken = "ATLAS_TOKEN"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { // CLI and Colorize control the CLI output. If CLI is nil then no CLI // output will be done. If CLIColor is nil then no coloring will be done. CLI cli.Ui CLIColor *colorstring.Colorize // ContextOpts are the base context options to set when initializing a // Terraform context. Many of these will be overridden or merged by // Operation. See Operation for more details. ContextOpts *terraform.ContextOpts // contains filtered or unexported fields }
Backend is an implementation of EnhancedBackend that performs all operations in Atlas. State must currently also be stored in Atlas, although it is worth investigating in the future if state storage can be external as well.
func (*Backend) Colorize ¶
func (b *Backend) Colorize() *colorstring.Colorize
Colorize returns the Colorize structure that can be used for colorizing output. This is gauranteed to always return a non-nil value and so is useful as a helper to wrap any potentially colored strings.
func (*Backend) ConfigSchema ¶ added in v0.12.0
func (b *Backend) ConfigSchema() *configschema.Block
func (*Backend) DeleteWorkspace ¶ added in v0.12.0
func (*Backend) PrepareConfig ¶ added in v0.12.0
func (*Backend) Workspaces ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.