remotestate

package
v0.9.10 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package remotestate implements a Backend for remote state implementations from the state/remote package that also implement a backend schema for configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestClient

func TestClient(t *testing.T, raw backend.Backend)

Types

type Backend

type Backend struct {
	// Backend should be set to the configuration schema. ConfigureFunc
	// should not be set on the schema.
	*schema.Backend

	// ConfigureFunc takes the ctx from a schema.Backend and returns a
	// fully configured remote client to use for state operations.
	ConfigureFunc func(ctx context.Context) (remote.Client, error)
	// contains filtered or unexported fields
}

Backend implements backend.Backend for remote state backends.

All exported fields should be set. This struct should only be used by implementers of backends, not by consumers. If you're consuming, please use a higher level package such as Consul backends.

func (*Backend) Configure

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

func (*Backend) DeleteState

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

func (*Backend) State

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

func (*Backend) States

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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