package
0.0.0-20240130114156-dd26709d0dcc
Repository: https://github.com/kubernetes-csi/csi-lib-iscsi.git
Documentation: pkg.go.dev

# 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.

# Structs

Connector provides a struct to hold all the needed parameters to make our iSCSI connection.
Device contains information about a device.
No description provided by the author
Secrets provides optional iscsi security credentials (CHAP settings).