Documentation
¶
Index ¶
- func DisconnectConnection(targets []Target) error
- func FindSysfsMultipathDM(deviceName string) (dmDeviceName string, err error)
- func GetConnectionDevices(targets []Target) ([]string, error)
- func GetDeviceName(id int, hctl *Hctl) (string, error)
- func RemoveConnection(targetDeviceNames []string, isMultiPath bool) error
- func ScanISCSI(hctl *Hctl) error
- type AttachedISCSIDevice
- type Hctl
- type SessionIscsi
- type SessionP3Block
- type SessionP3Target
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisconnectConnection ¶
func FindSysfsMultipathDM ¶
FindSysfsMultipathDM Find the dm device name given a list of device names
func GetConnectionDevices ¶
GetConnectionDevices get volumes in paths
func RemoveConnection ¶
Types ¶
type AttachedISCSIDevice ¶
type AttachedISCSIDevice struct { TargetIQN string CurrentPortal string HostID int HostLUNID int AttachedDeviceName string // ex: sda, sdb }
AttachedISCSIDevice is device info
func GetAttachedSCSIDevices ¶
func GetAttachedSCSIDevices() ([]AttachedISCSIDevice, error)
GetAttachedSCSIDevices retrieves attached iSCSI devices.
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 SessionP3Block ¶
SessionP3Block is content of iSCSI session
type SessionP3Target ¶
type SessionP3Target struct { IQN string CurrentPortal string PersistentPortal string Blocks []SessionP3Block }
SessionP3Target is detail of iSCSI session per iSCSI target
func ParseSessionP3 ¶
func ParseSessionP3(out []byte) ([]SessionP3Target, error)
ParseSessionP3 parse output of `iscsiadm -m session -P3
type Target ¶
func DiscoverIscsiPortals ¶
DiscoverIscsiPortals get iscsi connection information
Click to show internal directories.
Click to hide internal directories.