Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockReader ¶
MockReader is an autogenerated mock type for the Reader type
func NewMockReader ¶
func NewMockReader(t interface { mock.TestingT Cleanup(func()) }) *MockReader
NewMockReader creates a new instance of MockReader. 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 (*MockReader) EXPECT ¶
func (_m *MockReader) EXPECT() *MockReader_Expecter
func (*MockReader) Get ¶
func (_m *MockReader) 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 (*MockReader) List ¶
func (_m *MockReader) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
type MockReader_Expecter ¶
type MockReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockReader_Expecter) Get ¶
func (_e *MockReader_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *MockReader_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key types.NamespacedName
- obj client.Object
- opts ...client.GetOption
func (*MockReader_Expecter) List ¶
func (_e *MockReader_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *MockReader_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- list client.ObjectList
- opts ...client.ListOption
type MockReader_Get_Call ¶
MockReader_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockReader_Get_Call) Return ¶
func (_c *MockReader_Get_Call) Return(_a0 error) *MockReader_Get_Call
func (*MockReader_Get_Call) Run ¶
func (_c *MockReader_Get_Call) Run(run func(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption)) *MockReader_Get_Call
func (*MockReader_Get_Call) RunAndReturn ¶
func (_c *MockReader_Get_Call) RunAndReturn(run func(context.Context, types.NamespacedName, client.Object, ...client.GetOption) error) *MockReader_Get_Call
type MockReader_List_Call ¶
MockReader_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockReader_List_Call) Return ¶
func (_c *MockReader_List_Call) Return(_a0 error) *MockReader_List_Call
func (*MockReader_List_Call) Run ¶
func (_c *MockReader_List_Call) Run(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption)) *MockReader_List_Call
func (*MockReader_List_Call) RunAndReturn ¶
func (_c *MockReader_List_Call) RunAndReturn(run func(context.Context, client.ObjectList, ...client.ListOption) error) *MockReader_List_Call