connector

package
v0.0.0-...-36737da Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FCDriver     = "fibreChannel"
	FCNVMeDriver = "FC-NVMe"
	ISCSIDriver  = "iSCSI"
	RoCEDriver   = "RoCE"
)

Variables

This section is empty.

Functions

func DeleteDMDev

func DeleteDMDev(dm string) error

func DeleteDevice

func DeleteDevice(tgtLunGuid string) error

func DeleteNVMEDev

func DeleteNVMEDev(nvme string) error

func GetDevice

func GetDevice(findDeviceMap map[string]string, tgtLunGuid string) (string, error)

func ReScanNVMe

func ReScanNVMe(devices []string)

func RegisterConnector

func RegisterConnector(cType string, cnt Connector) error

func ScanNVMe

func ScanNVMe(connectInfo map[string]interface{})

Types

type Connector

type Connector interface {
	ConnectVolume(map[string]interface{}) (string, error)
	DisConnectVolume(string) error
}

func GetConnector

func GetConnector(cType string) Connector

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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