tgtadm

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TgtAdm

type TgtAdm interface {
	CreateTarget(tid int, name string) error
	DeleteTarget(tid int) error
	AddLunBackedByFile(tid int, lun int, backingFile string) error
	AddLun(tid int, lun int, backingFile string, bstype string, bsopts string) error
	DeleteLun(tid int, lun int) error
	BindInitiatorByAddress(tid int, initiator string) error
	UnbindInitiatorByAddress(tid int, initiator string) error
	BindInitiator(tid int, initiator string) error
	UnbindInitiator(tid int, initiator string) error
	GetTargetTid(name string) (int, error)
	GetTargetConnections(tid int) (map[string][]string, error)
	CloseConnection(tid int, sid, cid string) error
	FindNextAvailableTargetID() (int, error)

	GetTargets() ([]tgtdv1alpha1.TargetActual, error)
	GetTarget(iqn string) (*tgtdv1alpha1.TargetActual, error)
}

type TgtAdmLonghornHelper

type TgtAdmLonghornHelper struct{}

func (*TgtAdmLonghornHelper) AddLun

func (t *TgtAdmLonghornHelper) AddLun(tid int, lun int, backingFile string, bstype string, bsopts string) error

func (*TgtAdmLonghornHelper) AddLunBackedByFile

func (t *TgtAdmLonghornHelper) AddLunBackedByFile(tid int, lun int, backingFile string) error

func (*TgtAdmLonghornHelper) BindInitiator

func (t *TgtAdmLonghornHelper) BindInitiator(tid int, initiator string) error

BindInitiator will add permission to allow certain initiator(s) to connect to certain target.

func (*TgtAdmLonghornHelper) BindInitiatorByAddress

func (t *TgtAdmLonghornHelper) BindInitiatorByAddress(tid int, initiator string) error

func (*TgtAdmLonghornHelper) CloseConnection

func (t *TgtAdmLonghornHelper) CloseConnection(tid int, sid, cid string) error

func (*TgtAdmLonghornHelper) CreateTarget

func (t *TgtAdmLonghornHelper) CreateTarget(tid int, name string) error

func (*TgtAdmLonghornHelper) DeleteLun

func (t *TgtAdmLonghornHelper) DeleteLun(tid int, lun int) error

func (*TgtAdmLonghornHelper) DeleteTarget

func (t *TgtAdmLonghornHelper) DeleteTarget(tid int) error

func (*TgtAdmLonghornHelper) FindNextAvailableTargetID

func (t *TgtAdmLonghornHelper) FindNextAvailableTargetID() (int, error)

func (*TgtAdmLonghornHelper) GetAccounts

func (t *TgtAdmLonghornHelper) GetAccounts() ([]string, error)

func (*TgtAdmLonghornHelper) GetTarget

func (*TgtAdmLonghornHelper) GetTargetConnections

func (t *TgtAdmLonghornHelper) GetTargetConnections(tid int) (map[string][]string, error)

func (*TgtAdmLonghornHelper) GetTargetTid

func (t *TgtAdmLonghornHelper) GetTargetTid(name string) (int, error)

func (*TgtAdmLonghornHelper) GetTargets

func (t *TgtAdmLonghornHelper) GetTargets() (targets []tgtdv1alpha1.TargetActual, err error)

func (*TgtAdmLonghornHelper) UnbindInitiator

func (t *TgtAdmLonghornHelper) UnbindInitiator(tid int, initiator string) error

UnbindInitiator will remove permission to allow certain initiator(s) to connect to certain target.

func (*TgtAdmLonghornHelper) UnbindInitiatorByAddress

func (t *TgtAdmLonghornHelper) UnbindInitiatorByAddress(tid int, initiator string) error

Jump to

Keyboard shortcuts

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