state

package
v0.0.0-...-dfc6acd Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 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 (e.g. see cmd/utils.go and cmd/list.go).

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
Package s3 implements S3-compatible state store.
Package s3 implements S3-compatible state store.

Jump to

Keyboard shortcuts

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