glusterfs

package
v0.0.0-...-a670690 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: MIT Imports: 3 Imported by: 1

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 NewClient

func NewClient() GlusterClient

NewClient initializes a new client.

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.

Jump to

Keyboard shortcuts

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