mocks

package
v0.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 9 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 {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockClient) Create

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

Create provides a mock function with given fields: ctx, obj, opts

func (*MockClient) Delete

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

Delete provides a mock function with given fields: ctx, obj, opts

func (*MockClient) DeleteAllOf

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

DeleteAllOf provides a mock function with given fields: ctx, obj, opts

func (*MockClient) Get

func (_m *MockClient) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error

Get provides a mock function with given fields: ctx, key, obj, opts

func (*MockClient) GroupVersionKindFor

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

GroupVersionKindFor provides a mock function with given fields: obj

func (*MockClient) IsObjectNamespaced

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

IsObjectNamespaced provides a mock function with given fields: obj

func (*MockClient) List

func (_m *MockClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

List provides a mock function with given fields: ctx, list, opts

func (*MockClient) Patch

func (_m *MockClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

Patch provides a mock function with given fields: ctx, obj, patch, opts

func (*MockClient) RESTMapper

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

RESTMapper provides a mock function with no fields

func (*MockClient) Scheme

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

Scheme provides a mock function with no fields

func (*MockClient) Status

func (_m *MockClient) Status() client.SubResourceWriter

Status provides a mock function with no fields

func (*MockClient) SubResource

func (_m *MockClient) SubResource(subResource string) client.SubResourceClient

SubResource provides a mock function with given fields: subResource

func (*MockClient) Update

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

Update provides a mock function with given fields: ctx, obj, opts

type MockReconciler

type MockReconciler struct {
	mock.Mock
}

MockReconciler is an autogenerated mock type for the Reconciler type

func NewMockReconciler

func NewMockReconciler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockReconciler

NewMockReconciler creates a new instance of MockReconciler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockReconciler) EnsureCreated

EnsureCreated provides a mock function with given fields: _a0, _a1

func (*MockReconciler) EnsureDeleted

EnsureDeleted provides a mock function with given fields: _a0, _a1

type MockSubResourceWriter

type MockSubResourceWriter struct {
	mock.Mock
}

MockSubResourceWriter is an autogenerated mock type for the SubResourceWriter type

func NewMockSubResourceWriter

func NewMockSubResourceWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSubResourceWriter

NewMockSubResourceWriter creates a new instance of MockSubResourceWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockSubResourceWriter) Create

Create provides a mock function with given fields: ctx, obj, subResource, opts

func (*MockSubResourceWriter) Patch

Patch provides a mock function with given fields: ctx, obj, patch, opts

func (*MockSubResourceWriter) Update

Update provides a mock function with given fields: ctx, obj, opts

Jump to

Keyboard shortcuts

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