targets

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: Apache-2.0 Imports: 6 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() error
	GetISCSITarget() int
	RemoveISCSITarget() error

	AddLun(lun int, path string) error
	GetLun(path string) int
	RemoveLun(lun int) error

	BindInitiatorName(initiator string) error
	UnbindInitiatorName(initiator string) error

	BindInitiatorAddress(initiator string) error
	UnbindInitiatorAddress(initiator string) error
}

func NewISCSITarget

func NewISCSITarget(tid int, name string, bip string) ISCSITarget

type Target

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

	RemoveExport(path, initiator string) error
}

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

func NewTarget

func NewTarget(bip 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