Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeviceUtils ¶
func NewDeviceUtils(fs filesystem.FileSystem, exec mountmanager.Executor) *deviceUtils
Types ¶
type DeviceUtils ¶
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 Linode Instance
Click to show internal directories.
Click to hide internal directories.