Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeviceWWN ¶
Types ¶
type Device ¶
type Device struct { Mapper string `json:"mapper,omitempty"` WWN string `json:"wwn,omitempty"` Slaves int `json:"slaves,omitempty"` }
Device struct
func (*Device) CreateDevice ¶
CreateDevice attach and create linux devices to host
func (*Device) DeleteDevice ¶
DeleteDevice delete the multipath device
type LinuxDevice ¶
type LinuxDevice interface { // GetDevice() bool DeleteDevice() (err error) CreateDevice() (err error) GetMapper() string Populate(bool) error }
func NewLinuxDevice ¶
func NewLinuxDevice(wwn string) LinuxDevice
NewLinuxDevice new device with given wwn
Click to show internal directories.
Click to hide internal directories.