mountmanager

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeviceUtils added in v0.2.0

func NewDeviceUtils() *deviceUtils

func NewFakeDeviceUtils added in v0.2.0

func NewFakeDeviceUtils() *fakeDeviceUtils

func NewFakeSafeMounter added in v0.2.0

func NewFakeSafeMounter() *mount.SafeFormatAndMount

func NewSafeMounter added in v0.2.0

func NewSafeMounter() *mount.SafeFormatAndMount

Types

type DeviceUtils added in v0.2.0

type DeviceUtils interface {
	// GetDiskByIdPaths returns a list of all possible paths for a
	// given Persistent Disk
	GetDiskByIdPaths(deviceName string, partition string) []string

	// VerifyDevicePath returns the first of the list of device paths that
	// exists on the machine, or an empty string if none exists
	VerifyDevicePath(devicePaths []string) (string, error)
}

DeviceUtils are a collection of methods that act on the devices attached to a GCE Instance

Jump to

Keyboard shortcuts

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