Documentation ¶
Index ¶
- Constants
- func Connect(connMap map[string]interface{}) (string, error)
- func Delete(targetiqn string) error
- func Disconnect(portal string, targetiqn string) error
- func Discovery(portal string) error
- func Format(device string, fstype string) error
- func FormatAndMount(device string, fstype string, mountpoint string) error
- func GetFSType(device string) string
- func GetHostIp() string
- func GetInitiator() ([]string, error)
- func Login(portal string, targetiqn string) error
- func Logout(portal string, targetiqn string) error
- func Mount(device string, mountpoint string) error
- func SetAuth(portal string, targetiqn string, name string, passwd string) error
- func Umount(mountpoint string) error
- type Iscsi
- type IscsiConnectorInfo
Constants ¶
View Source
const (
//ISCSITranslateTCP tcp
ISCSITranslateTCP = "tcp"
)
Variables ¶
This section is empty.
Functions ¶
func FormatAndMount ¶ added in v0.1.9
FormatAndMount device
func GetInitiator ¶
GetInitiator returns all the ISCSI Initiator Name
Types ¶
type IscsiConnectorInfo ¶
type IscsiConnectorInfo struct { AccessMode string `mapstructure:"accessMode"` AuthUser string `mapstructure:"authUserName"` AuthPass string `mapstructure:"authPassword"` AuthMethod string `mapstructure:"authMethod"` TgtDisco bool `mapstructure:"targetDiscovered"` TgtIQN string `mapstructure:"targetIqn"` TgtPortal string `mapstructure:"targetPortal"` VolumeID string `mapstructure:"volumeId"` TgtLun int `mapstructure:"targetLun"` Encrypted bool `mapstructure:"encrypted"` }
IscsiConnectorInfo define
func ParseIscsiConnectInfo ¶
func ParseIscsiConnectInfo(connectInfo map[string]interface{}) *IscsiConnectorInfo
ParseIscsiConnectInfo decode
Click to show internal directories.
Click to hide internal directories.