Documentation ¶
Index ¶
- Constants
- func ExecCmd(name string, arg ...string) (string, error)
- func Format(device string, fsType string) error
- func GetFSType(device string) (string, error)
- func GetHostIP() string
- func GetHostName() (string, error)
- func IsMounted(target string) (bool, error)
- func Mount(device, mountpoint, fsType string, mountFlags []string) error
- func RegisterConnector(cType string, cnt Connector) error
- func Umount(mountpoint string) error
- func UnregisterConnector(cType string)
- type Connector
Constants ¶
View Source
const ( FcDriver = config.FCProtocol PortName = "port_name" NodeName = "node_name" Wwpn = "wwpn" Wwnn = "wwnn" IscsiDriver = config.ISCSIProtocol Iqn = "iqn" RbdDriver = config.RBDProtocol NvmeofDriver = config.NVMEOFProtocol Nqn = "nqn" )
Variables ¶
This section is empty.
Functions ¶
func RegisterConnector ¶
RegisterConnector implementation
func UnregisterConnector ¶
func UnregisterConnector(cType string)
UnregisterConnector implementation
Types ¶
Click to show internal directories.
Click to hide internal directories.