iscsi

package
v4.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package iscsi provide the way to connect/disconnect volume within iSCSI protocol

Package iscsi provide the way to connect/disconnect volume within iSCSI protocol

Package iscsi provide the way to connect/disconnect volume within iSCSI protocol

Package iscsi provide the way to connect/disconnect volume within iSCSI protocol

Package iscsi provide the way to connect/disconnect volume within iSCSI protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
}

Connector implements the connector.VolumeConnector for Connector protocol

func (*Connector) ConnectVolume

func (isc *Connector) 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 (*Connector) DisConnectVolume

func (isc *Connector) DisConnectVolume(ctx context.Context, tgtLunWWN string) error

DisConnectVolume to unmount the target path

Jump to

Keyboard shortcuts

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