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) 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 MockReconciler
- type MockSubResourceWriter
- func (_m *MockSubResourceWriter) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_m *MockSubResourceWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *MockSubResourceWriter) 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 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) 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 no fields
func (*MockClient) Scheme ¶
func (_m *MockClient) Scheme() *runtime.Scheme
Scheme provides a mock function with no fields
func (*MockClient) Status ¶
func (_m *MockClient) Status() client.SubResourceWriter
Status provides a mock function with no 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 MockReconciler ¶
MockReconciler is an autogenerated mock type for the Reconciler type
func NewMockReconciler ¶
func NewMockReconciler(t interface {
mock.TestingT
Cleanup(func())
}) *MockReconciler
NewMockReconciler creates a new instance of MockReconciler. 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 (*MockReconciler) EnsureCreated ¶
func (_m *MockReconciler) EnsureCreated(_a0 context.Context, _a1 lifecycle.RuntimeObject) (reconcile.Result, lifecycle.ReconcileResult, error)
EnsureCreated provides a mock function with given fields: _a0, _a1
func (*MockReconciler) EnsureDeleted ¶
func (_m *MockReconciler) EnsureDeleted(_a0 context.Context, _a1 lifecycle.RuntimeObject) (reconcile.Result, lifecycle.ReconcileResult, error)
EnsureDeleted provides a mock function with given fields: _a0, _a1
type MockSubResourceWriter ¶
MockSubResourceWriter is an autogenerated mock type for the SubResourceWriter type
func NewMockSubResourceWriter ¶
func NewMockSubResourceWriter(t interface {
mock.TestingT
Cleanup(func())
}) *MockSubResourceWriter
NewMockSubResourceWriter creates a new instance of MockSubResourceWriter. 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 (*MockSubResourceWriter) Create ¶
func (_m *MockSubResourceWriter) 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 (*MockSubResourceWriter) Patch ¶
func (_m *MockSubResourceWriter) 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 (*MockSubResourceWriter) Update ¶
func (_m *MockSubResourceWriter) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Update provides a mock function with given fields: ctx, obj, opts