test

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme) error

Types

type TestResource

type TestResource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TestResourceSpec   `json:"spec,omitempty"`
	Status TestResourceStatus `json:"status,omitempty"`
}

func NewObject

func NewObject(name, namespace string) *TestResource

func (*TestResource) DeepCopy

func (r *TestResource) DeepCopy() *TestResource

func (*TestResource) DeepCopyObject

func (r *TestResource) DeepCopyObject() runtime.Object

func (*TestResource) GetConditions

func (r *TestResource) GetConditions() []metav1.Condition

func (*TestResource) SetCondition

func (r *TestResource) SetCondition(condition metav1.Condition) bool

type TestResourceList

type TestResourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []*TestResource `json:"items"`
}

func NewObjectList

func NewObjectList() *TestResourceList

func (*TestResourceList) DeepCopy

func (r *TestResourceList) DeepCopy() *TestResourceList

func (*TestResourceList) DeepCopyObject

func (r *TestResourceList) DeepCopyObject() runtime.Object

func (*TestResourceList) GetItems

func (r *TestResourceList) GetItems() []types.Object

type TestResourceSpec

type TestResourceSpec struct {
	Properties *runtime.RawExtension `json:"properties,omitempty"`
}

type TestResourceStatus

type TestResourceStatus struct {
	// +listType=map
	// +listMapKey=type
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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