jsonfs

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONFileSystemStore

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

JSONFileSystemStore exists to save the cluster at runtime to the file defined in the state.ClusterJSONFile constant. We perform this operation so that various bash scripts can get the cluster state at runtime without having to inject key/value pairs into the script or anything like that.

func (*JSONFileSystemStore) BytesToCluster

func (fs *JSONFileSystemStore) BytesToCluster(bytes []byte) (*cluster.Cluster, error)

func (*JSONFileSystemStore) Commit

func (fs *JSONFileSystemStore) Commit(c *cluster.Cluster) error

func (*JSONFileSystemStore) Destroy

func (fs *JSONFileSystemStore) Destroy() error

func (*JSONFileSystemStore) Exists

func (fs *JSONFileSystemStore) Exists() bool

func (*JSONFileSystemStore) GetCluster

func (fs *JSONFileSystemStore) GetCluster() (*cluster.Cluster, error)

func (*JSONFileSystemStore) List

func (fs *JSONFileSystemStore) List() ([]string, error)

func (*JSONFileSystemStore) Read

func (fs *JSONFileSystemStore) Read(relativePath string) ([]byte, error)

func (*JSONFileSystemStore) ReadStore

func (fs *JSONFileSystemStore) ReadStore() ([]byte, error)

func (*JSONFileSystemStore) Rename

func (fs *JSONFileSystemStore) Rename(existingRelativePath, newRelativePath string) error

type JSONFileSystemStoreOptions

type JSONFileSystemStoreOptions struct {
	BasePath    string
	ClusterName string
}

Jump to

Keyboard shortcuts

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