Documentation ¶
Index ¶
- type JSONFileSystemStore
- func (fs *JSONFileSystemStore) BytesToCluster(bytes []byte) (*cluster.Cluster, error)
- func (fs *JSONFileSystemStore) Commit(c *cluster.Cluster) error
- func (fs *JSONFileSystemStore) Destroy() error
- func (fs *JSONFileSystemStore) Exists() bool
- func (fs *JSONFileSystemStore) GetCluster() (*cluster.Cluster, error)
- func (fs *JSONFileSystemStore) List() ([]string, error)
- func (fs *JSONFileSystemStore) Read(relativePath string) ([]byte, error)
- func (fs *JSONFileSystemStore) ReadStore() ([]byte, error)
- func (fs *JSONFileSystemStore) Rename(existingRelativePath, newRelativePath string) error
- type JSONFileSystemStoreOptions
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 NewJSONFileSystemStore ¶
func NewJSONFileSystemStore(o *JSONFileSystemStoreOptions) *JSONFileSystemStore
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
Click to show internal directories.
Click to hide internal directories.