Documentation
¶
Index ¶
- func NewDataVolume(options ...dvOption) *v1beta1.DataVolume
- func WithBlankImageSource() dvOption
- func WithForceBindAnnotation() dvOption
- func WithNamespace(namespace string) dvOption
- func WithPVC(storageClass string, size string, accessMode corev1.PersistentVolumeAccessMode, ...) dvOption
- func WithPVCSource(namespace, name string) dvOption
- func WithRegistryURLSource(imageURL string) dvOption
- func WithRegistryURLSourceAndPullMethod(imageURL string, pullMethod v1beta1.RegistryPullMethod) dvOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDataVolume ¶
func NewDataVolume(options ...dvOption) *v1beta1.DataVolume
NewDataVolume Set up a new DataVolume with a random name, a namespace and an optional list of options
func WithBlankImageSource ¶
func WithBlankImageSource() dvOption
WithBlankImageSource is a dvOption to add a blank DataVolumeSource to the DataVolume
func WithForceBindAnnotation ¶
func WithForceBindAnnotation() dvOption
func WithNamespace ¶
func WithNamespace(namespace string) dvOption
func WithPVC ¶
func WithPVC(storageClass string, size string, accessMode corev1.PersistentVolumeAccessMode, volumeMode corev1.PersistentVolumeMode) dvOption
WithPVC is a dvOption to add a PVCOption spec to the DataVolume
func WithPVCSource ¶
func WithPVCSource(namespace, name string) dvOption
WithPVCSource is a dvOption to add a DataVolumeSource to the DataVolume, with a PVC source
func WithRegistryURLSource ¶
func WithRegistryURLSource(imageURL string) dvOption
WithRegistryURLSource is a dvOption to add a DataVolumeSource to the DataVolume, with a registry and a URL
func WithRegistryURLSourceAndPullMethod ¶
func WithRegistryURLSourceAndPullMethod(imageURL string, pullMethod v1beta1.RegistryPullMethod) dvOption
WithRegistryURLSourceAndPullMethod is a dvOption to add a DataVolumeSource to the DataVolume, with a registry and URL + pull method
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.