iscsi

package
v4.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ITNexusPingCheck

func ITNexusPingCheck(initiatorPorts []*model.Network, targetPorts []*model.TargetPortal, pingCount, pingInterval, pingTimeout int) (map[*model.Network][]*model.TargetPortal, error)

ITNexusPingCheck takes an array of CHAPI2 initiator ports, and an array of target ports, and returns a map of IT nexus connections that can reach each other (e.g. ICMP ping test). Each IT nexus is pinged in parallel for maximum performance. The returned map key is the initiator port while the map value is an array of target ports.

func ITNexusSubnetCheck

func ITNexusSubnetCheck(initiatorPorts []*model.Network, targetPorts []*model.TargetPortal) (map[*model.Network][]*model.TargetPortal, error)

ITNexusSubnetCheck takes an array of CHAPI2 initiator ports, and an array of target ports, and returns a map of IT nexus connections that could be made. The returned map key is the initiator port while the map value is an array of target ports.

Types

type ITNexus

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

ITNexus - Initiator Port and Target Port

type IscsiPlugin

type IscsiPlugin struct {
}

func NewIscsiPlugin

func NewIscsiPlugin() *IscsiPlugin

func (*IscsiPlugin) DiscoverTargets

func (plugin *IscsiPlugin) DiscoverTargets(portal string) ([]*model.IscsiTarget, error)

func (*IscsiPlugin) GetAllLoggedInTargets

func (plugin *IscsiPlugin) GetAllLoggedInTargets() ([]*model.IscsiTarget, error)

func (*IscsiPlugin) GetDiscoveredTargets

func (plugin *IscsiPlugin) GetDiscoveredTargets() ([]*model.IscsiTarget, error)

func (*IscsiPlugin) GetIscsiInitiators

func (plugin *IscsiPlugin) GetIscsiInitiators() (*model.Initiator, error)

GetIscsiInitiators returns the host's iSCSI initiator object

func (*IscsiPlugin) GetSessionProperties

func (plugin *IscsiPlugin) GetSessionProperties(targetName string, sessionId string) (map[string]string, error)

func (*IscsiPlugin) GetTargetPortals

func (plugin *IscsiPlugin) GetTargetPortals(targetName string, ipv4Only bool) ([]*model.TargetPortal, error)

func (*IscsiPlugin) GetTargetScope

func (plugin *IscsiPlugin) GetTargetScope(targetName string) (string, error)

GetTargetScope returns the target's scope if known ("volume", "group", or empty string)

func (*IscsiPlugin) IsTargetLoggedIn

func (plugin *IscsiPlugin) IsTargetLoggedIn(targetName string) (bool, error)

IsTargetLoggedIn checks to see if the given iSCSI target is already logged in

func (*IscsiPlugin) LoginTarget

func (plugin *IscsiPlugin) LoginTarget(blockDev model.BlockDeviceAccessInfo) (err error)

LoginTarget ensures that the provided iSCSI device is logged into this host

func (*IscsiPlugin) LogoutTarget

func (plugin *IscsiPlugin) LogoutTarget(targetName string) error

LogoutTarget logs out the given iSCSI target

func (*IscsiPlugin) RescanIscsiTarget

func (plugin *IscsiPlugin) RescanIscsiTarget(lunID string) error

RescanIscsiTarget rescans host ports for iSCSI devices

Jump to

Keyboard shortcuts

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