persistentvolumeclaim

package
v0.0.8-prerelease Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Modification

type Modification func(claim *corev1.PersistentVolumeClaim)

func Apply

func Apply(funcs ...Modification) Modification

Apply returns a function which applies a series of Modification functions to a *corev1.PersistentVolumeClaim

func NOOP

func NOOP() Modification

NOOP is a valid Modification which applies no changes

func WithAccessModes

func WithAccessModes(accessMode corev1.PersistentVolumeAccessMode) Modification

WithAccessModes sets the PersistentVolumeClaim's AccessModes

func WithLabelSelector

func WithLabelSelector(selector *metav1.LabelSelector) Modification

WithLabelSelector sets the PersistentVolumeClaim's LevelSelector

func WithName

func WithName(name string) Modification

WithName sets the PersistentVolumeClaim's name

func WithResourceRequests

func WithResourceRequests(requests corev1.ResourceList) Modification

WithResourceRequests sets the PersistentVolumeClaim's Resource Requests

func WithStorageClassName

func WithStorageClassName(storageClassName string) Modification

WithStorageClassName sets the PersistentVolumeClaim's storage class name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL