Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlusterClient ¶
type GlusterClient struct { }
GlusterClient is the http client that sends requests to the gluster API.
func (GlusterClient) Mount ¶
func (client GlusterClient) Mount(servers []string, volume string, mountPath string) error
Mount takes the server, volume and mountPath and mounts the gluster volume at the specified path
func (GlusterClient) Unmount ¶
func (client GlusterClient) Unmount(mountPath string) error
Unmount unmounts the volume
func (GlusterClient) VolumeExist ¶
func (client GlusterClient) VolumeExist(name string) (bool, error)
VolumeExist returns whether a volume exist in the cluster with a given name or not.
func (GlusterClient) Volumes ¶
func (client GlusterClient) Volumes() ([]GlusterVolume, error)
Volumes returns a list of available gluster volumes
type GlusterVolume ¶
type GlusterVolume struct {
Name string
}
GlusterVolume represents the available gluster volumes.
Click to show internal directories.
Click to hide internal directories.