Documentation ¶
Index ¶
- func CreateFakeSnapshot(claimName, namespace, snapshotClassName string, uid types.UID) *volumesnapshotsv1.VolumeSnapshot
- func CreateFakeSnapshotClass(driver string) *volumesnapshotsv1.VolumeSnapshotClass
- func CreatePV(driver, volume string, size int) *corev1.PersistentVolume
- func CreatePVC(namespace, scName string, uid types.UID, size int) *corev1.PersistentVolumeClaim
- func GenerateDriverName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFakeSnapshot ¶
func CreateFakeSnapshot(claimName, namespace, snapshotClassName string, uid types.UID) *volumesnapshotsv1.VolumeSnapshot
CreateFakeSnapshot returns a fake VolumeSnapshot with the provided parameters
func CreateFakeSnapshotClass ¶
func CreateFakeSnapshotClass(driver string) *volumesnapshotsv1.VolumeSnapshotClass
CreateFakeSnapshotClass returns a fake VolumeSnapshotClass with the provided parameters
func CreatePV ¶
func CreatePV(driver, volume string, size int) *corev1.PersistentVolume
CreatePV returns a fake PersistentVolume with the provided parameters
func GenerateDriverName ¶
func GenerateDriverName() string
GenerateDriverName creates a random name to use for the driver
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.