cinder

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package cinder contains the internal representation of cinder volumes.

Index

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

func RegisterCinderDriver(name string, cloud Factory)

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

Directories

Path Synopsis
Package drivers contains the internal representation of cinder volume drivers.
Package drivers contains the internal representation of cinder volume drivers.

Jump to

Keyboard shortcuts

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