rbd

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnRbd

type ConnRbd struct {
	Name          string
	Hosts         []string
	Ports         []string
	ClusterName   string
	AuthEnabled   bool
	AuthUserName  string
	VolumeID      string
	Discard       bool
	QosSpecs      string
	Keyring       string
	AccessMode    string
	Encrypted     bool
	DoLocalAttach bool
}

ConnRbd contains rbd volume info

func NewRBDConnector

func NewRBDConnector(connInfo map[string]interface{}) *ConnRbd

NewRBDConnector Return ConnRbd Pointer to the object

func (*ConnRbd) ConnectVolume

func (c *ConnRbd) ConnectVolume() (map[string]string, error)

ConnectVolume Connect to a volume

func (*ConnRbd) DisConnectVolume

func (c *ConnRbd) DisConnectVolume()

DisConnectVolume Disconnect a volume

func (*ConnRbd) ExtendVolume

func (c *ConnRbd) ExtendVolume() (int64, error)

ExtendVolume Refresh local volume view and return current size in bytes Nothing to do, RBD attached volumes are automatically refreshed, but we need to return the new size for compatibility

func (*ConnRbd) GetDevicePath added in v0.0.6

func (c *ConnRbd) GetDevicePath() string

GetDevicePath Return device name which will be generated by RBD kernel module

Jump to

Keyboard shortcuts

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