Documentation ¶
Overview ¶
Package mock_dynamic is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockInterface
- type MockInterfaceMockRecorder
- type MockNamespaceController
- func (m *MockNamespaceController) AddGenericHandler(arg0 context.Context, arg1 string, arg2 generic.Handler)
- func (m *MockNamespaceController) AddGenericRemoveHandler(arg0 context.Context, arg1 string, arg2 generic.Handler)
- func (m *MockNamespaceController) Cache() v1.NamespaceCache
- func (m *MockNamespaceController) Create(arg0 *v10.Namespace) (*v10.Namespace, error)
- func (m *MockNamespaceController) Delete(arg0 string, arg1 *v11.DeleteOptions) error
- func (m *MockNamespaceController) EXPECT() *MockNamespaceControllerMockRecorder
- func (m *MockNamespaceController) Enqueue(arg0 string)
- func (m *MockNamespaceController) EnqueueAfter(arg0 string, arg1 time.Duration)
- func (m *MockNamespaceController) Get(arg0 string, arg1 v11.GetOptions) (*v10.Namespace, error)
- func (m *MockNamespaceController) GroupVersionKind() schema.GroupVersionKind
- func (m *MockNamespaceController) Informer() cache.SharedIndexInformer
- func (m *MockNamespaceController) List(arg0 v11.ListOptions) (*v10.NamespaceList, error)
- func (m *MockNamespaceController) OnChange(arg0 context.Context, arg1 string, arg2 v1.NamespaceHandler)
- func (m *MockNamespaceController) OnRemove(arg0 context.Context, arg1 string, arg2 v1.NamespaceHandler)
- func (m *MockNamespaceController) Patch(arg0 string, arg1 types.PatchType, arg2 []byte, arg3 ...string) (*v10.Namespace, error)
- func (m *MockNamespaceController) Update(arg0 *v10.Namespace) (*v10.Namespace, error)
- func (m *MockNamespaceController) UpdateStatus(arg0 *v10.Namespace) (*v10.Namespace, error)
- func (m *MockNamespaceController) Updater() generic.Updater
- func (m *MockNamespaceController) Watch(arg0 v11.ListOptions) (watch.Interface, error)
- type MockNamespaceControllerMockRecorder
- func (mr *MockNamespaceControllerMockRecorder) AddGenericHandler(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) AddGenericRemoveHandler(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) Cache() *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) Enqueue(arg0 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) EnqueueAfter(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) GroupVersionKind() *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) Informer() *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) OnChange(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) OnRemove(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) Update(arg0 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) UpdateStatus(arg0 interface{}) *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) Updater() *gomock.Call
- func (mr *MockNamespaceControllerMockRecorder) Watch(arg0 interface{}) *gomock.Call
- type MockNamespaceableResourceInterface
- func (m *MockNamespaceableResourceInterface) Create(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, ...) (*unstructured.Unstructured, error)
- func (m *MockNamespaceableResourceInterface) Delete(ctx context.Context, name string, options v1.DeleteOptions, ...) error
- func (m *MockNamespaceableResourceInterface) DeleteCollection(ctx context.Context, options v1.DeleteOptions, listOptions v1.ListOptions) error
- func (m *MockNamespaceableResourceInterface) EXPECT() *MockNamespaceableResourceInterfaceMockRecorder
- func (m *MockNamespaceableResourceInterface) Get(ctx context.Context, name string, options v1.GetOptions, ...) (*unstructured.Unstructured, error)
- func (m *MockNamespaceableResourceInterface) List(ctx context.Context, opts v1.ListOptions) (*unstructured.UnstructuredList, error)
- func (m *MockNamespaceableResourceInterface) Namespace(arg0 string) dynamic.ResourceInterface
- func (m *MockNamespaceableResourceInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*unstructured.Unstructured, error)
- func (m *MockNamespaceableResourceInterface) Update(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, ...) (*unstructured.Unstructured, error)
- func (m *MockNamespaceableResourceInterface) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions) (*unstructured.Unstructured, error)
- func (m *MockNamespaceableResourceInterface) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type MockNamespaceableResourceInterfaceMockRecorder
- func (mr *MockNamespaceableResourceInterfaceMockRecorder) Create(ctx, obj, options interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockNamespaceableResourceInterfaceMockRecorder) Delete(ctx, name, options interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockNamespaceableResourceInterfaceMockRecorder) DeleteCollection(ctx, options, listOptions interface{}) *gomock.Call
- func (mr *MockNamespaceableResourceInterfaceMockRecorder) Get(ctx, name, options interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockNamespaceableResourceInterfaceMockRecorder) List(ctx, opts interface{}) *gomock.Call
- func (mr *MockNamespaceableResourceInterfaceMockRecorder) Namespace(arg0 interface{}) *gomock.Call
- func (mr *MockNamespaceableResourceInterfaceMockRecorder) Patch(ctx, name, pt, data, options interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockNamespaceableResourceInterfaceMockRecorder) Update(ctx, obj, options interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockNamespaceableResourceInterfaceMockRecorder) UpdateStatus(ctx, obj, options interface{}) *gomock.Call
- func (mr *MockNamespaceableResourceInterfaceMockRecorder) Watch(ctx, opts interface{}) *gomock.Call
- type MockResourceInterface
- func (m *MockResourceInterface) Create(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, ...) (*unstructured.Unstructured, error)
- func (m *MockResourceInterface) Delete(ctx context.Context, name string, options v1.DeleteOptions, ...) error
- func (m *MockResourceInterface) DeleteCollection(ctx context.Context, options v1.DeleteOptions, listOptions v1.ListOptions) error
- func (m *MockResourceInterface) EXPECT() *MockResourceInterfaceMockRecorder
- func (m *MockResourceInterface) Get(ctx context.Context, name string, options v1.GetOptions, ...) (*unstructured.Unstructured, error)
- func (m *MockResourceInterface) List(ctx context.Context, opts v1.ListOptions) (*unstructured.UnstructuredList, error)
- func (m *MockResourceInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*unstructured.Unstructured, error)
- func (m *MockResourceInterface) Update(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, ...) (*unstructured.Unstructured, error)
- func (m *MockResourceInterface) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions) (*unstructured.Unstructured, error)
- func (m *MockResourceInterface) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type MockResourceInterfaceMockRecorder
- func (mr *MockResourceInterfaceMockRecorder) Create(ctx, obj, options interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockResourceInterfaceMockRecorder) Delete(ctx, name, options interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockResourceInterfaceMockRecorder) DeleteCollection(ctx, options, listOptions interface{}) *gomock.Call
- func (mr *MockResourceInterfaceMockRecorder) Get(ctx, name, options interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockResourceInterfaceMockRecorder) List(ctx, opts interface{}) *gomock.Call
- func (mr *MockResourceInterfaceMockRecorder) Patch(ctx, name, pt, data, options interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockResourceInterfaceMockRecorder) Update(ctx, obj, options interface{}, subresources ...interface{}) *gomock.Call
- func (mr *MockResourceInterfaceMockRecorder) UpdateStatus(ctx, obj, options interface{}) *gomock.Call
- func (mr *MockResourceInterfaceMockRecorder) Watch(ctx, opts interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) Resource ¶
func (m *MockInterface) Resource(resource schema.GroupVersionResource) dynamic.NamespaceableResourceInterface
Resource mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) Resource ¶
func (mr *MockInterfaceMockRecorder) Resource(resource interface{}) *gomock.Call
Resource indicates an expected call of Resource.
type MockNamespaceController ¶
type MockNamespaceController struct {
// contains filtered or unexported fields
}
MockNamespaceController is a mock of NamespaceController interface.
func NewMockNamespaceController ¶
func NewMockNamespaceController(ctrl *gomock.Controller) *MockNamespaceController
NewMockNamespaceController creates a new mock instance.
func (*MockNamespaceController) AddGenericHandler ¶
func (m *MockNamespaceController) AddGenericHandler(arg0 context.Context, arg1 string, arg2 generic.Handler)
AddGenericHandler mocks base method.
func (*MockNamespaceController) AddGenericRemoveHandler ¶
func (m *MockNamespaceController) AddGenericRemoveHandler(arg0 context.Context, arg1 string, arg2 generic.Handler)
AddGenericRemoveHandler mocks base method.
func (*MockNamespaceController) Cache ¶
func (m *MockNamespaceController) Cache() v1.NamespaceCache
Cache mocks base method.
func (*MockNamespaceController) Delete ¶
func (m *MockNamespaceController) Delete(arg0 string, arg1 *v11.DeleteOptions) error
Delete mocks base method.
func (*MockNamespaceController) EXPECT ¶
func (m *MockNamespaceController) EXPECT() *MockNamespaceControllerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNamespaceController) Enqueue ¶
func (m *MockNamespaceController) Enqueue(arg0 string)
Enqueue mocks base method.
func (*MockNamespaceController) EnqueueAfter ¶
func (m *MockNamespaceController) EnqueueAfter(arg0 string, arg1 time.Duration)
EnqueueAfter mocks base method.
func (*MockNamespaceController) Get ¶
func (m *MockNamespaceController) Get(arg0 string, arg1 v11.GetOptions) (*v10.Namespace, error)
Get mocks base method.
func (*MockNamespaceController) GroupVersionKind ¶
func (m *MockNamespaceController) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind mocks base method.
func (*MockNamespaceController) Informer ¶
func (m *MockNamespaceController) Informer() cache.SharedIndexInformer
Informer mocks base method.
func (*MockNamespaceController) List ¶
func (m *MockNamespaceController) List(arg0 v11.ListOptions) (*v10.NamespaceList, error)
List mocks base method.
func (*MockNamespaceController) OnChange ¶
func (m *MockNamespaceController) OnChange(arg0 context.Context, arg1 string, arg2 v1.NamespaceHandler)
OnChange mocks base method.
func (*MockNamespaceController) OnRemove ¶
func (m *MockNamespaceController) OnRemove(arg0 context.Context, arg1 string, arg2 v1.NamespaceHandler)
OnRemove mocks base method.
func (*MockNamespaceController) Patch ¶
func (m *MockNamespaceController) Patch(arg0 string, arg1 types.PatchType, arg2 []byte, arg3 ...string) (*v10.Namespace, error)
Patch mocks base method.
func (*MockNamespaceController) UpdateStatus ¶
UpdateStatus mocks base method.
func (*MockNamespaceController) Updater ¶
func (m *MockNamespaceController) Updater() generic.Updater
Updater mocks base method.
func (*MockNamespaceController) Watch ¶
func (m *MockNamespaceController) Watch(arg0 v11.ListOptions) (watch.Interface, error)
Watch mocks base method.
type MockNamespaceControllerMockRecorder ¶
type MockNamespaceControllerMockRecorder struct {
// contains filtered or unexported fields
}
MockNamespaceControllerMockRecorder is the mock recorder for MockNamespaceController.
func (*MockNamespaceControllerMockRecorder) AddGenericHandler ¶
func (mr *MockNamespaceControllerMockRecorder) AddGenericHandler(arg0, arg1, arg2 interface{}) *gomock.Call
AddGenericHandler indicates an expected call of AddGenericHandler.
func (*MockNamespaceControllerMockRecorder) AddGenericRemoveHandler ¶
func (mr *MockNamespaceControllerMockRecorder) AddGenericRemoveHandler(arg0, arg1, arg2 interface{}) *gomock.Call
AddGenericRemoveHandler indicates an expected call of AddGenericRemoveHandler.
func (*MockNamespaceControllerMockRecorder) Cache ¶
func (mr *MockNamespaceControllerMockRecorder) Cache() *gomock.Call
Cache indicates an expected call of Cache.
func (*MockNamespaceControllerMockRecorder) Create ¶
func (mr *MockNamespaceControllerMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockNamespaceControllerMockRecorder) Delete ¶
func (mr *MockNamespaceControllerMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockNamespaceControllerMockRecorder) Enqueue ¶
func (mr *MockNamespaceControllerMockRecorder) Enqueue(arg0 interface{}) *gomock.Call
Enqueue indicates an expected call of Enqueue.
func (*MockNamespaceControllerMockRecorder) EnqueueAfter ¶
func (mr *MockNamespaceControllerMockRecorder) EnqueueAfter(arg0, arg1 interface{}) *gomock.Call
EnqueueAfter indicates an expected call of EnqueueAfter.
func (*MockNamespaceControllerMockRecorder) Get ¶
func (mr *MockNamespaceControllerMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockNamespaceControllerMockRecorder) GroupVersionKind ¶
func (mr *MockNamespaceControllerMockRecorder) GroupVersionKind() *gomock.Call
GroupVersionKind indicates an expected call of GroupVersionKind.
func (*MockNamespaceControllerMockRecorder) Informer ¶
func (mr *MockNamespaceControllerMockRecorder) Informer() *gomock.Call
Informer indicates an expected call of Informer.
func (*MockNamespaceControllerMockRecorder) List ¶
func (mr *MockNamespaceControllerMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockNamespaceControllerMockRecorder) OnChange ¶
func (mr *MockNamespaceControllerMockRecorder) OnChange(arg0, arg1, arg2 interface{}) *gomock.Call
OnChange indicates an expected call of OnChange.
func (*MockNamespaceControllerMockRecorder) OnRemove ¶
func (mr *MockNamespaceControllerMockRecorder) OnRemove(arg0, arg1, arg2 interface{}) *gomock.Call
OnRemove indicates an expected call of OnRemove.
func (*MockNamespaceControllerMockRecorder) Patch ¶
func (mr *MockNamespaceControllerMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockNamespaceControllerMockRecorder) Update ¶
func (mr *MockNamespaceControllerMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockNamespaceControllerMockRecorder) UpdateStatus ¶
func (mr *MockNamespaceControllerMockRecorder) UpdateStatus(arg0 interface{}) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
func (*MockNamespaceControllerMockRecorder) Updater ¶
func (mr *MockNamespaceControllerMockRecorder) Updater() *gomock.Call
Updater indicates an expected call of Updater.
func (*MockNamespaceControllerMockRecorder) Watch ¶
func (mr *MockNamespaceControllerMockRecorder) Watch(arg0 interface{}) *gomock.Call
Watch indicates an expected call of Watch.
type MockNamespaceableResourceInterface ¶
type MockNamespaceableResourceInterface struct {
// contains filtered or unexported fields
}
MockNamespaceableResourceInterface is a mock of NamespaceableResourceInterface interface.
func NewMockNamespaceableResourceInterface ¶
func NewMockNamespaceableResourceInterface(ctrl *gomock.Controller) *MockNamespaceableResourceInterface
NewMockNamespaceableResourceInterface creates a new mock instance.
func (*MockNamespaceableResourceInterface) Create ¶
func (m *MockNamespaceableResourceInterface) Create(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
Create mocks base method.
func (*MockNamespaceableResourceInterface) Delete ¶
func (m *MockNamespaceableResourceInterface) Delete(ctx context.Context, name string, options v1.DeleteOptions, subresources ...string) error
Delete mocks base method.
func (*MockNamespaceableResourceInterface) DeleteCollection ¶
func (m *MockNamespaceableResourceInterface) DeleteCollection(ctx context.Context, options v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection mocks base method.
func (*MockNamespaceableResourceInterface) EXPECT ¶
func (m *MockNamespaceableResourceInterface) EXPECT() *MockNamespaceableResourceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNamespaceableResourceInterface) Get ¶
func (m *MockNamespaceableResourceInterface) Get(ctx context.Context, name string, options v1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
Get mocks base method.
func (*MockNamespaceableResourceInterface) List ¶
func (m *MockNamespaceableResourceInterface) List(ctx context.Context, opts v1.ListOptions) (*unstructured.UnstructuredList, error)
List mocks base method.
func (*MockNamespaceableResourceInterface) Namespace ¶
func (m *MockNamespaceableResourceInterface) Namespace(arg0 string) dynamic.ResourceInterface
Namespace mocks base method.
func (*MockNamespaceableResourceInterface) Patch ¶
func (m *MockNamespaceableResourceInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, options v1.PatchOptions, subresources ...string) (*unstructured.Unstructured, error)
Patch mocks base method.
func (*MockNamespaceableResourceInterface) Update ¶
func (m *MockNamespaceableResourceInterface) Update(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
Update mocks base method.
func (*MockNamespaceableResourceInterface) UpdateStatus ¶
func (m *MockNamespaceableResourceInterface) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions) (*unstructured.Unstructured, error)
UpdateStatus mocks base method.
func (*MockNamespaceableResourceInterface) Watch ¶
func (m *MockNamespaceableResourceInterface) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch mocks base method.
type MockNamespaceableResourceInterfaceMockRecorder ¶
type MockNamespaceableResourceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockNamespaceableResourceInterfaceMockRecorder is the mock recorder for MockNamespaceableResourceInterface.
func (*MockNamespaceableResourceInterfaceMockRecorder) Create ¶
func (mr *MockNamespaceableResourceInterfaceMockRecorder) Create(ctx, obj, options interface{}, subresources ...interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockNamespaceableResourceInterfaceMockRecorder) Delete ¶
func (mr *MockNamespaceableResourceInterfaceMockRecorder) Delete(ctx, name, options interface{}, subresources ...interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockNamespaceableResourceInterfaceMockRecorder) DeleteCollection ¶
func (mr *MockNamespaceableResourceInterfaceMockRecorder) DeleteCollection(ctx, options, listOptions interface{}) *gomock.Call
DeleteCollection indicates an expected call of DeleteCollection.
func (*MockNamespaceableResourceInterfaceMockRecorder) Get ¶
func (mr *MockNamespaceableResourceInterfaceMockRecorder) Get(ctx, name, options interface{}, subresources ...interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockNamespaceableResourceInterfaceMockRecorder) List ¶
func (mr *MockNamespaceableResourceInterfaceMockRecorder) List(ctx, opts interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockNamespaceableResourceInterfaceMockRecorder) Namespace ¶
func (mr *MockNamespaceableResourceInterfaceMockRecorder) Namespace(arg0 interface{}) *gomock.Call
Namespace indicates an expected call of Namespace.
func (*MockNamespaceableResourceInterfaceMockRecorder) Patch ¶
func (mr *MockNamespaceableResourceInterfaceMockRecorder) Patch(ctx, name, pt, data, options interface{}, subresources ...interface{}) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockNamespaceableResourceInterfaceMockRecorder) Update ¶
func (mr *MockNamespaceableResourceInterfaceMockRecorder) Update(ctx, obj, options interface{}, subresources ...interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockNamespaceableResourceInterfaceMockRecorder) UpdateStatus ¶
func (mr *MockNamespaceableResourceInterfaceMockRecorder) UpdateStatus(ctx, obj, options interface{}) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
func (*MockNamespaceableResourceInterfaceMockRecorder) Watch ¶
func (mr *MockNamespaceableResourceInterfaceMockRecorder) Watch(ctx, opts interface{}) *gomock.Call
Watch indicates an expected call of Watch.
type MockResourceInterface ¶
type MockResourceInterface struct {
// contains filtered or unexported fields
}
MockResourceInterface is a mock of ResourceInterface interface.
func NewMockResourceInterface ¶
func NewMockResourceInterface(ctrl *gomock.Controller) *MockResourceInterface
NewMockResourceInterface creates a new mock instance.
func (*MockResourceInterface) Create ¶
func (m *MockResourceInterface) Create(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
Create mocks base method.
func (*MockResourceInterface) Delete ¶
func (m *MockResourceInterface) Delete(ctx context.Context, name string, options v1.DeleteOptions, subresources ...string) error
Delete mocks base method.
func (*MockResourceInterface) DeleteCollection ¶
func (m *MockResourceInterface) DeleteCollection(ctx context.Context, options v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection mocks base method.
func (*MockResourceInterface) EXPECT ¶
func (m *MockResourceInterface) EXPECT() *MockResourceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResourceInterface) Get ¶
func (m *MockResourceInterface) Get(ctx context.Context, name string, options v1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
Get mocks base method.
func (*MockResourceInterface) List ¶
func (m *MockResourceInterface) List(ctx context.Context, opts v1.ListOptions) (*unstructured.UnstructuredList, error)
List mocks base method.
func (*MockResourceInterface) Patch ¶
func (m *MockResourceInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, options v1.PatchOptions, subresources ...string) (*unstructured.Unstructured, error)
Patch mocks base method.
func (*MockResourceInterface) Update ¶
func (m *MockResourceInterface) Update(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
Update mocks base method.
func (*MockResourceInterface) UpdateStatus ¶
func (m *MockResourceInterface) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions) (*unstructured.Unstructured, error)
UpdateStatus mocks base method.
func (*MockResourceInterface) Watch ¶
func (m *MockResourceInterface) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch mocks base method.
type MockResourceInterfaceMockRecorder ¶
type MockResourceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockResourceInterfaceMockRecorder is the mock recorder for MockResourceInterface.
func (*MockResourceInterfaceMockRecorder) Create ¶
func (mr *MockResourceInterfaceMockRecorder) Create(ctx, obj, options interface{}, subresources ...interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockResourceInterfaceMockRecorder) Delete ¶
func (mr *MockResourceInterfaceMockRecorder) Delete(ctx, name, options interface{}, subresources ...interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockResourceInterfaceMockRecorder) DeleteCollection ¶
func (mr *MockResourceInterfaceMockRecorder) DeleteCollection(ctx, options, listOptions interface{}) *gomock.Call
DeleteCollection indicates an expected call of DeleteCollection.
func (*MockResourceInterfaceMockRecorder) Get ¶
func (mr *MockResourceInterfaceMockRecorder) Get(ctx, name, options interface{}, subresources ...interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockResourceInterfaceMockRecorder) List ¶
func (mr *MockResourceInterfaceMockRecorder) List(ctx, opts interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockResourceInterfaceMockRecorder) Patch ¶
func (mr *MockResourceInterfaceMockRecorder) Patch(ctx, name, pt, data, options interface{}, subresources ...interface{}) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockResourceInterfaceMockRecorder) Update ¶
func (mr *MockResourceInterfaceMockRecorder) Update(ctx, obj, options interface{}, subresources ...interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockResourceInterfaceMockRecorder) UpdateStatus ¶
func (mr *MockResourceInterfaceMockRecorder) UpdateStatus(ctx, obj, options interface{}) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
func (*MockResourceInterfaceMockRecorder) Watch ¶
func (mr *MockResourceInterfaceMockRecorder) Watch(ctx, opts interface{}) *gomock.Call
Watch indicates an expected call of Watch.