Documentation ¶
Index ¶
- type FileSystemStore
- func (fs *FileSystemStore) BytesToCluster(bytes []byte) (*cluster.Cluster, error)
- func (fs *FileSystemStore) Commit(c *cluster.Cluster) error
- func (fs *FileSystemStore) Destroy() error
- func (fs *FileSystemStore) Exists() bool
- func (fs *FileSystemStore) GetCluster() (*cluster.Cluster, error)
- func (fs *FileSystemStore) List() ([]string, error)
- func (fs *FileSystemStore) Read(relativePath string) ([]byte, error)
- func (fs *FileSystemStore) ReadStore() ([]byte, error)
- func (fs *FileSystemStore) Rename(existingRelativePath, newRelativePath string) error
- type FileSystemStoreOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystemStore ¶
type FileSystemStore struct { ClusterName string BasePath string AbsolutePath string // contains filtered or unexported fields }
func NewFileSystemStore ¶
func NewFileSystemStore(o *FileSystemStoreOptions) *FileSystemStore
func (*FileSystemStore) BytesToCluster ¶
func (fs *FileSystemStore) BytesToCluster(bytes []byte) (*cluster.Cluster, error)
func (*FileSystemStore) Destroy ¶
func (fs *FileSystemStore) Destroy() error
func (*FileSystemStore) Exists ¶
func (fs *FileSystemStore) Exists() bool
func (*FileSystemStore) GetCluster ¶
func (fs *FileSystemStore) GetCluster() (*cluster.Cluster, error)
func (*FileSystemStore) List ¶
func (fs *FileSystemStore) List() ([]string, error)
func (*FileSystemStore) ReadStore ¶
func (fs *FileSystemStore) ReadStore() ([]byte, error)
func (*FileSystemStore) Rename ¶
func (fs *FileSystemStore) Rename(existingRelativePath, newRelativePath string) error
type FileSystemStoreOptions ¶
Click to show internal directories.
Click to hide internal directories.