package cinder
import "k8s.io/kubernetes/pkg/volume/cinder"
Package cinder contains the internal representation of cinder volumes.
Index ¶
- func ProbeVolumePlugins() []volume.VolumePlugin
- type CinderDiskUtil
- func (util *CinderDiskUtil) AttachDisk(b *cinderVolumeMounter, globalPDPath string) error
- func (util *CinderDiskUtil) CreateVolume(c *cinderVolumeProvisioner) (volumeID string, volumeSizeGB int, volumeLabels map[string]string, fstype string, err error)
- func (util *CinderDiskUtil) DeleteVolume(cd *cinderVolumeDeleter) error
- func (util *CinderDiskUtil) DetachDisk(cd *cinderVolumeUnmounter) error
- type CinderProvider
Functions ¶
func ProbeVolumePlugins ¶
func ProbeVolumePlugins() []volume.VolumePlugin
This is the primary entrypoint for volume plugins.
Types ¶
type CinderDiskUtil ¶
type CinderDiskUtil struct{}
func (*CinderDiskUtil) AttachDisk ¶
func (util *CinderDiskUtil) AttachDisk(b *cinderVolumeMounter, globalPDPath string) error
Attaches a disk specified by a volume.CinderPersistenDisk to the current kubelet. Mounts the disk to its global path.
func (*CinderDiskUtil) CreateVolume ¶
func (util *CinderDiskUtil) CreateVolume(c *cinderVolumeProvisioner) (volumeID string, volumeSizeGB int, volumeLabels map[string]string, fstype string, err error)
func (*CinderDiskUtil) DeleteVolume ¶
func (util *CinderDiskUtil) DeleteVolume(cd *cinderVolumeDeleter) error
func (*CinderDiskUtil) DetachDisk ¶
func (util *CinderDiskUtil) DetachDisk(cd *cinderVolumeUnmounter) error
Unmounts the device and detaches the disk from the kubelet's host machine.
type CinderProvider ¶
type CinderProvider interface { AttachDisk(instanceID, volumeID string) (string, error) DetachDisk(instanceID, volumeID string) error DeleteVolume(volumeID string) error CreateVolume(name string, size int, vtype, availability string, tags *map[string]string) (string, string, error) GetDevicePath(volumeID string) string InstanceID() (string, error) GetAttachmentDiskPath(instanceID, volumeID string) (string, error) OperationPending(diskName string) (bool, string, error) DiskIsAttached(instanceID, volumeID string) (bool, error) DisksAreAttached(instanceID string, volumeIDs []string) (map[string]bool, error) ShouldTrustDevicePath() bool Instances() (cloudprovider.Instances, bool) }
Source Files ¶
attacher.go cinder.go cinder_util.go doc.go
- Version
- v1.8.13-beta.0
- Published
- Apr 23, 2018
- Platform
- linux/amd64
- Imports
- 26 packages
- Last checked
- 14 minutes ago –
Tools for package owners.