targets

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISCSITarget

type ISCSITarget interface {
	CreateISCSITarget(volId, tgtIqn, path, hostIp, initiator string, chapAuth []string) error
	GetISCSITarget(iqn string) int
	RemoveISCSITarget(volId, iqn string) error
	GetLun(path string) int
}

func NewISCSITarget

func NewISCSITarget(bip, tgtConfDir string) ISCSITarget

type Target

type Target interface {
	CreateExport(volId, path, hostIp, initiator string, chapAuth []string) (map[string]interface{}, error)

	RemoveExport(volId string) error
}

Target is an interface for exposing some operations of different targets, currently support iscsiTarget.

func NewTarget

func NewTarget(bip string, tgtConfDir string) Target

NewTarget method creates a new iscsi target.

Jump to

Keyboard shortcuts

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