fake

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockJanitorClient

type MockJanitorClient struct {
	mock.Mock
}

MockJanitorClient is an autogenerated mock type for the JanitorClient type

func NewMockJanitorClient

func NewMockJanitorClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockJanitorClient

NewMockJanitorClient creates a new instance of MockJanitorClient. 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 (*MockJanitorClient) AddKnownTypeToState

func (_m *MockJanitorClient) AddKnownTypeToState(obj types.Object)

AddKnownTypeToState provides a mock function with given fields: obj

func (*MockJanitorClient) AllReady

func (_m *MockJanitorClient) AllReady() bool

AllReady provides a mock function with no fields

func (*MockJanitorClient) AnyChanged

func (_m *MockJanitorClient) AnyChanged() bool

AnyChanged provides a mock function with no fields

func (*MockJanitorClient) Cleanup

func (_m *MockJanitorClient) Cleanup(ctx context.Context, objectList types.ObjectList, listOpts []pkgclient.ListOption) (int, error)

Cleanup provides a mock function with given fields: ctx, objectList, listOpts

func (*MockJanitorClient) CleanupAll

func (_m *MockJanitorClient) CleanupAll(ctx context.Context, listOpts []pkgclient.ListOption) (int, error)

CleanupAll provides a mock function with given fields: ctx, listOpts

func (*MockJanitorClient) CreateOrUpdate

CreateOrUpdate provides a mock function with given fields: ctx, obj, mutate

func (*MockJanitorClient) Delete

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

func (*MockJanitorClient) EXPECT

func (*MockJanitorClient) Get

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

func (*MockJanitorClient) List

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

func (*MockJanitorClient) Reset

func (_m *MockJanitorClient) Reset()

Reset provides a mock function with no fields

func (*MockJanitorClient) Scheme

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

Scheme provides a mock function with no fields

func (*MockJanitorClient) Wrap

func (_m *MockJanitorClient) Wrap(ctx context.Context, objectList types.ObjectList, listOpts []pkgclient.ListOption, f func(client.ScopedClient) bool) (int, error)

Wrap provides a mock function with given fields: ctx, objectList, listOpts, f

type MockJanitorClient_AddKnownTypeToState_Call

type MockJanitorClient_AddKnownTypeToState_Call struct {
	*mock.Call
}

MockJanitorClient_AddKnownTypeToState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddKnownTypeToState'

func (*MockJanitorClient_AddKnownTypeToState_Call) Return

func (*MockJanitorClient_AddKnownTypeToState_Call) Run

func (*MockJanitorClient_AddKnownTypeToState_Call) RunAndReturn

type MockJanitorClient_AllReady_Call

type MockJanitorClient_AllReady_Call struct {
	*mock.Call
}

MockJanitorClient_AllReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllReady'

func (*MockJanitorClient_AllReady_Call) Return

func (*MockJanitorClient_AllReady_Call) Run

func (*MockJanitorClient_AllReady_Call) RunAndReturn

type MockJanitorClient_AnyChanged_Call

type MockJanitorClient_AnyChanged_Call struct {
	*mock.Call
}

MockJanitorClient_AnyChanged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AnyChanged'

func (*MockJanitorClient_AnyChanged_Call) Return

func (*MockJanitorClient_AnyChanged_Call) Run

func (*MockJanitorClient_AnyChanged_Call) RunAndReturn

type MockJanitorClient_CleanupAll_Call

type MockJanitorClient_CleanupAll_Call struct {
	*mock.Call
}

MockJanitorClient_CleanupAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanupAll'

func (*MockJanitorClient_CleanupAll_Call) Return

func (*MockJanitorClient_CleanupAll_Call) Run

func (*MockJanitorClient_CleanupAll_Call) RunAndReturn

type MockJanitorClient_Cleanup_Call

type MockJanitorClient_Cleanup_Call struct {
	*mock.Call
}

MockJanitorClient_Cleanup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cleanup'

func (*MockJanitorClient_Cleanup_Call) Return

func (*MockJanitorClient_Cleanup_Call) Run

func (*MockJanitorClient_Cleanup_Call) RunAndReturn

type MockJanitorClient_CreateOrUpdate_Call

type MockJanitorClient_CreateOrUpdate_Call struct {
	*mock.Call
}

MockJanitorClient_CreateOrUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrUpdate'

func (*MockJanitorClient_CreateOrUpdate_Call) Return

func (*MockJanitorClient_CreateOrUpdate_Call) Run

type MockJanitorClient_Delete_Call

type MockJanitorClient_Delete_Call struct {
	*mock.Call
}

MockJanitorClient_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*MockJanitorClient_Delete_Call) Return

func (*MockJanitorClient_Delete_Call) Run

func (*MockJanitorClient_Delete_Call) RunAndReturn

type MockJanitorClient_Expecter

type MockJanitorClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockJanitorClient_Expecter) AddKnownTypeToState

func (_e *MockJanitorClient_Expecter) AddKnownTypeToState(obj interface{}) *MockJanitorClient_AddKnownTypeToState_Call

AddKnownTypeToState is a helper method to define mock.On call

  • obj types.Object

func (*MockJanitorClient_Expecter) AllReady

AllReady is a helper method to define mock.On call

func (*MockJanitorClient_Expecter) AnyChanged

AnyChanged is a helper method to define mock.On call

func (*MockJanitorClient_Expecter) Cleanup

func (_e *MockJanitorClient_Expecter) Cleanup(ctx interface{}, objectList interface{}, listOpts interface{}) *MockJanitorClient_Cleanup_Call

Cleanup is a helper method to define mock.On call

  • ctx context.Context
  • objectList types.ObjectList
  • listOpts []pkgclient.ListOption

func (*MockJanitorClient_Expecter) CleanupAll

func (_e *MockJanitorClient_Expecter) CleanupAll(ctx interface{}, listOpts interface{}) *MockJanitorClient_CleanupAll_Call

CleanupAll is a helper method to define mock.On call

  • ctx context.Context
  • listOpts []pkgclient.ListOption

func (*MockJanitorClient_Expecter) CreateOrUpdate

func (_e *MockJanitorClient_Expecter) CreateOrUpdate(ctx interface{}, obj interface{}, mutate interface{}) *MockJanitorClient_CreateOrUpdate_Call

CreateOrUpdate is a helper method to define mock.On call

  • ctx context.Context
  • obj pkgclient.Object
  • mutate controllerutil.MutateFn

func (*MockJanitorClient_Expecter) Delete

func (_e *MockJanitorClient_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *MockJanitorClient_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • obj pkgclient.Object
  • opts ...pkgclient.DeleteOption

func (*MockJanitorClient_Expecter) Get

func (_e *MockJanitorClient_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *MockJanitorClient_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key pkgtypes.NamespacedName
  • obj pkgclient.Object
  • opts ...pkgclient.GetOption

func (*MockJanitorClient_Expecter) List

func (_e *MockJanitorClient_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *MockJanitorClient_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • list pkgclient.ObjectList
  • opts ...pkgclient.ListOption

func (*MockJanitorClient_Expecter) Reset

Reset is a helper method to define mock.On call

func (*MockJanitorClient_Expecter) Scheme

Scheme is a helper method to define mock.On call

func (*MockJanitorClient_Expecter) Wrap

func (_e *MockJanitorClient_Expecter) Wrap(ctx interface{}, objectList interface{}, listOpts interface{}, f interface{}) *MockJanitorClient_Wrap_Call

Wrap is a helper method to define mock.On call

  • ctx context.Context
  • objectList types.ObjectList
  • listOpts []pkgclient.ListOption
  • f func(client.ScopedClient) bool

type MockJanitorClient_Get_Call

type MockJanitorClient_Get_Call struct {
	*mock.Call
}

MockJanitorClient_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*MockJanitorClient_Get_Call) Return

func (*MockJanitorClient_Get_Call) Run

type MockJanitorClient_List_Call

type MockJanitorClient_List_Call struct {
	*mock.Call
}

MockJanitorClient_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*MockJanitorClient_List_Call) Return

func (*MockJanitorClient_List_Call) Run

func (*MockJanitorClient_List_Call) RunAndReturn

type MockJanitorClient_Reset_Call

type MockJanitorClient_Reset_Call struct {
	*mock.Call
}

MockJanitorClient_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'

func (*MockJanitorClient_Reset_Call) Return

func (*MockJanitorClient_Reset_Call) Run

func (*MockJanitorClient_Reset_Call) RunAndReturn

func (_c *MockJanitorClient_Reset_Call) RunAndReturn(run func()) *MockJanitorClient_Reset_Call

type MockJanitorClient_Scheme_Call

type MockJanitorClient_Scheme_Call struct {
	*mock.Call
}

MockJanitorClient_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'

func (*MockJanitorClient_Scheme_Call) Return

func (*MockJanitorClient_Scheme_Call) Run

func (*MockJanitorClient_Scheme_Call) RunAndReturn

type MockJanitorClient_Wrap_Call

type MockJanitorClient_Wrap_Call struct {
	*mock.Call
}

MockJanitorClient_Wrap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wrap'

func (*MockJanitorClient_Wrap_Call) Return

func (*MockJanitorClient_Wrap_Call) Run

func (*MockJanitorClient_Wrap_Call) RunAndReturn

Jump to

Keyboard shortcuts

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