local

package
v0.0.0-...-52cd4e6 Latest Latest
Warning

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

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

Documentation

Overview

Package local to connect and disconnect local lun

Package local to connect and disconnect local lun

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

type Local struct {
}

Local to define a local lock when connect or disconnect, in order to preventing connect and disconnect confusion

func (*Local) ConnectVolume

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

ConnectVolume to connect local volume, such as /dev/disk/by-id/wwn-0x*

func (*Local) DisConnectVolume

func (loc *Local) DisConnectVolume(ctx context.Context, tgtLunWWN string) error

DisConnectVolume to remove the local lun path

Jump to

Keyboard shortcuts

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