Documentation ¶
Index ¶
- type MockClient
- func (_m *MockClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (_m *MockClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (_m *MockClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_m *MockClient) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) error
- func (_m *MockClient) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (_m *MockClient) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (_m *MockClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_m *MockClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *MockClient) RESTMapper() meta.RESTMapper
- func (_m *MockClient) Scheme() *runtime.Scheme
- func (_m *MockClient) Status() client.SubResourceWriter
- func (_m *MockClient) SubResource(subResource string) client.SubResourceClient
- func (_m *MockClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type MockClient_Create_Call
- func (_c *MockClient_Create_Call) Return(_a0 error) *MockClient_Create_Call
- func (_c *MockClient_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *MockClient_Create_Call
- func (_c *MockClient_Create_Call) RunAndReturn(run func(context.Context, client.Object, ...client.CreateOption) error) *MockClient_Create_Call
- type MockClient_DeleteAllOf_Call
- func (_c *MockClient_DeleteAllOf_Call) Return(_a0 error) *MockClient_DeleteAllOf_Call
- func (_c *MockClient_DeleteAllOf_Call) Run(...) *MockClient_DeleteAllOf_Call
- func (_c *MockClient_DeleteAllOf_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteAllOfOption) error) *MockClient_DeleteAllOf_Call
- type MockClient_Delete_Call
- func (_c *MockClient_Delete_Call) Return(_a0 error) *MockClient_Delete_Call
- func (_c *MockClient_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *MockClient_Delete_Call
- func (_c *MockClient_Delete_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteOption) error) *MockClient_Delete_Call
- type MockClient_Expecter
- func (_e *MockClient_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Create_Call
- func (_e *MockClient_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Delete_Call
- func (_e *MockClient_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_DeleteAllOf_Call
- func (_e *MockClient_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *MockClient_Get_Call
- func (_e *MockClient_Expecter) GroupVersionKindFor(obj interface{}) *MockClient_GroupVersionKindFor_Call
- func (_e *MockClient_Expecter) IsObjectNamespaced(obj interface{}) *MockClient_IsObjectNamespaced_Call
- func (_e *MockClient_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *MockClient_List_Call
- func (_e *MockClient_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *MockClient_Patch_Call
- func (_e *MockClient_Expecter) RESTMapper() *MockClient_RESTMapper_Call
- func (_e *MockClient_Expecter) Scheme() *MockClient_Scheme_Call
- func (_e *MockClient_Expecter) Status() *MockClient_Status_Call
- func (_e *MockClient_Expecter) SubResource(subResource interface{}) *MockClient_SubResource_Call
- func (_e *MockClient_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Update_Call
- type MockClient_Get_Call
- type MockClient_GroupVersionKindFor_Call
- func (_c *MockClient_GroupVersionKindFor_Call) Return(_a0 schema.GroupVersionKind, _a1 error) *MockClient_GroupVersionKindFor_Call
- func (_c *MockClient_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *MockClient_GroupVersionKindFor_Call
- func (_c *MockClient_GroupVersionKindFor_Call) RunAndReturn(run func(runtime.Object) (schema.GroupVersionKind, error)) *MockClient_GroupVersionKindFor_Call
- type MockClient_IsObjectNamespaced_Call
- func (_c *MockClient_IsObjectNamespaced_Call) Return(_a0 bool, _a1 error) *MockClient_IsObjectNamespaced_Call
- func (_c *MockClient_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *MockClient_IsObjectNamespaced_Call
- func (_c *MockClient_IsObjectNamespaced_Call) RunAndReturn(run func(runtime.Object) (bool, error)) *MockClient_IsObjectNamespaced_Call
- type MockClient_List_Call
- type MockClient_Patch_Call
- type MockClient_RESTMapper_Call
- type MockClient_Scheme_Call
- type MockClient_Status_Call
- type MockClient_SubResource_Call
- func (_c *MockClient_SubResource_Call) Return(_a0 client.SubResourceClient) *MockClient_SubResource_Call
- func (_c *MockClient_SubResource_Call) Run(run func(subResource string)) *MockClient_SubResource_Call
- func (_c *MockClient_SubResource_Call) RunAndReturn(run func(string) client.SubResourceClient) *MockClient_SubResource_Call
- type MockClient_Update_Call
- func (_c *MockClient_Update_Call) Return(_a0 error) *MockClient_Update_Call
- func (_c *MockClient_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *MockClient_Update_Call
- func (_c *MockClient_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.UpdateOption) error) *MockClient_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
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) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
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 given fields:
func (*MockClient) Scheme ¶
func (_m *MockClient) Scheme() *runtime.Scheme
Scheme provides a mock function with given fields:
func (*MockClient) Status ¶
func (_m *MockClient) Status() client.SubResourceWriter
Status provides a mock function with given 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 MockClient_Create_Call ¶
MockClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockClient_Create_Call) Return ¶
func (_c *MockClient_Create_Call) Return(_a0 error) *MockClient_Create_Call
func (*MockClient_Create_Call) Run ¶
func (_c *MockClient_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *MockClient_Create_Call
func (*MockClient_Create_Call) RunAndReturn ¶
func (_c *MockClient_Create_Call) RunAndReturn(run func(context.Context, client.Object, ...client.CreateOption) error) *MockClient_Create_Call
type MockClient_DeleteAllOf_Call ¶
MockClient_DeleteAllOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllOf'
func (*MockClient_DeleteAllOf_Call) Return ¶
func (_c *MockClient_DeleteAllOf_Call) Return(_a0 error) *MockClient_DeleteAllOf_Call
func (*MockClient_DeleteAllOf_Call) Run ¶
func (_c *MockClient_DeleteAllOf_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption)) *MockClient_DeleteAllOf_Call
func (*MockClient_DeleteAllOf_Call) RunAndReturn ¶
func (_c *MockClient_DeleteAllOf_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteAllOfOption) error) *MockClient_DeleteAllOf_Call
type MockClient_Delete_Call ¶
MockClient_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockClient_Delete_Call) Return ¶
func (_c *MockClient_Delete_Call) Return(_a0 error) *MockClient_Delete_Call
func (*MockClient_Delete_Call) Run ¶
func (_c *MockClient_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *MockClient_Delete_Call
func (*MockClient_Delete_Call) RunAndReturn ¶
func (_c *MockClient_Delete_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteOption) error) *MockClient_Delete_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) Create ¶
func (_e *MockClient_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.CreateOption
func (*MockClient_Expecter) Delete ¶
func (_e *MockClient_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteOption
func (*MockClient_Expecter) DeleteAllOf ¶
func (_e *MockClient_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_DeleteAllOf_Call
DeleteAllOf is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteAllOfOption
func (*MockClient_Expecter) Get ¶
func (_e *MockClient_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *MockClient_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 (*MockClient_Expecter) GroupVersionKindFor ¶
func (_e *MockClient_Expecter) GroupVersionKindFor(obj interface{}) *MockClient_GroupVersionKindFor_Call
GroupVersionKindFor is a helper method to define mock.On call
- obj runtime.Object
func (*MockClient_Expecter) IsObjectNamespaced ¶
func (_e *MockClient_Expecter) IsObjectNamespaced(obj interface{}) *MockClient_IsObjectNamespaced_Call
IsObjectNamespaced is a helper method to define mock.On call
- obj runtime.Object
func (*MockClient_Expecter) List ¶
func (_e *MockClient_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *MockClient_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- list client.ObjectList
- opts ...client.ListOption
func (*MockClient_Expecter) Patch ¶
func (_e *MockClient_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *MockClient_Patch_Call
Patch is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- patch client.Patch
- opts ...client.PatchOption
func (*MockClient_Expecter) RESTMapper ¶
func (_e *MockClient_Expecter) RESTMapper() *MockClient_RESTMapper_Call
RESTMapper is a helper method to define mock.On call
func (*MockClient_Expecter) Scheme ¶
func (_e *MockClient_Expecter) Scheme() *MockClient_Scheme_Call
Scheme is a helper method to define mock.On call
func (*MockClient_Expecter) Status ¶
func (_e *MockClient_Expecter) Status() *MockClient_Status_Call
Status is a helper method to define mock.On call
func (*MockClient_Expecter) SubResource ¶
func (_e *MockClient_Expecter) SubResource(subResource interface{}) *MockClient_SubResource_Call
SubResource is a helper method to define mock.On call
- subResource string
func (*MockClient_Expecter) Update ¶
func (_e *MockClient_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *MockClient_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.UpdateOption
type MockClient_Get_Call ¶
MockClient_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockClient_Get_Call) Return ¶
func (_c *MockClient_Get_Call) Return(_a0 error) *MockClient_Get_Call
func (*MockClient_Get_Call) Run ¶
func (_c *MockClient_Get_Call) Run(run func(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption)) *MockClient_Get_Call
func (*MockClient_Get_Call) RunAndReturn ¶
func (_c *MockClient_Get_Call) RunAndReturn(run func(context.Context, types.NamespacedName, client.Object, ...client.GetOption) error) *MockClient_Get_Call
type MockClient_GroupVersionKindFor_Call ¶
MockClient_GroupVersionKindFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GroupVersionKindFor'
func (*MockClient_GroupVersionKindFor_Call) Return ¶
func (_c *MockClient_GroupVersionKindFor_Call) Return(_a0 schema.GroupVersionKind, _a1 error) *MockClient_GroupVersionKindFor_Call
func (*MockClient_GroupVersionKindFor_Call) Run ¶
func (_c *MockClient_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *MockClient_GroupVersionKindFor_Call
func (*MockClient_GroupVersionKindFor_Call) RunAndReturn ¶
func (_c *MockClient_GroupVersionKindFor_Call) RunAndReturn(run func(runtime.Object) (schema.GroupVersionKind, error)) *MockClient_GroupVersionKindFor_Call
type MockClient_IsObjectNamespaced_Call ¶
MockClient_IsObjectNamespaced_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsObjectNamespaced'
func (*MockClient_IsObjectNamespaced_Call) Return ¶
func (_c *MockClient_IsObjectNamespaced_Call) Return(_a0 bool, _a1 error) *MockClient_IsObjectNamespaced_Call
func (*MockClient_IsObjectNamespaced_Call) Run ¶
func (_c *MockClient_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *MockClient_IsObjectNamespaced_Call
func (*MockClient_IsObjectNamespaced_Call) RunAndReturn ¶
func (_c *MockClient_IsObjectNamespaced_Call) RunAndReturn(run func(runtime.Object) (bool, error)) *MockClient_IsObjectNamespaced_Call
type MockClient_List_Call ¶
MockClient_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockClient_List_Call) Return ¶
func (_c *MockClient_List_Call) Return(_a0 error) *MockClient_List_Call
func (*MockClient_List_Call) Run ¶
func (_c *MockClient_List_Call) Run(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption)) *MockClient_List_Call
func (*MockClient_List_Call) RunAndReturn ¶
func (_c *MockClient_List_Call) RunAndReturn(run func(context.Context, client.ObjectList, ...client.ListOption) error) *MockClient_List_Call
type MockClient_Patch_Call ¶
MockClient_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*MockClient_Patch_Call) Return ¶
func (_c *MockClient_Patch_Call) Return(_a0 error) *MockClient_Patch_Call
func (*MockClient_Patch_Call) Run ¶
func (_c *MockClient_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption)) *MockClient_Patch_Call
func (*MockClient_Patch_Call) RunAndReturn ¶
func (_c *MockClient_Patch_Call) RunAndReturn(run func(context.Context, client.Object, client.Patch, ...client.PatchOption) error) *MockClient_Patch_Call
type MockClient_RESTMapper_Call ¶
MockClient_RESTMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RESTMapper'
func (*MockClient_RESTMapper_Call) Return ¶
func (_c *MockClient_RESTMapper_Call) Return(_a0 meta.RESTMapper) *MockClient_RESTMapper_Call
func (*MockClient_RESTMapper_Call) Run ¶
func (_c *MockClient_RESTMapper_Call) Run(run func()) *MockClient_RESTMapper_Call
func (*MockClient_RESTMapper_Call) RunAndReturn ¶
func (_c *MockClient_RESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *MockClient_RESTMapper_Call
type MockClient_Scheme_Call ¶
MockClient_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'
func (*MockClient_Scheme_Call) Return ¶
func (_c *MockClient_Scheme_Call) Return(_a0 *runtime.Scheme) *MockClient_Scheme_Call
func (*MockClient_Scheme_Call) Run ¶
func (_c *MockClient_Scheme_Call) Run(run func()) *MockClient_Scheme_Call
func (*MockClient_Scheme_Call) RunAndReturn ¶
func (_c *MockClient_Scheme_Call) RunAndReturn(run func() *runtime.Scheme) *MockClient_Scheme_Call
type MockClient_Status_Call ¶
MockClient_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*MockClient_Status_Call) Return ¶
func (_c *MockClient_Status_Call) Return(_a0 client.SubResourceWriter) *MockClient_Status_Call
func (*MockClient_Status_Call) Run ¶
func (_c *MockClient_Status_Call) Run(run func()) *MockClient_Status_Call
func (*MockClient_Status_Call) RunAndReturn ¶
func (_c *MockClient_Status_Call) RunAndReturn(run func() client.SubResourceWriter) *MockClient_Status_Call
type MockClient_SubResource_Call ¶
MockClient_SubResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubResource'
func (*MockClient_SubResource_Call) Return ¶
func (_c *MockClient_SubResource_Call) Return(_a0 client.SubResourceClient) *MockClient_SubResource_Call
func (*MockClient_SubResource_Call) Run ¶
func (_c *MockClient_SubResource_Call) Run(run func(subResource string)) *MockClient_SubResource_Call
func (*MockClient_SubResource_Call) RunAndReturn ¶
func (_c *MockClient_SubResource_Call) RunAndReturn(run func(string) client.SubResourceClient) *MockClient_SubResource_Call
type MockClient_Update_Call ¶
MockClient_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockClient_Update_Call) Return ¶
func (_c *MockClient_Update_Call) Return(_a0 error) *MockClient_Update_Call
func (*MockClient_Update_Call) Run ¶
func (_c *MockClient_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *MockClient_Update_Call
func (*MockClient_Update_Call) RunAndReturn ¶
func (_c *MockClient_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.UpdateOption) error) *MockClient_Update_Call