driver

package
v1.30.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VolumeSnapshotClassKind = "VolumeSnapshotClass"
	SnapshotAPIVersion      = "snapshot.storage.k8s.io/v1"
)
View Source
const AzureDriverNameVar = "AZURE_STORAGE_DRIVER"

AzureDriverNameVar is the environment variable use to switch the driver to be used.

Variables

This section is empty.

Functions

func GetParameters

func GetParameters() map[string]string

Types

type AzureFileDriver

type AzureFileDriver struct {
	// contains filtered or unexported fields
}

Implement DynamicPVTestDriver interface

func (*AzureFileDriver) GetDynamicProvisionStorageClass

func (d *AzureFileDriver) GetDynamicProvisionStorageClass(parameters map[string]string, mountOptions []string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, bindingMode *storagev1.VolumeBindingMode, _ []string, namespace string) *storagev1.StorageClass

func (*AzureFileDriver) GetPersistentVolume

func (d *AzureFileDriver) GetPersistentVolume(volumeID string, fsType string, size string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, namespace string, attrib map[string]string, nodeStageSecretRef string) *v1.PersistentVolume

func (*AzureFileDriver) GetPreProvisionStorageClass added in v0.7.0

func (d *AzureFileDriver) GetPreProvisionStorageClass(parameters map[string]string, mountOptions []string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, bindingMode *storagev1.VolumeBindingMode, _ []string, namespace string) *storagev1.StorageClass

func (*AzureFileDriver) GetVolumeSnapshotClass

func (d *AzureFileDriver) GetVolumeSnapshotClass(namespace string) *snapshotv1.VolumeSnapshotClass

type DynamicPVTestDriver

type DynamicPVTestDriver interface {
	// GetDynamicProvisionStorageClass returns a StorageClass dynamic provision Persistent Volume
	GetDynamicProvisionStorageClass(parameters map[string]string, mountOptions []string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, bindingMode *storagev1.VolumeBindingMode, allowedTopologyValues []string, namespace string) *storagev1.StorageClass
}

DynamicPVTestDriver represents an interface for a CSI driver that supports DynamicPV

type PVTestDriver

func InitAzureFileDriver

func InitAzureFileDriver() PVTestDriver

InitAzureFileDriver returns AzureFileDriver that implements DynamicPVTestDriver interface

type PreProvisionedVolumeTestDriver

type PreProvisionedVolumeTestDriver interface {
	// GetPersistentVolume returns a PersistentVolume with pre-provisioned volumeHandle
	GetPersistentVolume(volumeID string, fsType string, size string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, namespace string, attrib map[string]string, nodeStageSecretRef string) *v1.PersistentVolume
	// GetPreProvisionStorageClass returns a StorageClass with existing file share
	GetPreProvisionStorageClass(parameters map[string]string, mountOptions []string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, bindingMode *storagev1.VolumeBindingMode, allowedTopologyValues []string, namespace string) *storagev1.StorageClass
}

PreProvisionedVolumeTestDriver represents an interface for a CSI driver that supports pre-provisioned volume

type VolumeSnapshotTestDriver

type VolumeSnapshotTestDriver interface {
	GetVolumeSnapshotClass(namespace string) *snapshotv1.VolumeSnapshotClass
}

Jump to

Keyboard shortcuts

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