Documentation
¶
Index ¶
- func Attach(c Connector, io ioHandler) (string, error)
- func Detach(devicePath string, io ioHandler) error
- func FindMultipathDeviceForDevice(device string, io ioHandler) (string, error)
- func FindSlaveDevicesOnMultipath(dm string, io ioHandler) []string
- func RemoveMultipathDevice(device string) error
- type Connector
- type OSioHandler
- func (handler *OSioHandler) EvalSymlinks(path string) (string, error)
- func (handler *OSioHandler) Lstat(name string) (os.FileInfo, error)
- func (handler *OSioHandler) ReadDir(dirname string) ([]os.FileInfo, error)
- func (handler *OSioHandler) WriteFile(filename string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMultipathDeviceForDevice ¶
FindMultipathDeviceForDevice given a device name like /dev/sdx, find the devicemapper parent
func FindSlaveDevicesOnMultipath ¶
FindSlaveDevicesOnMultipath returns all slaves on the multipath device given the device path
func RemoveMultipathDevice ¶
Types ¶
type Connector ¶
Connector provides a struct to hold all of the needed parameters to make our Fibre Channel connection
type OSioHandler ¶
type OSioHandler struct{}
OSioHandler is a wrapper that includes all the necessary io functions used for (Should be used as default io handler)
func (*OSioHandler) EvalSymlinks ¶
func (handler *OSioHandler) EvalSymlinks(path string) (string, error)
EvalSymlinks calls EvalSymlinks from filepath package
func (*OSioHandler) Lstat ¶
func (handler *OSioHandler) Lstat(name string) (os.FileInfo, error)
Lstat calls the Lstat function from os package
Click to show internal directories.
Click to hide internal directories.