Documentation ¶
Index ¶
- type Client
- func (_m *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (_m *Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (_m *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) error
- func (_m *Client) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (_m *Client) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (_m *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_m *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *Client) RESTMapper() meta.RESTMapper
- func (_m *Client) Scheme() *runtime.Scheme
- func (_m *Client) Status() client.SubResourceWriter
- func (_m *Client) SubResource(subResource string) client.SubResourceClient
- func (_m *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type Client_Create_Call
- func (_c *Client_Create_Call) Return(_a0 error) *Client_Create_Call
- func (_c *Client_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *Client_Create_Call
- func (_c *Client_Create_Call) RunAndReturn(run func(context.Context, client.Object, ...client.CreateOption) error) *Client_Create_Call
- type Client_DeleteAllOf_Call
- type Client_Delete_Call
- func (_c *Client_Delete_Call) Return(_a0 error) *Client_Delete_Call
- func (_c *Client_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *Client_Delete_Call
- func (_c *Client_Delete_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteOption) error) *Client_Delete_Call
- type Client_Expecter
- func (_e *Client_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Create_Call
- func (_e *Client_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Delete_Call
- func (_e *Client_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *Client_DeleteAllOf_Call
- func (_e *Client_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *Client_Get_Call
- func (_e *Client_Expecter) GroupVersionKindFor(obj interface{}) *Client_GroupVersionKindFor_Call
- func (_e *Client_Expecter) IsObjectNamespaced(obj interface{}) *Client_IsObjectNamespaced_Call
- func (_e *Client_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *Client_List_Call
- func (_e *Client_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *Client_Patch_Call
- func (_e *Client_Expecter) RESTMapper() *Client_RESTMapper_Call
- func (_e *Client_Expecter) Scheme() *Client_Scheme_Call
- func (_e *Client_Expecter) Status() *Client_Status_Call
- func (_e *Client_Expecter) SubResource(subResource interface{}) *Client_SubResource_Call
- func (_e *Client_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Update_Call
- type Client_Get_Call
- type Client_GroupVersionKindFor_Call
- func (_c *Client_GroupVersionKindFor_Call) Return(_a0 schema.GroupVersionKind, _a1 error) *Client_GroupVersionKindFor_Call
- func (_c *Client_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *Client_GroupVersionKindFor_Call
- func (_c *Client_GroupVersionKindFor_Call) RunAndReturn(run func(runtime.Object) (schema.GroupVersionKind, error)) *Client_GroupVersionKindFor_Call
- type Client_IsObjectNamespaced_Call
- func (_c *Client_IsObjectNamespaced_Call) Return(_a0 bool, _a1 error) *Client_IsObjectNamespaced_Call
- func (_c *Client_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *Client_IsObjectNamespaced_Call
- func (_c *Client_IsObjectNamespaced_Call) RunAndReturn(run func(runtime.Object) (bool, error)) *Client_IsObjectNamespaced_Call
- type Client_List_Call
- type Client_Patch_Call
- type Client_RESTMapper_Call
- type Client_Scheme_Call
- type Client_Status_Call
- type Client_SubResource_Call
- func (_c *Client_SubResource_Call) Return(_a0 client.SubResourceClient) *Client_SubResource_Call
- func (_c *Client_SubResource_Call) Run(run func(subResource string)) *Client_SubResource_Call
- func (_c *Client_SubResource_Call) RunAndReturn(run func(string) client.SubResourceClient) *Client_SubResource_Call
- type Client_Update_Call
- func (_c *Client_Update_Call) Return(_a0 error) *Client_Update_Call
- func (_c *Client_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *Client_Update_Call
- func (_c *Client_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.UpdateOption) error) *Client_Update_Call
- type HttpClient
- type SubResourceClient
- func (_m *SubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_m *SubResourceClient) Get(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_m *SubResourceClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *SubResourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v1.16.0
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) DeleteAllOf ¶
func (_m *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
DeleteAllOf provides a mock function with given fields: ctx, obj, opts
func (*Client) EXPECT ¶ added in v1.20.0
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) Get ¶
func (_m *Client) 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 (*Client) GroupVersionKindFor ¶ added in v1.20.0
GroupVersionKindFor provides a mock function with given fields: obj
func (*Client) IsObjectNamespaced ¶ added in v1.20.0
IsObjectNamespaced provides a mock function with given fields: obj
func (*Client) List ¶
func (_m *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
func (*Client) Patch ¶
func (_m *Client) 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 (*Client) RESTMapper ¶
func (_m *Client) RESTMapper() meta.RESTMapper
RESTMapper provides a mock function with given fields:
func (*Client) Status ¶
func (_m *Client) Status() client.SubResourceWriter
Status provides a mock function with given fields. Overrides normal mock functionality (can't be asserted)
func (*Client) SubResource ¶ added in v1.16.0
func (_m *Client) SubResource(subResource string) client.SubResourceClient
SubResource provides a mock function with given fields: subResource. Overrides normal mock functionality (can't be asserted)
type Client_Create_Call ¶ added in v1.20.0
Client_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Client_Create_Call) Return ¶ added in v1.20.0
func (_c *Client_Create_Call) Return(_a0 error) *Client_Create_Call
func (*Client_Create_Call) Run ¶ added in v1.20.0
func (_c *Client_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *Client_Create_Call
func (*Client_Create_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_Create_Call) RunAndReturn(run func(context.Context, client.Object, ...client.CreateOption) error) *Client_Create_Call
type Client_DeleteAllOf_Call ¶ added in v1.20.0
Client_DeleteAllOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllOf'
func (*Client_DeleteAllOf_Call) Return ¶ added in v1.20.0
func (_c *Client_DeleteAllOf_Call) Return(_a0 error) *Client_DeleteAllOf_Call
func (*Client_DeleteAllOf_Call) Run ¶ added in v1.20.0
func (_c *Client_DeleteAllOf_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption)) *Client_DeleteAllOf_Call
func (*Client_DeleteAllOf_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_DeleteAllOf_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteAllOfOption) error) *Client_DeleteAllOf_Call
type Client_Delete_Call ¶ added in v1.20.0
Client_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Client_Delete_Call) Return ¶ added in v1.20.0
func (_c *Client_Delete_Call) Return(_a0 error) *Client_Delete_Call
func (*Client_Delete_Call) Run ¶ added in v1.20.0
func (_c *Client_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *Client_Delete_Call
func (*Client_Delete_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_Delete_Call) RunAndReturn(run func(context.Context, client.Object, ...client.DeleteOption) error) *Client_Delete_Call
type Client_Expecter ¶ added in v1.20.0
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) Create ¶ added in v1.20.0
func (_e *Client_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.CreateOption
func (*Client_Expecter) Delete ¶ added in v1.20.0
func (_e *Client_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteOption
func (*Client_Expecter) DeleteAllOf ¶ added in v1.20.0
func (_e *Client_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *Client_DeleteAllOf_Call
DeleteAllOf is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteAllOfOption
func (*Client_Expecter) Get ¶ added in v1.20.0
func (_e *Client_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *Client_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 (*Client_Expecter) GroupVersionKindFor ¶ added in v1.20.0
func (_e *Client_Expecter) GroupVersionKindFor(obj interface{}) *Client_GroupVersionKindFor_Call
GroupVersionKindFor is a helper method to define mock.On call
- obj runtime.Object
func (*Client_Expecter) IsObjectNamespaced ¶ added in v1.20.0
func (_e *Client_Expecter) IsObjectNamespaced(obj interface{}) *Client_IsObjectNamespaced_Call
IsObjectNamespaced is a helper method to define mock.On call
- obj runtime.Object
func (*Client_Expecter) List ¶ added in v1.20.0
func (_e *Client_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *Client_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- list client.ObjectList
- opts ...client.ListOption
func (*Client_Expecter) Patch ¶ added in v1.20.0
func (_e *Client_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *Client_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 (*Client_Expecter) RESTMapper ¶ added in v1.20.0
func (_e *Client_Expecter) RESTMapper() *Client_RESTMapper_Call
RESTMapper is a helper method to define mock.On call
func (*Client_Expecter) Scheme ¶ added in v1.20.0
func (_e *Client_Expecter) Scheme() *Client_Scheme_Call
Scheme is a helper method to define mock.On call
func (*Client_Expecter) Status ¶ added in v1.20.0
func (_e *Client_Expecter) Status() *Client_Status_Call
Status is a helper method to define mock.On call
func (*Client_Expecter) SubResource ¶ added in v1.20.0
func (_e *Client_Expecter) SubResource(subResource interface{}) *Client_SubResource_Call
SubResource is a helper method to define mock.On call
- subResource string
func (*Client_Expecter) Update ¶ added in v1.20.0
func (_e *Client_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.UpdateOption
type Client_Get_Call ¶ added in v1.20.0
Client_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Client_Get_Call) Return ¶ added in v1.20.0
func (_c *Client_Get_Call) Return(_a0 error) *Client_Get_Call
func (*Client_Get_Call) Run ¶ added in v1.20.0
func (_c *Client_Get_Call) Run(run func(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption)) *Client_Get_Call
func (*Client_Get_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_Get_Call) RunAndReturn(run func(context.Context, types.NamespacedName, client.Object, ...client.GetOption) error) *Client_Get_Call
type Client_GroupVersionKindFor_Call ¶ added in v1.20.0
Client_GroupVersionKindFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GroupVersionKindFor'
func (*Client_GroupVersionKindFor_Call) Return ¶ added in v1.20.0
func (_c *Client_GroupVersionKindFor_Call) Return(_a0 schema.GroupVersionKind, _a1 error) *Client_GroupVersionKindFor_Call
func (*Client_GroupVersionKindFor_Call) Run ¶ added in v1.20.0
func (_c *Client_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *Client_GroupVersionKindFor_Call
func (*Client_GroupVersionKindFor_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_GroupVersionKindFor_Call) RunAndReturn(run func(runtime.Object) (schema.GroupVersionKind, error)) *Client_GroupVersionKindFor_Call
type Client_IsObjectNamespaced_Call ¶ added in v1.20.0
Client_IsObjectNamespaced_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsObjectNamespaced'
func (*Client_IsObjectNamespaced_Call) Return ¶ added in v1.20.0
func (_c *Client_IsObjectNamespaced_Call) Return(_a0 bool, _a1 error) *Client_IsObjectNamespaced_Call
func (*Client_IsObjectNamespaced_Call) Run ¶ added in v1.20.0
func (_c *Client_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *Client_IsObjectNamespaced_Call
func (*Client_IsObjectNamespaced_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_IsObjectNamespaced_Call) RunAndReturn(run func(runtime.Object) (bool, error)) *Client_IsObjectNamespaced_Call
type Client_List_Call ¶ added in v1.20.0
Client_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Client_List_Call) Return ¶ added in v1.20.0
func (_c *Client_List_Call) Return(_a0 error) *Client_List_Call
func (*Client_List_Call) Run ¶ added in v1.20.0
func (_c *Client_List_Call) Run(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption)) *Client_List_Call
func (*Client_List_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_List_Call) RunAndReturn(run func(context.Context, client.ObjectList, ...client.ListOption) error) *Client_List_Call
type Client_Patch_Call ¶ added in v1.20.0
Client_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*Client_Patch_Call) Return ¶ added in v1.20.0
func (_c *Client_Patch_Call) Return(_a0 error) *Client_Patch_Call
func (*Client_Patch_Call) Run ¶ added in v1.20.0
func (_c *Client_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption)) *Client_Patch_Call
func (*Client_Patch_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_Patch_Call) RunAndReturn(run func(context.Context, client.Object, client.Patch, ...client.PatchOption) error) *Client_Patch_Call
type Client_RESTMapper_Call ¶ added in v1.20.0
Client_RESTMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RESTMapper'
func (*Client_RESTMapper_Call) Return ¶ added in v1.20.0
func (_c *Client_RESTMapper_Call) Return(_a0 meta.RESTMapper) *Client_RESTMapper_Call
func (*Client_RESTMapper_Call) Run ¶ added in v1.20.0
func (_c *Client_RESTMapper_Call) Run(run func()) *Client_RESTMapper_Call
func (*Client_RESTMapper_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_RESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *Client_RESTMapper_Call
type Client_Scheme_Call ¶ added in v1.20.0
Client_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'
func (*Client_Scheme_Call) Return ¶ added in v1.20.0
func (_c *Client_Scheme_Call) Return(_a0 *runtime.Scheme) *Client_Scheme_Call
func (*Client_Scheme_Call) Run ¶ added in v1.20.0
func (_c *Client_Scheme_Call) Run(run func()) *Client_Scheme_Call
func (*Client_Scheme_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_Scheme_Call) RunAndReturn(run func() *runtime.Scheme) *Client_Scheme_Call
type Client_Status_Call ¶ added in v1.20.0
Client_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*Client_Status_Call) Return ¶ added in v1.20.0
func (_c *Client_Status_Call) Return(_a0 client.SubResourceWriter) *Client_Status_Call
func (*Client_Status_Call) Run ¶ added in v1.20.0
func (_c *Client_Status_Call) Run(run func()) *Client_Status_Call
func (*Client_Status_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_Status_Call) RunAndReturn(run func() client.SubResourceWriter) *Client_Status_Call
type Client_SubResource_Call ¶ added in v1.20.0
Client_SubResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubResource'
func (*Client_SubResource_Call) Return ¶ added in v1.20.0
func (_c *Client_SubResource_Call) Return(_a0 client.SubResourceClient) *Client_SubResource_Call
func (*Client_SubResource_Call) Run ¶ added in v1.20.0
func (_c *Client_SubResource_Call) Run(run func(subResource string)) *Client_SubResource_Call
func (*Client_SubResource_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_SubResource_Call) RunAndReturn(run func(string) client.SubResourceClient) *Client_SubResource_Call
type Client_Update_Call ¶ added in v1.20.0
Client_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Client_Update_Call) Return ¶ added in v1.20.0
func (_c *Client_Update_Call) Return(_a0 error) *Client_Update_Call
func (*Client_Update_Call) Run ¶ added in v1.20.0
func (_c *Client_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *Client_Update_Call
func (*Client_Update_Call) RunAndReturn ¶ added in v1.20.0
func (_c *Client_Update_Call) RunAndReturn(run func(context.Context, client.Object, ...client.UpdateOption) error) *Client_Update_Call
type HttpClient ¶
HttpClient is an autogenerated mock type for the HttpClient type
func NewHttpClient ¶ added in v1.16.0
func NewHttpClient(t mockConstructorTestingTNewHttpClient) *HttpClient
NewHttpClient creates a new instance of HttpClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type SubResourceClient ¶ added in v1.16.0
SubResourceClient is an autogenerated mock type for the SubResourceClient type
func NewSubResourceClient ¶ added in v1.16.0
func NewSubResourceClient(t mockConstructorTestingTNewSubResourceClient) *SubResourceClient
NewSubResourceClient creates a new instance of SubResourceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SubResourceClient) Create ¶ added in v1.16.0
func (_m *SubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error
Create provides a mock function with given fields: ctx, obj, subResource, opts
func (*SubResourceClient) Get ¶ added in v1.16.0
func (_m *SubResourceClient) Get(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceGetOption) error
Get provides a mock function with given fields: ctx, obj, subResource, opts
func (*SubResourceClient) Patch ¶ added in v1.16.0
func (_m *SubResourceClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
Patch provides a mock function with given fields: ctx, obj, patch, opts
func (*SubResourceClient) Update ¶ added in v1.16.0
func (_m *SubResourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Update provides a mock function with given fields: ctx, obj, opts