Documentation
¶
Index ¶
- func DisconnectConnection(targets []Target) error
- func FindSysfsMultipathDM(deviceName string) (dmDeviceName string, err error)
- func GetConnectionDevices(targets []Target) ([]string, error)
- func GetDeviceName(sessionID int, hctl *Hctl) (string, error)
- func RemoveConnection(targetDeviceNames []string, isMultiPath bool) error
- func ScanISCSI(hctl *Hctl) error
- type Hctl
- type SessionIscsi
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisconnectConnection ¶
DisconnectConnection Close iscsi connection
func FindSysfsMultipathDM ¶
FindSysfsMultipathDM Find the dm device name given a list of device names
func GetConnectionDevices ¶
GetConnectionDevices get volumes in paths
func GetDeviceName ¶
GetDeviceName Add retry to get device name
func RemoveConnection ¶
RemoveConnection Remove LUNs and multipath associated with devices names
Types ¶
type SessionIscsi ¶
type SessionIscsi struct { Transport string SessionID int TargetPortal string TargetPortalGroupTag int IQN string NodeType string }
func GetSessions ¶
func GetSessions() ([]SessionIscsi, error)
GetSessions access to the iscsi sessions
type Target ¶
Target a iscsi connection info
func DiscoverIscsiPortals ¶
DiscoverIscsiPortals get iscsi connection information
Click to show internal directories.
Click to hide internal directories.