client

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 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 MockClient

type MockClient struct {
	GetFn                func(ctx context.Context, key ctrlclient.ObjectKey, obj ctrlclient.Object, opts ...ctrlclient.GetOption) error
	ListFn               func(ctx context.Context, list ctrlclient.ObjectList, opts ...ctrlclient.ListOption) error
	CreateFn             func(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.CreateOption) error
	DeleteFn             func(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.DeleteOption) error
	UpdateFn             func(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.UpdateOption) error
	PatchFn              func(ctx context.Context, obj ctrlclient.Object, patch ctrlclient.Patch, opts ...ctrlclient.PatchOption) error
	DeleteAllofFn        func(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.DeleteAllOfOption) error
	IsObjectNamespacedFn func(obj runtime.Object) (bool, error)
	ctrlclient.StatusClient
	ctrlclient.SubResourceClientConstructor
}

func (*MockClient) Create

func (m *MockClient) Create(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.CreateOption) error

func (*MockClient) Delete

func (m *MockClient) Delete(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.DeleteOption) error

func (*MockClient) DeleteAllOf

func (m *MockClient) DeleteAllOf(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.DeleteAllOfOption) error

func (*MockClient) Get

func (*MockClient) GroupVersionKindFor

func (m *MockClient) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)

func (*MockClient) IsObjectNamespaced

func (m *MockClient) IsObjectNamespaced(obj runtime.Object) (bool, error)

func (*MockClient) List

func (*MockClient) Patch

func (*MockClient) RESTMapper

func (m *MockClient) RESTMapper() meta.RESTMapper

func (*MockClient) Scheme

func (m *MockClient) Scheme() *runtime.Scheme

func (*MockClient) Update

func (m *MockClient) Update(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.UpdateOption) error

Jump to

Keyboard shortcuts

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