iscsi

package
v0.0.0-...-f1bde72 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adm

func Adm(ctx context.Context, args ...string) error

func Discover

func Discover(ctx context.Context, portal string) error

func Logout

func Logout(ctx context.Context, portal, iqn string) error

Types

type Target

type Target struct {
	// contains filtered or unexported fields
}

func LoadTarget

func LoadTarget(portal, iqn string) *Target

func Login

func Login(ctx context.Context, portal, iqn string) (*Target, error)

func (*Target) Logout

func (t *Target) Logout(ctx context.Context) error

func (*Target) Lun

func (t *Target) Lun(i int) string

func (*Target) Partition

func (t *Target) Partition(lun, part int) string

func (*Target) Path

func (t *Target) Path() string

func (*Target) Ready

func (t *Target) Ready(d time.Duration) error

Jump to

Keyboard shortcuts

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