remotestate

package
v0.12.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MPL-2.0 Imports: 8 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(obj cty.Value) tfdiags.Diagnostics

func (*Backend) DeleteWorkspace added in v0.12.0

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

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)

Directories

Path Synopsis
Package gcs implements remote storage of state on Google Cloud Storage (GCS).
Package gcs implements remote storage of state on Google Cloud Storage (GCS).

Jump to

Keyboard shortcuts

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