kubernetesk8s.io/kubernetes/pkg/volume/azure_dd Index | Files

package azure_dd

import "k8s.io/kubernetes/pkg/volume/azure_dd"

Index

Functions

func ProbeVolumePlugins

func ProbeVolumePlugins() []volume.VolumePlugin

Types

type DiskController

type DiskController interface {
	CreateBlobDisk(dataDiskName string, storageAccountType storage.SkuName, sizeGB int) (string, error)
	DeleteBlobDisk(diskUri string) error

	CreateManagedDisk(diskName string, storageAccountType storage.SkuName, sizeGB int, tags map[string]string) (string, error)
	DeleteManagedDisk(diskURI string) error

	// Attaches the disk to the host machine.
	AttachDisk(isManagedDisk bool, diskName, diskUri string, nodeName types.NodeName, lun int32, cachingMode compute.CachingTypes) error
	// Detaches the disk, identified by disk name or uri, from the host machine.
	DetachDiskByName(diskName, diskUri string, nodeName types.NodeName) error

	// Check if a list of volumes are attached to the node with the specified NodeName
	DisksAreAttached(diskNames []string, nodeName types.NodeName) (map[string]bool, error)

	// Get the LUN number of the disk that is attached to the host
	GetDiskLun(diskName, diskUri string, nodeName types.NodeName) (int32, error)
	// Get the next available LUN number to attach a new VHD
	GetNextDiskLun(nodeName types.NodeName) (int32, error)

	// Create a VHD blob
	CreateVolume(name, storageAccount, storageAccountType, location string, requestGB int) (string, string, int, error)
	// Delete a VHD blob
	DeleteVolume(diskURI string) error
}

interface exposed by the cloud provider implementing Disk functionlity

Source Files

attacher.go azure_common.go azure_common_unsupported.go azure_dd.go azure_mounter.go azure_provision.go

Version
v1.9.6
Published
Mar 20, 2018
Platform
js/wasm
Imports
27 packages
Last checked
5 minutes ago

Tools for package owners.