Documentation ¶
Index ¶
- Constants
- func AccessModesContainedInAll(indexedModes []v1.PersistentVolumeAccessMode, ...) bool
- func AccessModesContains(modes []v1.PersistentVolumeAccessMode, mode v1.PersistentVolumeAccessMode) bool
- func NewRBDProvisioner(client kubernetes.Interface, id string) controller.Provisioner
- type RBDUtil
Constants ¶
View Source
const ( // ProvisionerName is a unique string to represent this volume provisioner. This value will be // added in PV annotations under 'pv.kubernetes.io/provisioned-by' key. ProvisionerName = "ceph.com/rbd" )
Variables ¶
This section is empty.
Functions ¶
func AccessModesContainedInAll ¶
func AccessModesContainedInAll(indexedModes []v1.PersistentVolumeAccessMode, requestedModes []v1.PersistentVolumeAccessMode) bool
AccessModesContainedInAll returns whether all of the requested modes are contained by modes
func AccessModesContains ¶
func AccessModesContains(modes []v1.PersistentVolumeAccessMode, mode v1.PersistentVolumeAccessMode) bool
AccessModesContains returns whether the requested mode is contained by modes
func NewRBDProvisioner ¶
func NewRBDProvisioner(client kubernetes.Interface, id string) controller.Provisioner
NewRBDProvisioner creates a Provisioner that provisions Ceph RBD PVs backed by Ceph RBD images.
Types ¶
type RBDUtil ¶
type RBDUtil struct{}
RBDUtil is the utility structure to interact with the RBD.
func (*RBDUtil) CreateImage ¶
func (u *RBDUtil) CreateImage(image string, pOpts *rbdProvisionOptions, options controller.VolumeOptions) (*v1.RBDVolumeSource, int, error)
CreateImage creates a new ceph image with provision and volume options.
func (*RBDUtil) DeleteImage ¶
DeleteImage deletes a ceph image with provision and volume options.
Click to show internal directories.
Click to hide internal directories.