crd

package
v0.0.0-...-10d6984 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RetryAttempts          = 10
	SleepSecondsPerAttempt = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CRDStore

type CRDStore struct {
	ClusterName  string
	BasePath     string
	AbsolutePath string
	// contains filtered or unexported fields
}

func NewCRDStore

func NewCRDStore(o *CRDStoreOptions) *CRDStore

func (*CRDStore) BytesToCluster

func (crds *CRDStore) BytesToCluster(bytes []byte) (*cluster.Cluster, error)

func (*CRDStore) Commit

func (crds *CRDStore) Commit(c *cluster.Cluster) error

func (*CRDStore) Destroy

func (crds *CRDStore) Destroy() error

func (*CRDStore) Exists

func (crds *CRDStore) Exists() bool

func (*CRDStore) GetCluster

func (crds *CRDStore) GetCluster() (*cluster.Cluster, error)

func (*CRDStore) List

func (crds *CRDStore) List() ([]string, error)

func (*CRDStore) Read

func (crds *CRDStore) Read(relativePath string) ([]byte, error)

func (*CRDStore) ReadStore

func (crds *CRDStore) ReadStore() ([]byte, error)

func (*CRDStore) Rename

func (crds *CRDStore) Rename(existingRelativePath, newRelativePath string) error

type CRDStoreOptions

type CRDStoreOptions struct {
	ClusterName string
	BasePath    string
}

Jump to

Keyboard shortcuts

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