rbd

package
v1.9.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package rbd contains the internal representation of Rados Block Store (Ceph) volumes.

Index

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

func (util *RBDUtil) AttachDisk(b rbdMounter) (string, error)

AttachDisk attaches the disk on the node. If Volume is not read-only, acquire a lock on image first.

func (*RBDUtil) CreateImage added in v1.5.0

func (util *RBDUtil) CreateImage(p *rbdVolumeProvisioner) (r *v1.RBDPersistentVolumeSource, size int, err error)

func (*RBDUtil) DeleteImage added in v1.5.0

func (util *RBDUtil) DeleteImage(p *rbdVolumeDeleter) error

func (*RBDUtil) DetachDisk

func (util *RBDUtil) DetachDisk(plugin *rbdPlugin, deviceMountPath string, device string) error

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) MakeGlobalPDName

func (util *RBDUtil) MakeGlobalPDName(rbd rbd) string

Jump to

Keyboard shortcuts

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