utils

package
v0.0.0-...-96d2ce7 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 6

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

Jump to

Keyboard shortcuts

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