client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger logging.Logger, inner client.Client) client.Client

Types

type FakeClient added in v0.0.3

type FakeClient struct {
	T            *testing.T
	GetFake      func(ctx context.Context, t *testing.T, key ctrlclient.ObjectKey, obj ctrlclient.Object, opts ...ctrlclient.GetOption) error
	CreateFake   func(ctx context.Context, t *testing.T, obj ctrlclient.Object, opts ...ctrlclient.CreateOption) error
	DeleteFake   func(ctx context.Context, t *testing.T, obj ctrlclient.Object, opts ...ctrlclient.DeleteOption) error
	ListFake     func(ctx context.Context, t *testing.T, list ctrlclient.ObjectList, opts ...ctrlclient.ListOption) error
	PatchFake    func(ctx context.Context, t *testing.T, obj ctrlclient.Object, patch ctrlclient.Patch, opts ...ctrlclient.PatchOption) error
	IsNamespaced func(t *testing.T, obj runtime.Object) (bool, error)
	NumCalls     int
}

func (*FakeClient) Create added in v0.0.3

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

func (*FakeClient) Delete added in v0.0.3

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

func (*FakeClient) Get added in v0.0.3

func (*FakeClient) IsObjectNamespaced added in v0.0.3

func (f *FakeClient) IsObjectNamespaced(obj runtime.Object) (bool, error)

func (*FakeClient) List added in v0.0.3

func (*FakeClient) Patch added in v0.0.3

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳