cinder

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: Apache-2.0 Imports: 25 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 *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

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