Documentation ¶
Index ¶
- Constants
- type GlusterDriver
- func (d *GlusterDriver) Capabilities(r volume.Request) volume.Response
- func (d *GlusterDriver) Create(r volume.Request) volume.Response
- func (d *GlusterDriver) Get(r volume.Request) volume.Response
- func (d *GlusterDriver) List(r volume.Request) volume.Response
- func (d *GlusterDriver) Mount(r volume.MountRequest) volume.Response
- func (d *GlusterDriver) Path(r volume.Request) volume.Response
- func (d *GlusterDriver) Remove(r volume.Request) volume.Response
- func (d *GlusterDriver) Unmount(r volume.UnmountRequest) volume.Response
- type GlusterPersistence
Constants ¶
View Source
const (
//MountTimeout timeout before killing a mount try in seconds
MountTimeout = 30
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlusterDriver ¶
GlusterDriver the global driver responding to call
func Init ¶
func Init(root string, fuseOpts string) *GlusterDriver
Init start all needed deps and serve response to API call
func (*GlusterDriver) Capabilities ¶
func (d *GlusterDriver) Capabilities(r volume.Request) volume.Response
Capabilities Send capabilities of the local driver
func (*GlusterDriver) Create ¶
func (d *GlusterDriver) Create(r volume.Request) volume.Response
Create create and init the requested volume
func (*GlusterDriver) Get ¶
func (d *GlusterDriver) Get(r volume.Request) volume.Response
Get get info on the requested volume
func (*GlusterDriver) List ¶
func (d *GlusterDriver) List(r volume.Request) volume.Response
List volumes handled by thos driver
func (*GlusterDriver) Mount ¶
func (d *GlusterDriver) Mount(r volume.MountRequest) volume.Response
Mount mount the requested volume
func (*GlusterDriver) Path ¶
func (d *GlusterDriver) Path(r volume.Request) volume.Response
Path get path of the requested volume
func (*GlusterDriver) Remove ¶
func (d *GlusterDriver) Remove(r volume.Request) volume.Response
Remove remove the requested volume
func (*GlusterDriver) Unmount ¶
func (d *GlusterDriver) Unmount(r volume.UnmountRequest) volume.Response
Unmount unmount the requested volume
type GlusterPersistence ¶
type GlusterPersistence struct {
Volumes map[string]*glusterVolume `json:"volumes"`
}
GlusterPersistence represent struct of persistence file
Click to show internal directories.
Click to hide internal directories.