Documentation ¶
Index ¶
- Constants
- func GetParameters(volumeType string, fsType string, encrypted bool) map[string]string
- func IOPSForVolumeType(volumeType string) string
- func IOPSPerGBForVolumeType(volumeType string) string
- func MinimumSizeForVolumeType(volumeType string) string
- func ThroughputForVolumeType(volumeType string) string
- type DynamicPVTestDriver
- type PVTestDriver
- type PreProvisionedVolumeTestDriver
- type VolumeSnapshotTestDriver
Constants ¶
const ( VolumeSnapshotClassKind = "VolumeSnapshotClass" SnapshotAPIVersion = "snapshot.storage.k8s.io/v1beta1" )
const (
True = "true"
)
Variables ¶
This section is empty.
Functions ¶
func GetParameters ¶
GetParameters returns the parameters specific for this driver
func IOPSForVolumeType ¶ added in v0.8.0
IOPSForVolumeType returns the maximum iops for each volumeType Otherwise returns an empty string
func IOPSPerGBForVolumeType ¶
IOPSPerGBForVolumeType returns the maximum iops per GB for each volumeType Otherwise returns an empty string
func MinimumSizeForVolumeType ¶
MinimumSizeForVolumeType returns the minimum disk size for each volumeType
func ThroughputForVolumeType ¶ added in v0.8.0
ThroughputPerVolumeType returns the maximum throughput for each volumeType Otherwise returns an empty 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 ¶
type PVTestDriver interface { DynamicPVTestDriver PreProvisionedVolumeTestDriver VolumeSnapshotTestDriver }
func InitEbsCSIDriver ¶
func InitEbsCSIDriver() PVTestDriver
InitEbsCSIDriver returns ebsCSIDriver 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) *v1.PersistentVolume }
PreProvisionedVolumeTestDriver represents an interface for a CSI driver that supports pre-provisioned volume
type VolumeSnapshotTestDriver ¶ added in v0.3.0
type VolumeSnapshotTestDriver interface {
GetVolumeSnapshotClass(namespace string) *v1beta1.VolumeSnapshotClass
}