test_util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	Clientset *fake.Clientset
	GetFunc   func(ctx context.Context, key client.ObjectKey, obj client.Object) error
}

func NewFakeClient

func NewFakeClient() *FakeClient

func (*FakeClient) Create

func (*FakeClient) Delete

func (*FakeClient) DeleteAllOf

func (f *FakeClient) DeleteAllOf(_ context.Context, _ client.Object, _ ...client.DeleteAllOfOption) error

func (*FakeClient) Get

func (f *FakeClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error

func (*FakeClient) List

func (*FakeClient) Patch

func (*FakeClient) RESTMapper

func (f *FakeClient) RESTMapper() meta.RESTMapper

func (*FakeClient) Scheme

func (f *FakeClient) Scheme() *runtime.Scheme

func (*FakeClient) Status

func (f *FakeClient) Status() client.StatusWriter

func (*FakeClient) Update

Jump to

Keyboard shortcuts

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