atlas

package
v0.14.0-alpha20200910 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

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 New added in v0.11.8

func New() *Backend

New returns a new initialized Atlas backend.

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) ConfigSchema added in v0.12.0

func (b *Backend) ConfigSchema() *configschema.Block

func (*Backend) Configure

func (b *Backend) Configure(obj cty.Value) tfdiags.Diagnostics

func (*Backend) DeleteWorkspace added in v0.12.0

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

func (*Backend) PrepareConfig added in v0.12.0

func (b *Backend) PrepareConfig(obj cty.Value) (cty.Value, tfdiags.Diagnostics)

func (*Backend) StateMgr added in v0.12.0

func (b *Backend) StateMgr(name string) (statemgr.Full, error)

func (*Backend) Workspaces added in v0.12.0

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

Jump to

Keyboard shortcuts

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