Documentation
¶
Index ¶
- Constants
- func GetParameters() map[string]string
- type DynamicPVTestDriver
- type NFSDriver
- func (d *NFSDriver) GetDynamicProvisionStorageClass(parameters map[string]string, mountOptions []string, ...) *storagev1.StorageClass
- func (d *NFSDriver) GetPersistentVolume(volumeID string, fsType string, size string, ...) *v1.PersistentVolume
- func (d *NFSDriver) GetPreProvisionStorageClass(parameters map[string]string, mountOptions []string, ...) *storagev1.StorageClass
- type PVTestDriver
- type PreProvisionedVolumeTestDriver
Constants ¶
View Source
const NFSDriverNameVar = "NFS_CSI_DRIVER"
NFSDriverNameVar is the environment variable use to switch the driver to be used.
Variables ¶
This section is empty.
Functions ¶
func GetParameters ¶
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 NFSDriver ¶
type NFSDriver struct {
// contains filtered or unexported fields
}
NFSDriver implements DynamicPVTestDriver interface
func (*NFSDriver) GetDynamicProvisionStorageClass ¶
func (d *NFSDriver) GetDynamicProvisionStorageClass(parameters map[string]string, mountOptions []string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, bindingMode *storagev1.VolumeBindingMode, _ []string, namespace string) *storagev1.StorageClass
func (*NFSDriver) GetPersistentVolume ¶
func (*NFSDriver) GetPreProvisionStorageClass ¶
func (d *NFSDriver) GetPreProvisionStorageClass(parameters map[string]string, mountOptions []string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, bindingMode *storagev1.VolumeBindingMode, _ []string, namespace string) *storagev1.StorageClass
type PVTestDriver ¶
type PVTestDriver interface { DynamicPVTestDriver PreProvisionedVolumeTestDriver }
func InitNFSDriver ¶
func InitNFSDriver() PVTestDriver
InitNFSDriver returns NFSDriver 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
Click to show internal directories.
Click to hide internal directories.