cinder

package
v1.5.3 Latest Latest
Warning

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

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

Documentation

Overview

Package cinder contains the internal representation of cinder 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 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 added in v1.2.0

func (util *CinderDiskUtil) CreateVolume(c *cinderVolumeProvisioner) (volumeID string, volumeSizeGB int, err error)

func (*CinderDiskUtil) DeleteVolume added in v1.2.0

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 added in v1.3.0

type CinderProvider interface {
	AttachDisk(instanceID string, diskName string) (string, error)
	DetachDisk(instanceID string, partialDiskId string) error
	DeleteVolume(volumeName string) error
	CreateVolume(name string, size int, vtype, availability string, tags *map[string]string) (volumeName string, err error)
	GetDevicePath(diskId string) string
	InstanceID() (string, error)
	GetAttachmentDiskPath(instanceID string, diskName string) (string, error)
	DiskIsAttached(diskName, instanceID string) (bool, error)
	DisksAreAttached(diskNames []string, instanceID string) (map[string]bool, error)
	ShouldTrustDevicePath() bool
	Instances() (cloudprovider.Instances, bool)
}

Jump to

Keyboard shortcuts

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