# Functions
Connect is for backward-compatibility with c.Connect().
CreateDBEntry sets up a node entry for the specified tgt in the nodes iscsi nodes db.
DeleteDBEntry deletes the iscsi db entry for the specified target.
DeleteIFace delete the iface.
Disconnect is for backward-compatibility with c.Disconnect().
Discoverydb discovers the iscsi target.
ExecWithTimeout execute a command with a timeout and returns an error if timeout is exceeded.
FlushMultipathDevice flushes a multipath device dm-x with command multipath -f /dev/dm-x.
GetConnectorFromFile attempts to create a Connector using the specified json file (ie /var/lib/pfile/myConnector.json).
GetISCSIDevices get iSCSI devices from device paths It will returns all iSCSI devices if no paths are given.
GetSCSIDevices get SCSI devices from device paths It will returns all SCSI devices if no paths are given.
GetSessions retrieves a list of current iscsi sessions on the node.
ListInterfaces returns a list of all iscsi interfaces configured on the node along with the raw output in Response.StdOut we add the convenience of returning a list of entries found.
Login performs an iscsi login for the specified target.
Logout logs out the specified target.
PersistConnector is for backward-compatibility with c.Persist().
RemoveSCSIDevices removes SCSI device(s) from a Linux host.
ResizeMultipathDevice resize a multipath device based on its underlying devices.
ShowInterface retrieves the details for the specified iscsi interface caller should inspect r.Err and use r.StdOut for interface details.