provision

package
v5.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 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.RBDPersistentVolumeSource, int, error)

CreateImage creates a new ceph image with provision and volume options.

func (*RBDUtil) DeleteImage

func (u *RBDUtil) DeleteImage(image string, pOpts *rbdProvisionOptions) error

DeleteImage deletes a ceph image with provision and volume options.

Jump to

Keyboard shortcuts

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