state

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 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) Add

func (state *State) Add(path string, obj interface{}) error

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 cluster keys are prefixed with 'cluster_'

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 node keys are prefixed with 'node_'

Jump to

Keyboard shortcuts

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