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) 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 StatusWriter
- type SubResourceWriter
- func (_m *SubResourceWriter) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_m *SubResourceWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *SubResourceWriter) 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 ¶
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. The first argument is typically a *testing.T value.
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) GroupVersionKindFor ¶
GroupVersionKindFor provides a mock function with given fields: obj
func (*Client) IsObjectNamespaced ¶
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:
func (*Client) SubResource ¶
func (_m *Client) SubResource(subResource string) client.SubResourceClient
SubResource provides a mock function with given fields: subResource
type StatusWriter ¶
StatusWriter is an autogenerated mock type for the StatusWriter type
func NewStatusWriter ¶
func NewStatusWriter(t mockConstructorTestingTNewStatusWriter) *StatusWriter
NewStatusWriter creates a new instance of StatusWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StatusWriter) Patch ¶
func (_m *StatusWriter) 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 (*StatusWriter) Update ¶
func (_m *StatusWriter) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Update provides a mock function with given fields: ctx, obj, opts
type SubResourceWriter ¶
SubResourceWriter is an autogenerated mock type for the SubResourceWriter type
func NewSubResourceWriter ¶
func NewSubResourceWriter(t interface { mock.TestingT Cleanup(func()) }) *SubResourceWriter
NewSubResourceWriter creates a new instance of SubResourceWriter. 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 (*SubResourceWriter) Create ¶
func (_m *SubResourceWriter) 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 (*SubResourceWriter) Patch ¶
func (_m *SubResourceWriter) 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 (*SubResourceWriter) Update ¶
func (_m *SubResourceWriter) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Update provides a mock function with given fields: ctx, obj, opts