common

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +k8s:deepcopy-gen=package,register

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimLabels

type ClaimLabels struct {
	UserDefinedLabels `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=userDefinedLabels"`
	// Selector defines the selector criterias
	// +kubebuilder:validation:Optional
	Selector *metav1.LabelSelector `json:"selector,omitempty" yaml:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"`
}

+k8s:openapi-gen=true

func (*ClaimLabels) DeepCopy

func (in *ClaimLabels) DeepCopy() *ClaimLabels

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClaimLabels.

func (*ClaimLabels) DeepCopyInto

func (in *ClaimLabels) DeepCopyInto(out *ClaimLabels)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClaimLabels) GetLabelSelector

func (r *ClaimLabels) GetLabelSelector() (labels.Selector, error)

GetLabelSelector returns a labels selector based on the label selector

func (*ClaimLabels) GetSelectorLabels

func (r *ClaimLabels) GetSelectorLabels() map[string]string

GetSelectorLabels returns a map with a copy of the selector labels

func (*ClaimLabels) GetUserDefinedLabels

func (r *ClaimLabels) GetUserDefinedLabels() map[string]string

GetUserDefinedLabels returns a map with a copy of the user defined labels

type UserDefinedLabels

type UserDefinedLabels struct {
	// Labels as user defined labels
	// +optional
	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty" protobuf:"bytes,1,rep,name=labels"`
}

+k8s:openapi-gen=true UserDefinedLabels define metadata to the resource.

func (*UserDefinedLabels) DeepCopy

func (in *UserDefinedLabels) DeepCopy() *UserDefinedLabels

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDefinedLabels.

func (*UserDefinedLabels) DeepCopyInto

func (in *UserDefinedLabels) DeepCopyInto(out *UserDefinedLabels)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UserDefinedLabels) GetUserDefinedLabels

func (r *UserDefinedLabels) GetUserDefinedLabels() map[string]string

GetUserDefinedLabels returns a map with a copy of the user defined labels

Directories

Path Synopsis
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register

Jump to

Keyboard shortcuts

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