attachdetach

package
v1.4.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package attachdetach contains consts and helper methods used by various attach/detach components in controller and kubelet

Index

Constants

View Source
const (
	// ControllerManagedAnnotation is the key of the annotation on Node objects
	// that indicates attach/detach operations for the node should be managed
	// by the attach/detach controller
	ControllerManagedAnnotation string = "volumes.kubernetes.io/controller-managed-attach-detach"
)

Variables

This section is empty.

Functions

func GetUniqueDeviceName

func GetUniqueDeviceName(
	pluginName, deviceName string) api.UniqueDeviceName

GetUniqueDeviceName returns a unique name representing the device with the spcified deviceName of the pluginName volume type. The returned name can be used to uniquely reference the device. For example, to prevent operations (attach/detach) from being triggered on the same volume

func GetUniqueDeviceNameFromSpec

func GetUniqueDeviceNameFromSpec(
	attachableVolumePlugin volume.AttachableVolumePlugin,
	volumeSpec *volume.Spec) (api.UniqueDeviceName, error)

GetUniqueDeviceNameFromSpec uses the given AttachableVolumePlugin to generate a unique name representing the device defined in the specified volume spec. This returned name can be used to uniquely reference the device. For example, to prevent operations (attach/detach) from being triggered on the same volume. If the given plugin does not support the volume spec, this returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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