iscsi

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ISCSITranslateTCP tcp
	ISCSITranslateTCP = "tcp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Iscsi

type Iscsi struct{}

func (*Iscsi) Attach

func (isc *Iscsi) Attach(conn map[string]interface{}) (string, error)

func (*Iscsi) Detach

func (isc *Iscsi) Detach(conn map[string]interface{}) error

func (*Iscsi) GetInitiatorInfo added in v0.3.3

func (isc *Iscsi) GetInitiatorInfo() ([]string, error)

GetInitiatorInfo implementation

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL