attacher

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: 12 Imported by: 0

Documentation

Overview

Package attacher provide storage mapping or unmapping

Index

Constants

View Source
const (
	// DisableAlua defines switchover mode disable alua
	DisableAlua = "Disable_alua"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attacher

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

Attacher defines attacher client

func NewAttacher

func NewAttacher(cli *client.Client, protocol, invoker string, portals []string,
	hosts map[string]string, alua map[string]interface{}) *Attacher

NewAttacher used to init a new attacher

func (*Attacher) ControllerAttach

func (p *Attacher) ControllerAttach(ctx context.Context,
	lunName string,
	parameters map[string]interface{}) (map[string]interface{}, error)

ControllerAttach used to attach volume and return mapping info

func (*Attacher) ControllerDetach

func (p *Attacher) ControllerDetach(ctx context.Context,
	lunName string,
	parameters map[string]interface{}) (string, error)

ControllerDetach used to detach volume from host

func (*Attacher) NodeStage

func (p *Attacher) NodeStage(ctx context.Context,
	lunInfo utils.Volume,
	parameters map[string]interface{}) (*connector.ConnectInfo, error)

NodeStage used to stage node

func (*Attacher) NodeUnstage

func (p *Attacher) NodeUnstage(ctx context.Context,
	lunName string,
	parameters map[string]interface{}) (*connector.DisConnectInfo, error)

NodeUnstage used to unstage node

func (*Attacher) SCSIControllerAttach

func (p *Attacher) SCSIControllerAttach(ctx context.Context,
	lunInfo utils.Volume,
	parameters map[string]interface{}) (string, error)

SCSIControllerAttach used to attach volume to host

Jump to

Keyboard shortcuts

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