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" NFSDriver = config.NFSProtocol )
Variables ¶
This section is empty.
Functions ¶
func ExecCmd ¶ added in v0.3.4
ExecCmd Log and convert the result of exec.Command
func Format ¶ added in v0.3.4
Format device by File System Type
func GetFSType ¶ added in v0.3.4
GetFSType returns the File System Type of device
func Mount ¶ added in v0.3.4
Mount device into mount point
func RegisterConnector ¶
RegisterConnector implementation
Types ¶
Source Files
¶
- common.go
- connector.go
Click to show internal directories.
Click to hide internal directories.