Documentation ¶
Index ¶
- func IsDeletionCandidate(obj metav1.Object, finalizer string) bool
- func NeedToAddFinalizer(obj metav1.Object, finalizer string) bool
- type PersistentVolumeClaimWrapper
- func (p *PersistentVolumeClaimWrapper) Annotation(key, value string) *PersistentVolumeClaimWrapper
- func (p *PersistentVolumeClaimWrapper) CurrentVolumeAttributesClassName(s string) *PersistentVolumeClaimWrapper
- func (p *PersistentVolumeClaimWrapper) Finalizer(s string) *PersistentVolumeClaimWrapper
- func (p *PersistentVolumeClaimWrapper) Name(s string) *PersistentVolumeClaimWrapper
- func (p *PersistentVolumeClaimWrapper) Namespace(s string) *PersistentVolumeClaimWrapper
- func (p *PersistentVolumeClaimWrapper) Obj() *v1.PersistentVolumeClaim
- func (p *PersistentVolumeClaimWrapper) TargetVolumeAttributesClassName(s string) *PersistentVolumeClaimWrapper
- func (p *PersistentVolumeClaimWrapper) VolumeAttributesClassName(s string) *PersistentVolumeClaimWrapper
- func (p *PersistentVolumeClaimWrapper) VolumeName(name string) *PersistentVolumeClaimWrapper
- type PersistentVolumeWrapper
- type PodWrapper
- func (p *PodWrapper) Annotation(key, value string) *PodWrapper
- func (p *PodWrapper) Annotations(annotations map[string]string) *PodWrapper
- func (p *PodWrapper) Name(s string) *PodWrapper
- func (p *PodWrapper) Namespace(s string) *PodWrapper
- func (p *PodWrapper) Obj() *v1.Pod
- func (p *PodWrapper) PVC(name string) *PodWrapper
- func (p *PodWrapper) SchedulerName(s string) *PodWrapper
- func (p *PodWrapper) Terminating() *PodWrapper
- func (p *PodWrapper) UID(s string) *PodWrapper
- type VolumeAttributesClassWrapper
- func (v *VolumeAttributesClassWrapper) Finalizer(s string) *VolumeAttributesClassWrapper
- func (v *VolumeAttributesClassWrapper) Name(s string) *VolumeAttributesClassWrapper
- func (v *VolumeAttributesClassWrapper) Obj() *storagev1beta1.VolumeAttributesClass
- func (v *VolumeAttributesClassWrapper) Terminating() *VolumeAttributesClassWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDeletionCandidate ¶
IsDeletionCandidate checks if object is candidate to be deleted
Types ¶
type PersistentVolumeClaimWrapper ¶ added in v1.32.0
type PersistentVolumeClaimWrapper struct{ v1.PersistentVolumeClaim }
PersistentVolumeClaimWrapper wraps a PersistentVolumeClaim inside.
func MakePersistentVolumeClaim ¶ added in v1.32.0
func MakePersistentVolumeClaim() *PersistentVolumeClaimWrapper
MakePersistentVolumeClaim creates a PersistentVolumeClaim wrapper.
func (*PersistentVolumeClaimWrapper) Annotation ¶ added in v1.32.0
func (p *PersistentVolumeClaimWrapper) Annotation(key, value string) *PersistentVolumeClaimWrapper
Annotation sets a {k,v} pair to the inner PersistentVolumeClaim.
func (*PersistentVolumeClaimWrapper) CurrentVolumeAttributesClassName ¶ added in v1.32.0
func (p *PersistentVolumeClaimWrapper) CurrentVolumeAttributesClassName(s string) *PersistentVolumeClaimWrapper
CurrentVolumeAttributesClassName sets `s` as the CurrentVolumeAttributesClassName of the inner PersistentVolumeClaim.
func (*PersistentVolumeClaimWrapper) Finalizer ¶ added in v1.32.0
func (p *PersistentVolumeClaimWrapper) Finalizer(s string) *PersistentVolumeClaimWrapper
func (*PersistentVolumeClaimWrapper) Name ¶ added in v1.32.0
func (p *PersistentVolumeClaimWrapper) Name(s string) *PersistentVolumeClaimWrapper
Name sets `s` as the name of the inner PersistentVolumeClaim.
func (*PersistentVolumeClaimWrapper) Namespace ¶ added in v1.32.0
func (p *PersistentVolumeClaimWrapper) Namespace(s string) *PersistentVolumeClaimWrapper
Namespace sets `s` as the namespace of the inner PersistentVolumeClaim.
func (*PersistentVolumeClaimWrapper) Obj ¶ added in v1.32.0
func (p *PersistentVolumeClaimWrapper) Obj() *v1.PersistentVolumeClaim
Obj returns the inner PersistentVolumeClaim.
func (*PersistentVolumeClaimWrapper) TargetVolumeAttributesClassName ¶ added in v1.32.0
func (p *PersistentVolumeClaimWrapper) TargetVolumeAttributesClassName(s string) *PersistentVolumeClaimWrapper
TargetVolumeAttributesClassName sets `s` as the TargetVolumeAttributesClassName of the inner PersistentVolumeClaim. It also sets the status to Pending.
func (*PersistentVolumeClaimWrapper) VolumeAttributesClassName ¶ added in v1.32.0
func (p *PersistentVolumeClaimWrapper) VolumeAttributesClassName(s string) *PersistentVolumeClaimWrapper
VolumeAttributesClassName sets `s` as the VolumeAttributesClassName of the inner PersistentVolumeClaim.
func (*PersistentVolumeClaimWrapper) VolumeName ¶ added in v1.32.0
func (p *PersistentVolumeClaimWrapper) VolumeName(name string) *PersistentVolumeClaimWrapper
VolumeName sets `name` as the volume name of the inner PersistentVolumeClaim.
type PersistentVolumeWrapper ¶ added in v1.32.0
type PersistentVolumeWrapper struct{ v1.PersistentVolume }
PersistentVolumeWrapper wraps a PersistentVolume inside.
func MakePersistentVolume ¶ added in v1.32.0
func MakePersistentVolume() *PersistentVolumeWrapper
MakePersistentVolume creates a PersistentVolume wrapper.
func (*PersistentVolumeWrapper) Name ¶ added in v1.32.0
func (p *PersistentVolumeWrapper) Name(s string) *PersistentVolumeWrapper
Name sets `s` as the name of the inner PersistentVolume.
func (*PersistentVolumeWrapper) Obj ¶ added in v1.32.0
func (p *PersistentVolumeWrapper) Obj() *v1.PersistentVolume
Obj returns the inner PersistentVolume.
func (*PersistentVolumeWrapper) VolumeAttributesClassName ¶ added in v1.32.0
func (p *PersistentVolumeWrapper) VolumeAttributesClassName(s string) *PersistentVolumeWrapper
VolumeAttributesClassName sets `s` as the VolumeAttributesClassName of the inner PersistentVolume.
type PodWrapper ¶ added in v1.32.0
PodWrapper wraps a Pod inside.
func (*PodWrapper) Annotation ¶ added in v1.32.0
func (p *PodWrapper) Annotation(key, value string) *PodWrapper
Annotation sets a {k,v} pair to the inner pod annotation.
func (*PodWrapper) Annotations ¶ added in v1.32.0
func (p *PodWrapper) Annotations(annotations map[string]string) *PodWrapper
Annotations sets all {k,v} pair provided by `annotations` to the inner pod annotations.
func (*PodWrapper) Name ¶ added in v1.32.0
func (p *PodWrapper) Name(s string) *PodWrapper
Name sets `s` as the name of the inner pod.
func (*PodWrapper) Namespace ¶ added in v1.32.0
func (p *PodWrapper) Namespace(s string) *PodWrapper
Namespace sets `s` as the namespace of the inner pod.
func (*PodWrapper) Obj ¶ added in v1.32.0
func (p *PodWrapper) Obj() *v1.Pod
Obj returns the inner Pod.
func (*PodWrapper) PVC ¶ added in v1.32.0
func (p *PodWrapper) PVC(name string) *PodWrapper
PVC creates a Volume with a PVC and injects into the inner pod.
func (*PodWrapper) SchedulerName ¶ added in v1.32.0
func (p *PodWrapper) SchedulerName(s string) *PodWrapper
SchedulerName sets `s` as the scheduler name of the inner pod.
func (*PodWrapper) Terminating ¶ added in v1.32.0
func (p *PodWrapper) Terminating() *PodWrapper
Terminating sets the inner pod's deletionTimestamp to current timestamp.
func (*PodWrapper) UID ¶ added in v1.32.0
func (p *PodWrapper) UID(s string) *PodWrapper
UID sets `s` as the UID of the inner pod.
type VolumeAttributesClassWrapper ¶ added in v1.32.0
type VolumeAttributesClassWrapper struct {
storagev1beta1.VolumeAttributesClass
}
VolumeAttributesClassWrapper wraps a VolumeAttributesClass inside.
func MakeVolumeAttributesClass ¶ added in v1.32.0
func MakeVolumeAttributesClass() *VolumeAttributesClassWrapper
MakeVolumeAttributesClass creates a VolumeAttributesClass wrapper.
func (*VolumeAttributesClassWrapper) Finalizer ¶ added in v1.32.0
func (v *VolumeAttributesClassWrapper) Finalizer(s string) *VolumeAttributesClassWrapper
Finalizer appends `s` to the finalizers of the inner VolumeAttributesClass.
func (*VolumeAttributesClassWrapper) Name ¶ added in v1.32.0
func (v *VolumeAttributesClassWrapper) Name(s string) *VolumeAttributesClassWrapper
Name sets `s` as the name of the inner VolumeAttributesClass.
func (*VolumeAttributesClassWrapper) Obj ¶ added in v1.32.0
func (v *VolumeAttributesClassWrapper) Obj() *storagev1beta1.VolumeAttributesClass
Obj returns the inner VolumeAttributesClass.
func (*VolumeAttributesClassWrapper) Terminating ¶ added in v1.32.0
func (v *VolumeAttributesClassWrapper) Terminating() *VolumeAttributesClassWrapper
Terminating sets the inner VolumeAttributesClass' deletionTimestamp to non-nil.