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 ¶
NewRBDConnector Return ConnRbd Pointer to the object
func (*ConnRbd) ConnectVolume ¶
ConnectVolume Connect to a volume
func (*ConnRbd) DisConnectVolume ¶
DisConnectVolume Disconnect a volume
func (*ConnRbd) ExtendVolume ¶
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 ¶
GetDevicePath Return device name which will be generated by RBD kernel module
Click to show internal directories.
Click to hide internal directories.