state

package
v0.0.0-...-7bcb550 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

State Stores

All clusters are represented via a state, each state needs to be stored somewhere.

This is a directory that defines the interface of how kubicorn will interact with a state store, as well as all the implementations we have.

Every new state store will need to be baked into the cobra commands.

Documentation

Index

Constants

View Source
const (
	ClusterJSONFile = "cluster.json"
	ClusterYamlFile = "cluster.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterStorer

type ClusterStorer interface {
	Exists() bool
	ReadStore() ([]byte, error)
	BytesToCluster(bytes []byte) (*cluster.Cluster, error)
	Commit(cluster *cluster.Cluster) error
	Destroy() error
	GetCluster() (*cluster.Cluster, error)
	List() ([]string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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