Documentation ¶
Index ¶
- Constants
- func GetParameters() map[string]string
- type AzureFileDriver
- func (d *AzureFileDriver) GetDynamicProvisionStorageClass(parameters map[string]string, mountOptions []string, ...) *storagev1.StorageClass
- func (d *AzureFileDriver) GetPersistentVolume(volumeID string, fsType string, size string, ...) *v1.PersistentVolume
- func (d *AzureFileDriver) GetPreProvisionStorageClass(parameters map[string]string, mountOptions []string, ...) *storagev1.StorageClass
- func (d *AzureFileDriver) GetVolumeSnapshotClass(namespace string) *snapshotv1.VolumeSnapshotClass
- type DynamicPVTestDriver
- type PVTestDriver
- type PreProvisionedVolumeTestDriver
- type VolumeSnapshotTestDriver
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 ¶
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 ¶
type PVTestDriver interface { DynamicPVTestDriver PreProvisionedVolumeTestDriver VolumeSnapshotTestDriver }
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
}
Click to show internal directories.
Click to hide internal directories.