driver

package
v0.0.0-...-5546453 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetParameters

func GetParameters() map[string]string

Types

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 InitBlobFuseCSIDriver

func InitBlobFuseCSIDriver() PVTestDriver

InitBlobFuseCSIDriver returns blobFuseCSIDriver 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) *v1.PersistentVolume
}

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

type VolumeSnapshotTestDriver

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

Jump to

Keyboard shortcuts

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