Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DiskType is a disk type DiskType = "disk" // SSDType is an sdd type SSDType = "ssd" // PartType is a partition type PartType = "part" // CryptType is an encrypted type CryptType = "crypt" // LVMType is an LVM type LVMType = "lvm" // MultiPath is for multipath devices MultiPath = "mpath" // LinearType is a linear type LinearType = "linear" // LoopType is a loop device type LoopType = "loop" // CephLVPrefix is the prefix of a LV owned by ceph-volume CephLVPrefix = "ceph--" // DeviceMapperPrefix is the prefix of a LV from the device mapper interface DeviceMapperPrefix = "dm-" )
View Source
const (
LOSETUP_COMMAND = "losetup"
)
Variables ¶
This section is empty.
Functions ¶
func DetachDevice ¶
func DetachDeviceByFile ¶
func ResizeLoopDevice ¶
Types ¶
type Command ¶
func NewCommand ¶
type Device ¶
type Devices ¶
type Devices struct {
LoopDevs []Device `json:"loopdevices"`
}
func ListDevices ¶
func (Devices) GetDeviceByFile ¶
func (Devices) GetDeviceByName ¶
type LosetupCommand ¶
type LosetupCommand struct {
*Command
}
func NewLosetupCommand ¶
func NewLosetupCommand() *LosetupCommand
Click to show internal directories.
Click to hide internal directories.