node

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IscsiAdmin

type IscsiAdmin interface {
	DiscoverAndLoginPortals(portals []string) error
	DiscoverAndLogoutPortals(portals []string) error
	DiscoverAndLogin(portal string) error
	DiscoverAndLogout(portal string) error

	// Login performs an iscsi login for the specified target
	// portal is an address with port
	Login(tgtIQN, portal string) error

	// Logout performs an iscsi logout for the specified target
	// portal is an address with port
	Logout(tgtIQN, portal string) error

	// Discover performs an iscsi discoverydb for the specified target
	// portal is an address without port
	Discover(portal string) ([]*IscsiTarget, error)

	// DeleteDBEntry deletes the iscsi db entry fo the specified target
	DeleteDBEntry(tgtIQN string) error
}

type IscsiTarget

type IscsiTarget struct {
	Portal, Port, Iqn string
}

type NodeClient

type NodeClient interface {
	GetNodeInfo(name string) (*pb.Node, error)
	IscsiLogin(targets []string) error
	IscsiLogout(targets []string) error
}

type NodeInformer

type NodeInformer interface {
	GetNodeIscsiIQNs() ([]string, error)
	GetNodeFcWWPNs() ([]string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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