Documentation ¶
Overview ¶
Package rbd contains the internal representation of Rados Block Store (Ceph) volumes.
Index ¶
- func ProbeVolumePlugins() []volume.VolumePlugin
- type RBDUtil
- func (util *RBDUtil) AttachDisk(b rbdMounter) (string, error)
- func (util *RBDUtil) CreateImage(p *rbdVolumeProvisioner) (r *v1.RBDPersistentVolumeSource, size int, err error)
- func (util *RBDUtil) DeleteImage(p *rbdVolumeDeleter) error
- func (util *RBDUtil) DetachBlockDisk(disk rbdDiskUnmapper, mapPath string) error
- func (util *RBDUtil) DetachDisk(plugin *rbdPlugin, deviceMountPath string, device string) error
- func (util *RBDUtil) ExpandImage(rbdExpander *rbdVolumeExpander, oldSize resource.Quantity, ...) (resource.Quantity, error)
- func (util *RBDUtil) MakeGlobalPDName(rbd rbd) string
- func (util *RBDUtil) MakeGlobalVDPDName(rbd rbd) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProbeVolumePlugins ¶
func ProbeVolumePlugins() []volume.VolumePlugin
This is the primary entrypoint for volume plugins.
Types ¶
type RBDUtil ¶
type RBDUtil struct{}
RBDUtil implements diskManager interface.
func (*RBDUtil) AttachDisk ¶
AttachDisk attaches the disk on the node.
func (*RBDUtil) CreateImage ¶ added in v1.5.1
func (util *RBDUtil) CreateImage(p *rbdVolumeProvisioner) (r *v1.RBDPersistentVolumeSource, size int, err error)
func (*RBDUtil) DeleteImage ¶ added in v1.5.1
func (*RBDUtil) DetachBlockDisk ¶ added in v1.10.8
DetachBlockDisk detaches the disk from the node.
func (*RBDUtil) DetachDisk ¶
DetachDisk detaches the disk from the node. It detaches device from the node if device is provided, and removes the lock if there is persisted RBD info under deviceMountPath.
func (*RBDUtil) ExpandImage ¶ added in v1.9.0
func (util *RBDUtil) ExpandImage(rbdExpander *rbdVolumeExpander, oldSize resource.Quantity, newSize resource.Quantity) (resource.Quantity, error)
ExpandImage runs rbd resize command to resize the specified image.
func (*RBDUtil) MakeGlobalPDName ¶
func (*RBDUtil) MakeGlobalVDPDName ¶ added in v1.10.8
Click to show internal directories.
Click to hide internal directories.