Documentation ¶
Overview ¶
Package cinder contains the internal representation of cinder volumes.
Index ¶
- Constants
- func ProbeVolumePlugins() []volume.VolumePlugin
- func RegisterCinderDriver(name string, cloud Factory)
- type CinderBaremetalUtil
- type CinderDiskUtil
- func (util *CinderDiskUtil) AttachDisk(b *cinderVolumeMounter, globalPDPath string) error
- func (util *CinderDiskUtil) AttachDiskCloudProvider(b *cinderVolumeMounter, globalPDPath string) error
- func (util *CinderDiskUtil) CreateVolume(c *cinderVolumeProvisioner) (volumeID string, volumeSizeGB int, err error)
- func (util *CinderDiskUtil) DeleteVolume(cd *cinderVolumeDeleter) error
- func (util *CinderDiskUtil) DetachDisk(cd *cinderVolumeUnmounter) error
- func (util *CinderDiskUtil) DetachDiskCloudProvider(cd *cinderVolumeUnmounter) error
- type CinderProvider
- type DriverInterface
- type Factory
Constants ¶
View Source
const (
OpenStackCloudProviderTagFile = "OpenStackCloudProviderTagFile"
)
Variables ¶
This section is empty.
Functions ¶
func ProbeVolumePlugins ¶
func ProbeVolumePlugins() []volume.VolumePlugin
This is the primary entrypoint for volume plugins.
func RegisterCinderDriver ¶
RegisterDriver registers cinder volume drivers by name
Types ¶
type CinderBaremetalUtil ¶
type CinderBaremetalUtil struct {
// contains filtered or unexported fields
}
func (*CinderBaremetalUtil) AttachDiskBaremetal ¶
func (cb *CinderBaremetalUtil) AttachDiskBaremetal(b *cinderVolumeMounter, globalPDPath string) error
func (*CinderBaremetalUtil) DetachDiskBaremetal ¶
func (cb *CinderBaremetalUtil) DetachDiskBaremetal(cd *cinderVolumeUnmounter, globalPDPath string) error
Unmounts the device and detaches the disk from the kubelet's host machine.
type CinderDiskUtil ¶
type CinderDiskUtil struct {
// contains filtered or unexported fields
}
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 it's global path.
func (*CinderDiskUtil) AttachDiskCloudProvider ¶
func (util *CinderDiskUtil) AttachDiskCloudProvider(b *cinderVolumeMounter, globalPDPath string) error
Called by AttachDisk
func (*CinderDiskUtil) CreateVolume ¶ added in v0.3.0
func (util *CinderDiskUtil) CreateVolume(c *cinderVolumeProvisioner) (volumeID string, volumeSizeGB int, err error)
func (*CinderDiskUtil) DeleteVolume ¶ added in v0.3.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.
func (*CinderDiskUtil) DetachDiskCloudProvider ¶
func (util *CinderDiskUtil) DetachDiskCloudProvider(cd *cinderVolumeUnmounter) error
Called by DetachDisk
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, 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) Instances() (cloudprovider.Instances, bool) }
type DriverInterface ¶
type DriverInterface interface { Attach(volumeData map[string]interface{}, globalPDPath string) error Detach(volumeData map[string]interface{}, globalPDPath string) error Format(volumeData map[string]interface{}, fstype string) error }
Driver interface
func GetCinderDriver ¶
func GetCinderDriver(name string) (DriverInterface, error)
Get driver by name
type Factory ¶
type Factory func() (DriverInterface, error)
Factory is a function that returns a DriverInterface
Source Files ¶
Click to show internal directories.
Click to hide internal directories.