driver

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicPVTestDriver

type DynamicPVTestDriver interface {
	// GetProvisionStorageClass returns a StorageClass dynamic provision Persistent Volume
	GetProvisionStorageClass(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

type PVTestDriver interface {
	DynamicPVTestDriver
	PreProvisionedVolumeTestDriver
}

func InitBlobCSIDriver added in v0.7.0

func InitBlobCSIDriver() PVTestDriver

InitBlobCSIDriver returns blobCSIDriver that implemnts 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
	// GetProvisionStorageClass returns a StorageClass with existing container
	GetProvisionStorageClass(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

Jump to

Keyboard shortcuts

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