test

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMock

type ClientMock struct {
	CreateErrors []error
	GetErrors    []error
	UpdateErrors []error
	SubResourceMock
}

func (ClientMock) Create

func (m ClientMock) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

func (ClientMock) Delete

func (m ClientMock) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

func (ClientMock) DeleteAllOf

func (m ClientMock) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

func (ClientMock) Get

func (m ClientMock) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error

func (ClientMock) GroupVersionKindFor

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

func (ClientMock) IsObjectNamespaced

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

func (ClientMock) List

func (m ClientMock) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

func (ClientMock) Patch

func (m ClientMock) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

func (ClientMock) RESTMapper

func (m ClientMock) RESTMapper() meta.RESTMapper

func (ClientMock) Scheme

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

func (ClientMock) Status

func (m ClientMock) Status() client.SubResourceWriter

func (ClientMock) SubResource

func (m ClientMock) SubResource(subResource string) client.SubResourceClient

func (ClientMock) Update

func (m ClientMock) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

type PatchHelperMock added in v0.0.37

type PatchHelperMock struct {
	PatchErrors []error
}

func (PatchHelperMock) Patch added in v0.0.37

func (m PatchHelperMock) Patch(ctx context.Context, obj client.Object, opts ...patch.Option) error

type SubResourceMock

type SubResourceMock struct {
	UpdateErrors []error
}

func (SubResourceMock) Create

func (m SubResourceMock) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error

func (SubResourceMock) Patch

func (SubResourceMock) Update

Jump to

Keyboard shortcuts

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