testSupport

package
v0.90.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFakeClient

func CreateFakeClient(t *testing.T, objects ...client.Object) client.WithWatch

Types

type TestApiObject

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

	Status TestStatus `json:"status,omitempty"`
}

func (*TestApiObject) DeepCopy

func (t *TestApiObject) DeepCopy() *TestApiObject

func (*TestApiObject) DeepCopyInto

func (m *TestApiObject) DeepCopyInto(out *TestApiObject)

func (*TestApiObject) DeepCopyObject

func (t *TestApiObject) DeepCopyObject() runtime.Object

type TestNoStatusApiObject added in v0.21.0

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

func (*TestNoStatusApiObject) DeepCopy added in v0.21.0

func (*TestNoStatusApiObject) DeepCopyInto added in v0.21.0

func (m *TestNoStatusApiObject) DeepCopyInto(out *TestNoStatusApiObject)

func (*TestNoStatusApiObject) DeepCopyObject added in v0.21.0

func (t *TestNoStatusApiObject) DeepCopyObject() runtime.Object

type TestStatus

type TestStatus struct {
	Some               string
	Conditions         []metav1.Condition
	NextReconcileTime  metav1.Time
	ObservedGeneration int64
}

Jump to

Keyboard shortcuts

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