driver

package
v1.0.4-1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: MIT Imports: 12 Imported by: 12

Documentation

Index

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

type GlusterDriver struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

GlusterDriver the global driver responding to call

func Init

func Init(root string, fuseOpts string, mountUniqName bool) *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

Create create and init the requested volume

func (*GlusterDriver) Get

Get get info on the requested volume

func (*GlusterDriver) List

List volumes handled by thos driver

func (*GlusterDriver) Mount

Mount mount the requested volume

func (*GlusterDriver) Path

Path get path of the requested volume

func (*GlusterDriver) Remove

Remove remove the requested volume

func (*GlusterDriver) Unmount

Unmount unmount the requested volume

type GlusterPersistence

type GlusterPersistence struct {
	Version int                           `json:"version"`
	Volumes map[string]*glusterVolume     `json:"volumes"`
	Mounts  map[string]*glusterMountpoint `json:"mounts"`
}

GlusterPersistence represent struct of persistence file

Jump to

Keyboard shortcuts

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