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 *cinderVolumeBuilder, globalPDPath string) error
- func (util *CinderDiskUtil) AttachDiskCloudProvider(b *cinderVolumeBuilder, 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 *cinderVolumeCleaner) error
- func (util *CinderDiskUtil) DetachDiskCloudProvider(cd *cinderVolumeCleaner) error
- type DriverInterface
- type Factory
Constants ¶
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 *cinderVolumeBuilder, globalPDPath string) error
func (*CinderBaremetalUtil) DetachDiskBaremetal ¶
func (cb *CinderBaremetalUtil) DetachDiskBaremetal(cd *cinderVolumeCleaner, 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 *cinderVolumeBuilder, 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 *cinderVolumeBuilder, 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) 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 *cinderVolumeCleaner) error
Unmounts the device and detaches the disk from the kubelet's host machine.
func (*CinderDiskUtil) DetachDiskCloudProvider ¶
func (util *CinderDiskUtil) DetachDiskCloudProvider(cd *cinderVolumeCleaner) error
Unmounts the device and detaches the disk from the kubelet's host machine.
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