atlas

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

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) CLIInit

func (b *Backend) CLIInit(opts *backend.CLIOpts) error

backend.CLI impl.

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) Configure

func (b *Backend) Configure(c *terraform.ResourceConfig) error

func (*Backend) DeleteState

func (b *Backend) DeleteState(name string) error

func (*Backend) Input

func (*Backend) State

func (b *Backend) State(name string) (state.State, error)

func (*Backend) States

func (b *Backend) States() ([]string, error)

func (*Backend) Validate

func (b *Backend) Validate(c *terraform.ResourceConfig) ([]string, []error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL