Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginDriver ¶
type PluginDriver struct {
RefCounts *refcount.RefCountsMap
MountIDtoName map[string]string // map of mountID -> full volume name
MountRoot string
}
PluginDriver - helper struct to hold common utilities for driver interface
func (*PluginDriver) DecrRefCount ¶
func (u *PluginDriver) DecrRefCount(vol string) (uint, error)
Decrement the reference count for the given volume
func (*PluginDriver) GetMountPoint ¶
func (u *PluginDriver) GetMountPoint(volName string) string
GetMountPoint returns the mount point based on MountRoot and volume name
func (*PluginDriver) GetRefCount ¶
func (u *PluginDriver) GetRefCount(vol string) uint
Return the number of references for the given volume
func (*PluginDriver) IncrRefCount ¶
func (u *PluginDriver) IncrRefCount(vol string) uint
Increment the reference count for the given volume
Click to show internal directories.
Click to hide internal directories.