state

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: MPL-2.0 Imports: 3 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Name string
	// contains filtered or unexported fields
}

func New

func New(name string, raw []byte) (State, error)

func (*State) AddBackup added in v0.9.0

func (state *State) AddBackup(name string, obj interface{}) error

Backups are stored at path `module.backup_{clusterName}`

func (*State) AddCluster added in v0.9.0

func (state *State) AddCluster(provider, name string, obj interface{}) error

Clusters are stored at path `module.cluster_{provider}_{clusterName}`

func (*State) AddNode added in v0.9.0

func (state *State) AddNode(clusterKey, name string, obj interface{}) error

Nodes are stored at path `module.node_{provider}_{clusterName}_{nodeName}`

func (*State) Backup added in v0.9.0

func (state *State) Backup(clusterKey string) string

Backups are stored at path `module.backup_{clusterKey}`

func (*State) Bytes

func (state *State) Bytes() []byte

func (*State) Clusters

func (state *State) Clusters() (map[string]string, error)

Returns map of cluster name to cluster key Clusters are stored at path `module.cluster_{provider}_{clusterName}`

func (*State) Delete

func (state *State) Delete(path string) error

func (*State) Get

func (state *State) Get(path string) string

func (*State) Nodes

func (state *State) Nodes(clusterKey string) (map[string]string, error)

Returns map of node name to node key for all nodes in a cluster Nodes are stored at path `module.node_{provider}_{clusterName}_{nodeName}`

func (*State) SetManager added in v0.9.0

func (state *State) SetManager(obj interface{}) error

func (*State) SetTerraformBackendConfig added in v0.9.0

func (state *State) SetTerraformBackendConfig(tfBackendPath string, tfBackendObj interface{}) error

Jump to

Keyboard shortcuts

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