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) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) 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 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) 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) 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 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