Documentation
¶
Overview ¶
Package attacher provide storage mapping or unmapping
Index ¶
- Constants
- type Attacher
- func (p *Attacher) ControllerAttach(ctx context.Context, lunName string, parameters map[string]interface{}) (map[string]interface{}, error)
- func (p *Attacher) ControllerDetach(ctx context.Context, lunName string, parameters map[string]interface{}) (string, error)
- func (p *Attacher) NodeStage(ctx context.Context, lunInfo utils.Volume, parameters map[string]interface{}) (*connector.ConnectInfo, error)
- func (p *Attacher) NodeUnstage(ctx context.Context, lunName string, parameters map[string]interface{}) (*connector.DisConnectInfo, error)
- func (p *Attacher) SCSIControllerAttach(ctx context.Context, lunInfo utils.Volume, parameters map[string]interface{}) (string, error)
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
Click to show internal directories.
Click to hide internal directories.