Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClientNotInitialized = errors.New("storage client not initialized")
View Source
var (
ZkStorageClientsPath = "/storage/clients"
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a storage client that manges discovering and mounting filesystems
func (*Client) Close ¶
func (c *Client) Close()
Close informs this client to shutdown its current operations.
type Node ¶
type Node struct { host.Host Network string ExportPath string ExportTime string // contains filtered or unexported fields }
Node is a server that participate in serviced storage as a server or client
func (*Node) SetVersion ¶
func (n *Node) SetVersion(version interface{})
SetVersion sets the node version to implement the client.Node interface
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server manages the exporting of a file system to clients.
type StorageDriver ¶
type StorageDriver interface { // ExportPath will be something like "serviced_volumes_v2" ExportPath() string // ExportNamePath() will be something like "/exports/serviced_volumes_v2" ExportNamePath() string SetClients(clients ...string) Sync() error //TODO: remove Restart and Stop Restart() error Stop() error // AddVolume notify storage driver that volume at path is available for sharing AddVolume(path string) error // RemoveVolume notify storage driver that volume at path is should not be shared RemoveVolume(path string) error // Get the backing device for a path GetDevice(path string) (uint64, error) }
StorageDriver is an interface that storage subsystem must implement to be used by this packages Server implementation.
Click to show internal directories.
Click to hide internal directories.