fs

package
v0.0.0-...-2db79e0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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) Commit

func (fs *FileSystemStore) Commit(c *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) Read

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

func (*FileSystemStore) ReadStore

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

func (*FileSystemStore) Rename

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

type FileSystemStoreOptions

type FileSystemStoreOptions struct {
	ClusterName string
	BasePath    string
}

Jump to

Keyboard shortcuts

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