flexvolume

package
v0.9.4-test5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NullMounter = &nullMounter{}

Functions

func GetFlexvolumeInfo

func GetFlexvolumeInfo(dir string) (string, int, error)

GetFlexvolumeInfo tries to extract flexvolume uuid and partition number from the specified directory. Negative partition number means that no partition number was specified.

Types

type FlexVolumeDriver

type FlexVolumeDriver struct {
	// contains filtered or unexported fields
}

func NewFlexVolumeDriver

func NewFlexVolumeDriver(uuidGen UuidGen, mounter Mounter) *FlexVolumeDriver

func (*FlexVolumeDriver) Run

func (d *FlexVolumeDriver) Run(args []string) string

type LinuxMounter

type LinuxMounter struct{}

func NewLinuxMounter

func NewLinuxMounter() *LinuxMounter

func (*LinuxMounter) Mount

func (mounter *LinuxMounter) Mount(source string, target string, fstype string) error

func (*LinuxMounter) Unmount

func (mounter *LinuxMounter) Unmount(target string) error

type Mounter

type Mounter interface {
	Mount(source string, target string, fstype string) error
	Unmount(target string) error
}

type UuidGen

type UuidGen func() string

Jump to

Keyboard shortcuts

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