nvme

package
v4.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package nvme provide the way to connect/disconnect volume within FC NVMe protocol

Package nvme provide the way to connect/disconnect volume within FC NVMe protocol

Package nvme provide the way to connect/disconnect volume within FC NVMe protocol

Package nvme provide the way to connect/disconnect volume within FC NVMe protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FCNVMe

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

FCNVMe implements the Connector interface for FCNVMe protocol

func (*FCNVMe) ConnectVolume

func (fc *FCNVMe) ConnectVolume(ctx context.Context, conn map[string]interface{}) (string, error)

ConnectVolume to mount the source to target path, the source path can be block or nfs Example:

mount /dev/sdb /<target-path>
mount <source-path> /<target-path>

func (*FCNVMe) DisConnectVolume

func (fc *FCNVMe) DisConnectVolume(ctx context.Context, tgtLunGuid string) error

DisConnectVolume to unmount the target path

type PortWWNPair

type PortWWNPair struct {
	InitiatorPortWWN string `json:"initiatorPortWWN"`
	TargetPortWWN    string `json:"targetPortWWN"`
}

PortWWNPair contains initiator wwn and target wwn

Jump to

Keyboard shortcuts

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