Documentation ¶
Index ¶
- type Backend
- func (b *Backend) CLIInit(opts *backend.CLIOpts) error
- func (b *Backend) Colorize() *colorstring.Colorize
- func (b *Backend) Configure(c *terraform.ResourceConfig) error
- func (b *Backend) DeleteState(name string) error
- func (b *Backend) Input(ui terraform.UIInput, c *terraform.ResourceConfig) (*terraform.ResourceConfig, error)
- func (b *Backend) State(name string) (state.State, error)
- func (b *Backend) States() ([]string, error)
- func (b *Backend) Validate(c *terraform.ResourceConfig) ([]string, []error)
Constants ¶
This section is empty.
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) DeleteState ¶
func (*Backend) Input ¶
func (b *Backend) Input( ui terraform.UIInput, c *terraform.ResourceConfig) (*terraform.ResourceConfig, error)
Click to show internal directories.
Click to hide internal directories.