libdv

package
v0.58.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳