Documentation ¶
Index ¶
- func Connect(connMap map[string]interface{}) (string, error)
- func DisConnect(nqn string) error
- func Discovery(connMap map[string]interface{}) error
- func GetInitiator() ([]string, error)
- func GetNvmeDevice() (map[string]int, error)
- func GetNvmeSubsystems() (map[string]int, error)
- type ConnectorInfo
- type Nvmeof
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNvmeDevice ¶
GetNvmeDevice get all the nvme devices
func GetNvmeSubsystems ¶
GetNvmeSubsystems :list connected target name
Types ¶
type ConnectorInfo ¶
type ConnectorInfo struct { Nqn string `mapstructure:"targetNQN"` //NVMe subsystem name to the volume to be connected TgtPort string `mapstructure:"targetPort"` //NVMe target port that hosts the nqn sybsystem TgtPortal string `mapstructure:"targetIP"` //NVMe target ip that hosts the nqn sybsystem TranType string `mapstructure:"transporType"` // Nvme transport type HostNqn string `mapstructure:"hostNqn"` // host nqn }
ConnectorInfo define
func ParseNvmeofConnectInfo ¶
func ParseNvmeofConnectInfo(connectInfo map[string]interface{}) *ConnectorInfo
ParseNvmeofConnectInfo decode
type Nvmeof ¶
type Nvmeof struct{}
func (*Nvmeof) GetInitiatorInfo ¶
GetInitiatorInfo implementation
Click to show internal directories.
Click to hide internal directories.