Documentation
¶
Index ¶
- type MockAPIPathResolverFunc
- type MockAPIPathResolverFunc_Execute_Call
- func (_c *MockAPIPathResolverFunc_Execute_Call) Return(_a0 string) *MockAPIPathResolverFunc_Execute_Call
- func (_c *MockAPIPathResolverFunc_Execute_Call) Run(run func(kind schema.GroupVersionKind)) *MockAPIPathResolverFunc_Execute_Call
- func (_c *MockAPIPathResolverFunc_Execute_Call) RunAndReturn(run func(schema.GroupVersionKind) string) *MockAPIPathResolverFunc_Execute_Call
- type MockAPIPathResolverFunc_Expecter
- type MockInterface
- type MockInterface_Expecter
- type MockInterface_Resource_Call
- func (_c *MockInterface_Resource_Call) Return(_a0 dynamic.NamespaceableResourceInterface) *MockInterface_Resource_Call
- func (_c *MockInterface_Resource_Call) Run(run func(resource schema.GroupVersionResource)) *MockInterface_Resource_Call
- func (_c *MockInterface_Resource_Call) RunAndReturn(run func(schema.GroupVersionResource) dynamic.NamespaceableResourceInterface) *MockInterface_Resource_Call
- type MockNamespaceableResourceInterface
- func (_m *MockNamespaceableResourceInterface) Apply(ctx context.Context, name string, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (_m *MockNamespaceableResourceInterface) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- 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() *MockNamespaceableResourceInterface_Expecter
- 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(_a0 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 MockNamespaceableResourceInterface_ApplyStatus_Call
- func (_c *MockNamespaceableResourceInterface_ApplyStatus_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_ApplyStatus_Call
- func (_c *MockNamespaceableResourceInterface_ApplyStatus_Call) Run(...) *MockNamespaceableResourceInterface_ApplyStatus_Call
- func (_c *MockNamespaceableResourceInterface_ApplyStatus_Call) RunAndReturn(...) *MockNamespaceableResourceInterface_ApplyStatus_Call
- type MockNamespaceableResourceInterface_Apply_Call
- func (_c *MockNamespaceableResourceInterface_Apply_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_Apply_Call
- func (_c *MockNamespaceableResourceInterface_Apply_Call) Run(...) *MockNamespaceableResourceInterface_Apply_Call
- func (_c *MockNamespaceableResourceInterface_Apply_Call) RunAndReturn(...) *MockNamespaceableResourceInterface_Apply_Call
- type MockNamespaceableResourceInterface_Create_Call
- func (_c *MockNamespaceableResourceInterface_Create_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_Create_Call
- func (_c *MockNamespaceableResourceInterface_Create_Call) Run(...) *MockNamespaceableResourceInterface_Create_Call
- func (_c *MockNamespaceableResourceInterface_Create_Call) RunAndReturn(...) *MockNamespaceableResourceInterface_Create_Call
- type MockNamespaceableResourceInterface_DeleteCollection_Call
- func (_c *MockNamespaceableResourceInterface_DeleteCollection_Call) Return(_a0 error) *MockNamespaceableResourceInterface_DeleteCollection_Call
- func (_c *MockNamespaceableResourceInterface_DeleteCollection_Call) Run(...) *MockNamespaceableResourceInterface_DeleteCollection_Call
- func (_c *MockNamespaceableResourceInterface_DeleteCollection_Call) RunAndReturn(run func(context.Context, v1.DeleteOptions, v1.ListOptions) error) *MockNamespaceableResourceInterface_DeleteCollection_Call
- type MockNamespaceableResourceInterface_Delete_Call
- func (_c *MockNamespaceableResourceInterface_Delete_Call) Return(_a0 error) *MockNamespaceableResourceInterface_Delete_Call
- func (_c *MockNamespaceableResourceInterface_Delete_Call) Run(run func(ctx context.Context, name string, options v1.DeleteOptions, ...)) *MockNamespaceableResourceInterface_Delete_Call
- func (_c *MockNamespaceableResourceInterface_Delete_Call) RunAndReturn(run func(context.Context, string, v1.DeleteOptions, ...string) error) *MockNamespaceableResourceInterface_Delete_Call
- type MockNamespaceableResourceInterface_Expecter
- func (_e *MockNamespaceableResourceInterface_Expecter) Apply(ctx interface{}, name interface{}, obj interface{}, options interface{}, ...) *MockNamespaceableResourceInterface_Apply_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) ApplyStatus(ctx interface{}, name interface{}, obj interface{}, options interface{}) *MockNamespaceableResourceInterface_ApplyStatus_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) Create(ctx interface{}, obj interface{}, options interface{}, ...) *MockNamespaceableResourceInterface_Create_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) Delete(ctx interface{}, name interface{}, options interface{}, ...) *MockNamespaceableResourceInterface_Delete_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) DeleteCollection(ctx interface{}, options interface{}, listOptions interface{}) *MockNamespaceableResourceInterface_DeleteCollection_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) Get(ctx interface{}, name interface{}, options interface{}, ...) *MockNamespaceableResourceInterface_Get_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) List(ctx interface{}, opts interface{}) *MockNamespaceableResourceInterface_List_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) Namespace(_a0 interface{}) *MockNamespaceableResourceInterface_Namespace_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) Patch(ctx interface{}, name interface{}, pt interface{}, data interface{}, ...) *MockNamespaceableResourceInterface_Patch_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) Update(ctx interface{}, obj interface{}, options interface{}, ...) *MockNamespaceableResourceInterface_Update_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) UpdateStatus(ctx interface{}, obj interface{}, options interface{}) *MockNamespaceableResourceInterface_UpdateStatus_Call
- func (_e *MockNamespaceableResourceInterface_Expecter) Watch(ctx interface{}, opts interface{}) *MockNamespaceableResourceInterface_Watch_Call
- type MockNamespaceableResourceInterface_Get_Call
- func (_c *MockNamespaceableResourceInterface_Get_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_Get_Call
- func (_c *MockNamespaceableResourceInterface_Get_Call) Run(run func(ctx context.Context, name string, options v1.GetOptions, ...)) *MockNamespaceableResourceInterface_Get_Call
- func (_c *MockNamespaceableResourceInterface_Get_Call) RunAndReturn(...) *MockNamespaceableResourceInterface_Get_Call
- type MockNamespaceableResourceInterface_List_Call
- func (_c *MockNamespaceableResourceInterface_List_Call) Return(_a0 *unstructured.UnstructuredList, _a1 error) *MockNamespaceableResourceInterface_List_Call
- func (_c *MockNamespaceableResourceInterface_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *MockNamespaceableResourceInterface_List_Call
- func (_c *MockNamespaceableResourceInterface_List_Call) RunAndReturn(...) *MockNamespaceableResourceInterface_List_Call
- type MockNamespaceableResourceInterface_Namespace_Call
- func (_c *MockNamespaceableResourceInterface_Namespace_Call) Return(_a0 dynamic.ResourceInterface) *MockNamespaceableResourceInterface_Namespace_Call
- func (_c *MockNamespaceableResourceInterface_Namespace_Call) Run(run func(_a0 string)) *MockNamespaceableResourceInterface_Namespace_Call
- func (_c *MockNamespaceableResourceInterface_Namespace_Call) RunAndReturn(run func(string) dynamic.ResourceInterface) *MockNamespaceableResourceInterface_Namespace_Call
- type MockNamespaceableResourceInterface_Patch_Call
- func (_c *MockNamespaceableResourceInterface_Patch_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_Patch_Call
- func (_c *MockNamespaceableResourceInterface_Patch_Call) Run(...) *MockNamespaceableResourceInterface_Patch_Call
- func (_c *MockNamespaceableResourceInterface_Patch_Call) RunAndReturn(...) *MockNamespaceableResourceInterface_Patch_Call
- type MockNamespaceableResourceInterface_UpdateStatus_Call
- func (_c *MockNamespaceableResourceInterface_UpdateStatus_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_UpdateStatus_Call
- func (_c *MockNamespaceableResourceInterface_UpdateStatus_Call) Run(...) *MockNamespaceableResourceInterface_UpdateStatus_Call
- func (_c *MockNamespaceableResourceInterface_UpdateStatus_Call) RunAndReturn(...) *MockNamespaceableResourceInterface_UpdateStatus_Call
- type MockNamespaceableResourceInterface_Update_Call
- func (_c *MockNamespaceableResourceInterface_Update_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_Update_Call
- func (_c *MockNamespaceableResourceInterface_Update_Call) Run(...) *MockNamespaceableResourceInterface_Update_Call
- func (_c *MockNamespaceableResourceInterface_Update_Call) RunAndReturn(...) *MockNamespaceableResourceInterface_Update_Call
- type MockNamespaceableResourceInterface_Watch_Call
- func (_c *MockNamespaceableResourceInterface_Watch_Call) Return(_a0 watch.Interface, _a1 error) *MockNamespaceableResourceInterface_Watch_Call
- func (_c *MockNamespaceableResourceInterface_Watch_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *MockNamespaceableResourceInterface_Watch_Call
- func (_c *MockNamespaceableResourceInterface_Watch_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (watch.Interface, error)) *MockNamespaceableResourceInterface_Watch_Call
- type MockResourceInterface
- func (_m *MockResourceInterface) Apply(ctx context.Context, name string, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (_m *MockResourceInterface) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- 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() *MockResourceInterface_Expecter
- 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 MockResourceInterface_ApplyStatus_Call
- func (_c *MockResourceInterface_ApplyStatus_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_ApplyStatus_Call
- func (_c *MockResourceInterface_ApplyStatus_Call) Run(...) *MockResourceInterface_ApplyStatus_Call
- func (_c *MockResourceInterface_ApplyStatus_Call) RunAndReturn(...) *MockResourceInterface_ApplyStatus_Call
- type MockResourceInterface_Apply_Call
- func (_c *MockResourceInterface_Apply_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_Apply_Call
- func (_c *MockResourceInterface_Apply_Call) Run(...) *MockResourceInterface_Apply_Call
- func (_c *MockResourceInterface_Apply_Call) RunAndReturn(...) *MockResourceInterface_Apply_Call
- type MockResourceInterface_Create_Call
- func (_c *MockResourceInterface_Create_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_Create_Call
- func (_c *MockResourceInterface_Create_Call) Run(...) *MockResourceInterface_Create_Call
- func (_c *MockResourceInterface_Create_Call) RunAndReturn(...) *MockResourceInterface_Create_Call
- type MockResourceInterface_DeleteCollection_Call
- func (_c *MockResourceInterface_DeleteCollection_Call) Return(_a0 error) *MockResourceInterface_DeleteCollection_Call
- func (_c *MockResourceInterface_DeleteCollection_Call) Run(...) *MockResourceInterface_DeleteCollection_Call
- func (_c *MockResourceInterface_DeleteCollection_Call) RunAndReturn(run func(context.Context, v1.DeleteOptions, v1.ListOptions) error) *MockResourceInterface_DeleteCollection_Call
- type MockResourceInterface_Delete_Call
- func (_c *MockResourceInterface_Delete_Call) Return(_a0 error) *MockResourceInterface_Delete_Call
- func (_c *MockResourceInterface_Delete_Call) Run(run func(ctx context.Context, name string, options v1.DeleteOptions, ...)) *MockResourceInterface_Delete_Call
- func (_c *MockResourceInterface_Delete_Call) RunAndReturn(run func(context.Context, string, v1.DeleteOptions, ...string) error) *MockResourceInterface_Delete_Call
- type MockResourceInterface_Expecter
- func (_e *MockResourceInterface_Expecter) Apply(ctx interface{}, name interface{}, obj interface{}, options interface{}, ...) *MockResourceInterface_Apply_Call
- func (_e *MockResourceInterface_Expecter) ApplyStatus(ctx interface{}, name interface{}, obj interface{}, options interface{}) *MockResourceInterface_ApplyStatus_Call
- func (_e *MockResourceInterface_Expecter) Create(ctx interface{}, obj interface{}, options interface{}, ...) *MockResourceInterface_Create_Call
- func (_e *MockResourceInterface_Expecter) Delete(ctx interface{}, name interface{}, options interface{}, ...) *MockResourceInterface_Delete_Call
- func (_e *MockResourceInterface_Expecter) DeleteCollection(ctx interface{}, options interface{}, listOptions interface{}) *MockResourceInterface_DeleteCollection_Call
- func (_e *MockResourceInterface_Expecter) Get(ctx interface{}, name interface{}, options interface{}, ...) *MockResourceInterface_Get_Call
- func (_e *MockResourceInterface_Expecter) List(ctx interface{}, opts interface{}) *MockResourceInterface_List_Call
- func (_e *MockResourceInterface_Expecter) Patch(ctx interface{}, name interface{}, pt interface{}, data interface{}, ...) *MockResourceInterface_Patch_Call
- func (_e *MockResourceInterface_Expecter) Update(ctx interface{}, obj interface{}, options interface{}, ...) *MockResourceInterface_Update_Call
- func (_e *MockResourceInterface_Expecter) UpdateStatus(ctx interface{}, obj interface{}, options interface{}) *MockResourceInterface_UpdateStatus_Call
- func (_e *MockResourceInterface_Expecter) Watch(ctx interface{}, opts interface{}) *MockResourceInterface_Watch_Call
- type MockResourceInterface_Get_Call
- func (_c *MockResourceInterface_Get_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_Get_Call
- func (_c *MockResourceInterface_Get_Call) Run(run func(ctx context.Context, name string, options v1.GetOptions, ...)) *MockResourceInterface_Get_Call
- func (_c *MockResourceInterface_Get_Call) RunAndReturn(...) *MockResourceInterface_Get_Call
- type MockResourceInterface_List_Call
- func (_c *MockResourceInterface_List_Call) Return(_a0 *unstructured.UnstructuredList, _a1 error) *MockResourceInterface_List_Call
- func (_c *MockResourceInterface_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *MockResourceInterface_List_Call
- func (_c *MockResourceInterface_List_Call) RunAndReturn(...) *MockResourceInterface_List_Call
- type MockResourceInterface_Patch_Call
- func (_c *MockResourceInterface_Patch_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_Patch_Call
- func (_c *MockResourceInterface_Patch_Call) Run(...) *MockResourceInterface_Patch_Call
- func (_c *MockResourceInterface_Patch_Call) RunAndReturn(...) *MockResourceInterface_Patch_Call
- type MockResourceInterface_UpdateStatus_Call
- func (_c *MockResourceInterface_UpdateStatus_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_UpdateStatus_Call
- func (_c *MockResourceInterface_UpdateStatus_Call) Run(...) *MockResourceInterface_UpdateStatus_Call
- func (_c *MockResourceInterface_UpdateStatus_Call) RunAndReturn(...) *MockResourceInterface_UpdateStatus_Call
- type MockResourceInterface_Update_Call
- func (_c *MockResourceInterface_Update_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_Update_Call
- func (_c *MockResourceInterface_Update_Call) Run(...) *MockResourceInterface_Update_Call
- func (_c *MockResourceInterface_Update_Call) RunAndReturn(...) *MockResourceInterface_Update_Call
- type MockResourceInterface_Watch_Call
- func (_c *MockResourceInterface_Watch_Call) Return(_a0 watch.Interface, _a1 error) *MockResourceInterface_Watch_Call
- func (_c *MockResourceInterface_Watch_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *MockResourceInterface_Watch_Call
- func (_c *MockResourceInterface_Watch_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (watch.Interface, error)) *MockResourceInterface_Watch_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPIPathResolverFunc ¶
MockAPIPathResolverFunc is an autogenerated mock type for the APIPathResolverFunc type
func NewMockAPIPathResolverFunc ¶
func NewMockAPIPathResolverFunc(t interface {
mock.TestingT
Cleanup(func())
}) *MockAPIPathResolverFunc
NewMockAPIPathResolverFunc creates a new instance of MockAPIPathResolverFunc. 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 (*MockAPIPathResolverFunc) EXPECT ¶
func (_m *MockAPIPathResolverFunc) EXPECT() *MockAPIPathResolverFunc_Expecter
func (*MockAPIPathResolverFunc) Execute ¶
func (_m *MockAPIPathResolverFunc) Execute(kind schema.GroupVersionKind) string
Execute provides a mock function with given fields: kind
type MockAPIPathResolverFunc_Execute_Call ¶
MockAPIPathResolverFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockAPIPathResolverFunc_Execute_Call) Return ¶
func (_c *MockAPIPathResolverFunc_Execute_Call) Return(_a0 string) *MockAPIPathResolverFunc_Execute_Call
func (*MockAPIPathResolverFunc_Execute_Call) Run ¶
func (_c *MockAPIPathResolverFunc_Execute_Call) Run(run func(kind schema.GroupVersionKind)) *MockAPIPathResolverFunc_Execute_Call
func (*MockAPIPathResolverFunc_Execute_Call) RunAndReturn ¶
func (_c *MockAPIPathResolverFunc_Execute_Call) RunAndReturn(run func(schema.GroupVersionKind) string) *MockAPIPathResolverFunc_Execute_Call
type MockAPIPathResolverFunc_Expecter ¶
type MockAPIPathResolverFunc_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAPIPathResolverFunc_Expecter) Execute ¶
func (_e *MockAPIPathResolverFunc_Expecter) Execute(kind interface{}) *MockAPIPathResolverFunc_Execute_Call
Execute is a helper method to define mock.On call
- kind schema.GroupVersionKind
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockInterface
NewMockInterface creates a new instance of MockInterface. 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 (*MockInterface) EXPECT ¶
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
func (*MockInterface) Resource ¶
func (_m *MockInterface) Resource(resource schema.GroupVersionResource) dynamic.NamespaceableResourceInterface
Resource provides a mock function with given fields: resource
type MockInterface_Expecter ¶
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) Resource ¶
func (_e *MockInterface_Expecter) Resource(resource interface{}) *MockInterface_Resource_Call
Resource is a helper method to define mock.On call
- resource schema.GroupVersionResource
type MockInterface_Resource_Call ¶
MockInterface_Resource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resource'
func (*MockInterface_Resource_Call) Return ¶
func (_c *MockInterface_Resource_Call) Return(_a0 dynamic.NamespaceableResourceInterface) *MockInterface_Resource_Call
func (*MockInterface_Resource_Call) Run ¶
func (_c *MockInterface_Resource_Call) Run(run func(resource schema.GroupVersionResource)) *MockInterface_Resource_Call
func (*MockInterface_Resource_Call) RunAndReturn ¶
func (_c *MockInterface_Resource_Call) RunAndReturn(run func(schema.GroupVersionResource) dynamic.NamespaceableResourceInterface) *MockInterface_Resource_Call
type MockNamespaceableResourceInterface ¶
MockNamespaceableResourceInterface is an autogenerated mock type for the NamespaceableResourceInterface type
func NewMockNamespaceableResourceInterface ¶
func NewMockNamespaceableResourceInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockNamespaceableResourceInterface
NewMockNamespaceableResourceInterface creates a new instance of MockNamespaceableResourceInterface. 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 (*MockNamespaceableResourceInterface) Apply ¶
func (_m *MockNamespaceableResourceInterface) Apply(ctx context.Context, name string, obj *unstructured.Unstructured, options v1.ApplyOptions, subresources ...string) (*unstructured.Unstructured, error)
Apply provides a mock function with given fields: ctx, name, obj, options, subresources
func (*MockNamespaceableResourceInterface) ApplyStatus ¶
func (_m *MockNamespaceableResourceInterface) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, options v1.ApplyOptions) (*unstructured.Unstructured, error)
ApplyStatus provides a mock function with given fields: ctx, name, obj, options
func (*MockNamespaceableResourceInterface) Create ¶
func (_m *MockNamespaceableResourceInterface) Create(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
Create provides a mock function with given fields: ctx, obj, options, subresources
func (*MockNamespaceableResourceInterface) Delete ¶
func (_m *MockNamespaceableResourceInterface) Delete(ctx context.Context, name string, options v1.DeleteOptions, subresources ...string) error
Delete provides a mock function with given fields: ctx, name, options, subresources
func (*MockNamespaceableResourceInterface) DeleteCollection ¶
func (_m *MockNamespaceableResourceInterface) DeleteCollection(ctx context.Context, options v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection provides a mock function with given fields: ctx, options, listOptions
func (*MockNamespaceableResourceInterface) EXPECT ¶
func (_m *MockNamespaceableResourceInterface) EXPECT() *MockNamespaceableResourceInterface_Expecter
func (*MockNamespaceableResourceInterface) Get ¶
func (_m *MockNamespaceableResourceInterface) Get(ctx context.Context, name string, options v1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
Get provides a mock function with given fields: ctx, name, options, subresources
func (*MockNamespaceableResourceInterface) List ¶
func (_m *MockNamespaceableResourceInterface) List(ctx context.Context, opts v1.ListOptions) (*unstructured.UnstructuredList, error)
List provides a mock function with given fields: ctx, opts
func (*MockNamespaceableResourceInterface) Namespace ¶
func (_m *MockNamespaceableResourceInterface) Namespace(_a0 string) dynamic.ResourceInterface
Namespace provides a mock function with given fields: _a0
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 provides a mock function with given fields: ctx, name, pt, data, options, subresources
func (*MockNamespaceableResourceInterface) Update ¶
func (_m *MockNamespaceableResourceInterface) Update(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
Update provides a mock function with given fields: ctx, obj, options, subresources
func (*MockNamespaceableResourceInterface) UpdateStatus ¶
func (_m *MockNamespaceableResourceInterface) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions) (*unstructured.Unstructured, error)
UpdateStatus provides a mock function with given fields: ctx, obj, options
func (*MockNamespaceableResourceInterface) Watch ¶
func (_m *MockNamespaceableResourceInterface) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch provides a mock function with given fields: ctx, opts
type MockNamespaceableResourceInterface_ApplyStatus_Call ¶
MockNamespaceableResourceInterface_ApplyStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyStatus'
func (*MockNamespaceableResourceInterface_ApplyStatus_Call) Return ¶
func (_c *MockNamespaceableResourceInterface_ApplyStatus_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_ApplyStatus_Call
func (*MockNamespaceableResourceInterface_ApplyStatus_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_ApplyStatus_Call) Run(run func(ctx context.Context, name string, obj *unstructured.Unstructured, options v1.ApplyOptions)) *MockNamespaceableResourceInterface_ApplyStatus_Call
func (*MockNamespaceableResourceInterface_ApplyStatus_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_ApplyStatus_Call) RunAndReturn(run func(context.Context, string, *unstructured.Unstructured, v1.ApplyOptions) (*unstructured.Unstructured, error)) *MockNamespaceableResourceInterface_ApplyStatus_Call
type MockNamespaceableResourceInterface_Apply_Call ¶
MockNamespaceableResourceInterface_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*MockNamespaceableResourceInterface_Apply_Call) Return ¶
func (_c *MockNamespaceableResourceInterface_Apply_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_Apply_Call
func (*MockNamespaceableResourceInterface_Apply_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_Apply_Call) Run(run func(ctx context.Context, name string, obj *unstructured.Unstructured, options v1.ApplyOptions, subresources ...string)) *MockNamespaceableResourceInterface_Apply_Call
func (*MockNamespaceableResourceInterface_Apply_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_Apply_Call) RunAndReturn(run func(context.Context, string, *unstructured.Unstructured, v1.ApplyOptions, ...string) (*unstructured.Unstructured, error)) *MockNamespaceableResourceInterface_Apply_Call
type MockNamespaceableResourceInterface_Create_Call ¶
MockNamespaceableResourceInterface_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockNamespaceableResourceInterface_Create_Call) Return ¶
func (_c *MockNamespaceableResourceInterface_Create_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_Create_Call
func (*MockNamespaceableResourceInterface_Create_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_Create_Call) Run(run func(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, subresources ...string)) *MockNamespaceableResourceInterface_Create_Call
func (*MockNamespaceableResourceInterface_Create_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_Create_Call) RunAndReturn(run func(context.Context, *unstructured.Unstructured, v1.CreateOptions, ...string) (*unstructured.Unstructured, error)) *MockNamespaceableResourceInterface_Create_Call
type MockNamespaceableResourceInterface_DeleteCollection_Call ¶
MockNamespaceableResourceInterface_DeleteCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCollection'
func (*MockNamespaceableResourceInterface_DeleteCollection_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_DeleteCollection_Call) Run(run func(ctx context.Context, options v1.DeleteOptions, listOptions v1.ListOptions)) *MockNamespaceableResourceInterface_DeleteCollection_Call
func (*MockNamespaceableResourceInterface_DeleteCollection_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_DeleteCollection_Call) RunAndReturn(run func(context.Context, v1.DeleteOptions, v1.ListOptions) error) *MockNamespaceableResourceInterface_DeleteCollection_Call
type MockNamespaceableResourceInterface_Delete_Call ¶
MockNamespaceableResourceInterface_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockNamespaceableResourceInterface_Delete_Call) Return ¶
func (_c *MockNamespaceableResourceInterface_Delete_Call) Return(_a0 error) *MockNamespaceableResourceInterface_Delete_Call
func (*MockNamespaceableResourceInterface_Delete_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_Delete_Call) Run(run func(ctx context.Context, name string, options v1.DeleteOptions, subresources ...string)) *MockNamespaceableResourceInterface_Delete_Call
func (*MockNamespaceableResourceInterface_Delete_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_Delete_Call) RunAndReturn(run func(context.Context, string, v1.DeleteOptions, ...string) error) *MockNamespaceableResourceInterface_Delete_Call
type MockNamespaceableResourceInterface_Expecter ¶
type MockNamespaceableResourceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockNamespaceableResourceInterface_Expecter) Apply ¶
func (_e *MockNamespaceableResourceInterface_Expecter) Apply(ctx interface{}, name interface{}, obj interface{}, options interface{}, subresources ...interface{}) *MockNamespaceableResourceInterface_Apply_Call
Apply is a helper method to define mock.On call
- ctx context.Context
- name string
- obj *unstructured.Unstructured
- options v1.ApplyOptions
- subresources ...string
func (*MockNamespaceableResourceInterface_Expecter) ApplyStatus ¶
func (_e *MockNamespaceableResourceInterface_Expecter) ApplyStatus(ctx interface{}, name interface{}, obj interface{}, options interface{}) *MockNamespaceableResourceInterface_ApplyStatus_Call
ApplyStatus is a helper method to define mock.On call
- ctx context.Context
- name string
- obj *unstructured.Unstructured
- options v1.ApplyOptions
func (*MockNamespaceableResourceInterface_Expecter) Create ¶
func (_e *MockNamespaceableResourceInterface_Expecter) Create(ctx interface{}, obj interface{}, options interface{}, subresources ...interface{}) *MockNamespaceableResourceInterface_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- obj *unstructured.Unstructured
- options v1.CreateOptions
- subresources ...string
func (*MockNamespaceableResourceInterface_Expecter) Delete ¶
func (_e *MockNamespaceableResourceInterface_Expecter) Delete(ctx interface{}, name interface{}, options interface{}, subresources ...interface{}) *MockNamespaceableResourceInterface_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
- options v1.DeleteOptions
- subresources ...string
func (*MockNamespaceableResourceInterface_Expecter) DeleteCollection ¶
func (_e *MockNamespaceableResourceInterface_Expecter) DeleteCollection(ctx interface{}, options interface{}, listOptions interface{}) *MockNamespaceableResourceInterface_DeleteCollection_Call
DeleteCollection is a helper method to define mock.On call
- ctx context.Context
- options v1.DeleteOptions
- listOptions v1.ListOptions
func (*MockNamespaceableResourceInterface_Expecter) Get ¶
func (_e *MockNamespaceableResourceInterface_Expecter) Get(ctx interface{}, name interface{}, options interface{}, subresources ...interface{}) *MockNamespaceableResourceInterface_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- name string
- options v1.GetOptions
- subresources ...string
func (*MockNamespaceableResourceInterface_Expecter) List ¶
func (_e *MockNamespaceableResourceInterface_Expecter) List(ctx interface{}, opts interface{}) *MockNamespaceableResourceInterface_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
func (*MockNamespaceableResourceInterface_Expecter) Namespace ¶
func (_e *MockNamespaceableResourceInterface_Expecter) Namespace(_a0 interface{}) *MockNamespaceableResourceInterface_Namespace_Call
Namespace is a helper method to define mock.On call
- _a0 string
func (*MockNamespaceableResourceInterface_Expecter) Patch ¶
func (_e *MockNamespaceableResourceInterface_Expecter) Patch(ctx interface{}, name interface{}, pt interface{}, data interface{}, options interface{}, subresources ...interface{}) *MockNamespaceableResourceInterface_Patch_Call
Patch is a helper method to define mock.On call
- ctx context.Context
- name string
- pt types.PatchType
- data []byte
- options v1.PatchOptions
- subresources ...string
func (*MockNamespaceableResourceInterface_Expecter) Update ¶
func (_e *MockNamespaceableResourceInterface_Expecter) Update(ctx interface{}, obj interface{}, options interface{}, subresources ...interface{}) *MockNamespaceableResourceInterface_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- obj *unstructured.Unstructured
- options v1.UpdateOptions
- subresources ...string
func (*MockNamespaceableResourceInterface_Expecter) UpdateStatus ¶
func (_e *MockNamespaceableResourceInterface_Expecter) UpdateStatus(ctx interface{}, obj interface{}, options interface{}) *MockNamespaceableResourceInterface_UpdateStatus_Call
UpdateStatus is a helper method to define mock.On call
- ctx context.Context
- obj *unstructured.Unstructured
- options v1.UpdateOptions
func (*MockNamespaceableResourceInterface_Expecter) Watch ¶
func (_e *MockNamespaceableResourceInterface_Expecter) Watch(ctx interface{}, opts interface{}) *MockNamespaceableResourceInterface_Watch_Call
Watch is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
type MockNamespaceableResourceInterface_Get_Call ¶
MockNamespaceableResourceInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockNamespaceableResourceInterface_Get_Call) Return ¶
func (_c *MockNamespaceableResourceInterface_Get_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_Get_Call
func (*MockNamespaceableResourceInterface_Get_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_Get_Call) Run(run func(ctx context.Context, name string, options v1.GetOptions, subresources ...string)) *MockNamespaceableResourceInterface_Get_Call
func (*MockNamespaceableResourceInterface_Get_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_Get_Call) RunAndReturn(run func(context.Context, string, v1.GetOptions, ...string) (*unstructured.Unstructured, error)) *MockNamespaceableResourceInterface_Get_Call
type MockNamespaceableResourceInterface_List_Call ¶
MockNamespaceableResourceInterface_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockNamespaceableResourceInterface_List_Call) Return ¶
func (_c *MockNamespaceableResourceInterface_List_Call) Return(_a0 *unstructured.UnstructuredList, _a1 error) *MockNamespaceableResourceInterface_List_Call
func (*MockNamespaceableResourceInterface_List_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *MockNamespaceableResourceInterface_List_Call
func (*MockNamespaceableResourceInterface_List_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_List_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (*unstructured.UnstructuredList, error)) *MockNamespaceableResourceInterface_List_Call
type MockNamespaceableResourceInterface_Namespace_Call ¶
MockNamespaceableResourceInterface_Namespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Namespace'
func (*MockNamespaceableResourceInterface_Namespace_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_Namespace_Call) Run(run func(_a0 string)) *MockNamespaceableResourceInterface_Namespace_Call
func (*MockNamespaceableResourceInterface_Namespace_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_Namespace_Call) RunAndReturn(run func(string) dynamic.ResourceInterface) *MockNamespaceableResourceInterface_Namespace_Call
type MockNamespaceableResourceInterface_Patch_Call ¶
MockNamespaceableResourceInterface_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*MockNamespaceableResourceInterface_Patch_Call) Return ¶
func (_c *MockNamespaceableResourceInterface_Patch_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_Patch_Call
func (*MockNamespaceableResourceInterface_Patch_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_Patch_Call) Run(run func(ctx context.Context, name string, pt types.PatchType, data []byte, options v1.PatchOptions, subresources ...string)) *MockNamespaceableResourceInterface_Patch_Call
func (*MockNamespaceableResourceInterface_Patch_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_Patch_Call) RunAndReturn(run func(context.Context, string, types.PatchType, []byte, v1.PatchOptions, ...string) (*unstructured.Unstructured, error)) *MockNamespaceableResourceInterface_Patch_Call
type MockNamespaceableResourceInterface_UpdateStatus_Call ¶
MockNamespaceableResourceInterface_UpdateStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatus'
func (*MockNamespaceableResourceInterface_UpdateStatus_Call) Return ¶
func (_c *MockNamespaceableResourceInterface_UpdateStatus_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_UpdateStatus_Call
func (*MockNamespaceableResourceInterface_UpdateStatus_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_UpdateStatus_Call) Run(run func(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions)) *MockNamespaceableResourceInterface_UpdateStatus_Call
func (*MockNamespaceableResourceInterface_UpdateStatus_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_UpdateStatus_Call) RunAndReturn(run func(context.Context, *unstructured.Unstructured, v1.UpdateOptions) (*unstructured.Unstructured, error)) *MockNamespaceableResourceInterface_UpdateStatus_Call
type MockNamespaceableResourceInterface_Update_Call ¶
MockNamespaceableResourceInterface_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockNamespaceableResourceInterface_Update_Call) Return ¶
func (_c *MockNamespaceableResourceInterface_Update_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockNamespaceableResourceInterface_Update_Call
func (*MockNamespaceableResourceInterface_Update_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_Update_Call) Run(run func(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, subresources ...string)) *MockNamespaceableResourceInterface_Update_Call
func (*MockNamespaceableResourceInterface_Update_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_Update_Call) RunAndReturn(run func(context.Context, *unstructured.Unstructured, v1.UpdateOptions, ...string) (*unstructured.Unstructured, error)) *MockNamespaceableResourceInterface_Update_Call
type MockNamespaceableResourceInterface_Watch_Call ¶
MockNamespaceableResourceInterface_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*MockNamespaceableResourceInterface_Watch_Call) Return ¶
func (_c *MockNamespaceableResourceInterface_Watch_Call) Return(_a0 watch.Interface, _a1 error) *MockNamespaceableResourceInterface_Watch_Call
func (*MockNamespaceableResourceInterface_Watch_Call) Run ¶
func (_c *MockNamespaceableResourceInterface_Watch_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *MockNamespaceableResourceInterface_Watch_Call
func (*MockNamespaceableResourceInterface_Watch_Call) RunAndReturn ¶
func (_c *MockNamespaceableResourceInterface_Watch_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (watch.Interface, error)) *MockNamespaceableResourceInterface_Watch_Call
type MockResourceInterface ¶
MockResourceInterface is an autogenerated mock type for the ResourceInterface type
func NewMockResourceInterface ¶
func NewMockResourceInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockResourceInterface
NewMockResourceInterface creates a new instance of MockResourceInterface. 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 (*MockResourceInterface) Apply ¶
func (_m *MockResourceInterface) Apply(ctx context.Context, name string, obj *unstructured.Unstructured, options v1.ApplyOptions, subresources ...string) (*unstructured.Unstructured, error)
Apply provides a mock function with given fields: ctx, name, obj, options, subresources
func (*MockResourceInterface) ApplyStatus ¶
func (_m *MockResourceInterface) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, options v1.ApplyOptions) (*unstructured.Unstructured, error)
ApplyStatus provides a mock function with given fields: ctx, name, obj, options
func (*MockResourceInterface) Create ¶
func (_m *MockResourceInterface) Create(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
Create provides a mock function with given fields: ctx, obj, options, subresources
func (*MockResourceInterface) Delete ¶
func (_m *MockResourceInterface) Delete(ctx context.Context, name string, options v1.DeleteOptions, subresources ...string) error
Delete provides a mock function with given fields: ctx, name, options, subresources
func (*MockResourceInterface) DeleteCollection ¶
func (_m *MockResourceInterface) DeleteCollection(ctx context.Context, options v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection provides a mock function with given fields: ctx, options, listOptions
func (*MockResourceInterface) EXPECT ¶
func (_m *MockResourceInterface) EXPECT() *MockResourceInterface_Expecter
func (*MockResourceInterface) Get ¶
func (_m *MockResourceInterface) Get(ctx context.Context, name string, options v1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
Get provides a mock function with given fields: ctx, name, options, subresources
func (*MockResourceInterface) List ¶
func (_m *MockResourceInterface) List(ctx context.Context, opts v1.ListOptions) (*unstructured.UnstructuredList, error)
List provides a mock function with given fields: ctx, opts
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 provides a mock function with given fields: ctx, name, pt, data, options, subresources
func (*MockResourceInterface) Update ¶
func (_m *MockResourceInterface) Update(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
Update provides a mock function with given fields: ctx, obj, options, subresources
func (*MockResourceInterface) UpdateStatus ¶
func (_m *MockResourceInterface) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions) (*unstructured.Unstructured, error)
UpdateStatus provides a mock function with given fields: ctx, obj, options
func (*MockResourceInterface) Watch ¶
func (_m *MockResourceInterface) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch provides a mock function with given fields: ctx, opts
type MockResourceInterface_ApplyStatus_Call ¶
MockResourceInterface_ApplyStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyStatus'
func (*MockResourceInterface_ApplyStatus_Call) Return ¶
func (_c *MockResourceInterface_ApplyStatus_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_ApplyStatus_Call
func (*MockResourceInterface_ApplyStatus_Call) Run ¶
func (_c *MockResourceInterface_ApplyStatus_Call) Run(run func(ctx context.Context, name string, obj *unstructured.Unstructured, options v1.ApplyOptions)) *MockResourceInterface_ApplyStatus_Call
func (*MockResourceInterface_ApplyStatus_Call) RunAndReturn ¶
func (_c *MockResourceInterface_ApplyStatus_Call) RunAndReturn(run func(context.Context, string, *unstructured.Unstructured, v1.ApplyOptions) (*unstructured.Unstructured, error)) *MockResourceInterface_ApplyStatus_Call
type MockResourceInterface_Apply_Call ¶
MockResourceInterface_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*MockResourceInterface_Apply_Call) Return ¶
func (_c *MockResourceInterface_Apply_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_Apply_Call
func (*MockResourceInterface_Apply_Call) Run ¶
func (_c *MockResourceInterface_Apply_Call) Run(run func(ctx context.Context, name string, obj *unstructured.Unstructured, options v1.ApplyOptions, subresources ...string)) *MockResourceInterface_Apply_Call
func (*MockResourceInterface_Apply_Call) RunAndReturn ¶
func (_c *MockResourceInterface_Apply_Call) RunAndReturn(run func(context.Context, string, *unstructured.Unstructured, v1.ApplyOptions, ...string) (*unstructured.Unstructured, error)) *MockResourceInterface_Apply_Call
type MockResourceInterface_Create_Call ¶
MockResourceInterface_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockResourceInterface_Create_Call) Return ¶
func (_c *MockResourceInterface_Create_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_Create_Call
func (*MockResourceInterface_Create_Call) Run ¶
func (_c *MockResourceInterface_Create_Call) Run(run func(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, subresources ...string)) *MockResourceInterface_Create_Call
func (*MockResourceInterface_Create_Call) RunAndReturn ¶
func (_c *MockResourceInterface_Create_Call) RunAndReturn(run func(context.Context, *unstructured.Unstructured, v1.CreateOptions, ...string) (*unstructured.Unstructured, error)) *MockResourceInterface_Create_Call
type MockResourceInterface_DeleteCollection_Call ¶
MockResourceInterface_DeleteCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCollection'
func (*MockResourceInterface_DeleteCollection_Call) Return ¶
func (_c *MockResourceInterface_DeleteCollection_Call) Return(_a0 error) *MockResourceInterface_DeleteCollection_Call
func (*MockResourceInterface_DeleteCollection_Call) Run ¶
func (_c *MockResourceInterface_DeleteCollection_Call) Run(run func(ctx context.Context, options v1.DeleteOptions, listOptions v1.ListOptions)) *MockResourceInterface_DeleteCollection_Call
func (*MockResourceInterface_DeleteCollection_Call) RunAndReturn ¶
func (_c *MockResourceInterface_DeleteCollection_Call) RunAndReturn(run func(context.Context, v1.DeleteOptions, v1.ListOptions) error) *MockResourceInterface_DeleteCollection_Call
type MockResourceInterface_Delete_Call ¶
MockResourceInterface_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockResourceInterface_Delete_Call) Return ¶
func (_c *MockResourceInterface_Delete_Call) Return(_a0 error) *MockResourceInterface_Delete_Call
func (*MockResourceInterface_Delete_Call) Run ¶
func (_c *MockResourceInterface_Delete_Call) Run(run func(ctx context.Context, name string, options v1.DeleteOptions, subresources ...string)) *MockResourceInterface_Delete_Call
func (*MockResourceInterface_Delete_Call) RunAndReturn ¶
func (_c *MockResourceInterface_Delete_Call) RunAndReturn(run func(context.Context, string, v1.DeleteOptions, ...string) error) *MockResourceInterface_Delete_Call
type MockResourceInterface_Expecter ¶
type MockResourceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockResourceInterface_Expecter) Apply ¶
func (_e *MockResourceInterface_Expecter) Apply(ctx interface{}, name interface{}, obj interface{}, options interface{}, subresources ...interface{}) *MockResourceInterface_Apply_Call
Apply is a helper method to define mock.On call
- ctx context.Context
- name string
- obj *unstructured.Unstructured
- options v1.ApplyOptions
- subresources ...string
func (*MockResourceInterface_Expecter) ApplyStatus ¶
func (_e *MockResourceInterface_Expecter) ApplyStatus(ctx interface{}, name interface{}, obj interface{}, options interface{}) *MockResourceInterface_ApplyStatus_Call
ApplyStatus is a helper method to define mock.On call
- ctx context.Context
- name string
- obj *unstructured.Unstructured
- options v1.ApplyOptions
func (*MockResourceInterface_Expecter) Create ¶
func (_e *MockResourceInterface_Expecter) Create(ctx interface{}, obj interface{}, options interface{}, subresources ...interface{}) *MockResourceInterface_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- obj *unstructured.Unstructured
- options v1.CreateOptions
- subresources ...string
func (*MockResourceInterface_Expecter) Delete ¶
func (_e *MockResourceInterface_Expecter) Delete(ctx interface{}, name interface{}, options interface{}, subresources ...interface{}) *MockResourceInterface_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
- options v1.DeleteOptions
- subresources ...string
func (*MockResourceInterface_Expecter) DeleteCollection ¶
func (_e *MockResourceInterface_Expecter) DeleteCollection(ctx interface{}, options interface{}, listOptions interface{}) *MockResourceInterface_DeleteCollection_Call
DeleteCollection is a helper method to define mock.On call
- ctx context.Context
- options v1.DeleteOptions
- listOptions v1.ListOptions
func (*MockResourceInterface_Expecter) Get ¶
func (_e *MockResourceInterface_Expecter) Get(ctx interface{}, name interface{}, options interface{}, subresources ...interface{}) *MockResourceInterface_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- name string
- options v1.GetOptions
- subresources ...string
func (*MockResourceInterface_Expecter) List ¶
func (_e *MockResourceInterface_Expecter) List(ctx interface{}, opts interface{}) *MockResourceInterface_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
func (*MockResourceInterface_Expecter) Patch ¶
func (_e *MockResourceInterface_Expecter) Patch(ctx interface{}, name interface{}, pt interface{}, data interface{}, options interface{}, subresources ...interface{}) *MockResourceInterface_Patch_Call
Patch is a helper method to define mock.On call
- ctx context.Context
- name string
- pt types.PatchType
- data []byte
- options v1.PatchOptions
- subresources ...string
func (*MockResourceInterface_Expecter) Update ¶
func (_e *MockResourceInterface_Expecter) Update(ctx interface{}, obj interface{}, options interface{}, subresources ...interface{}) *MockResourceInterface_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- obj *unstructured.Unstructured
- options v1.UpdateOptions
- subresources ...string
func (*MockResourceInterface_Expecter) UpdateStatus ¶
func (_e *MockResourceInterface_Expecter) UpdateStatus(ctx interface{}, obj interface{}, options interface{}) *MockResourceInterface_UpdateStatus_Call
UpdateStatus is a helper method to define mock.On call
- ctx context.Context
- obj *unstructured.Unstructured
- options v1.UpdateOptions
func (*MockResourceInterface_Expecter) Watch ¶
func (_e *MockResourceInterface_Expecter) Watch(ctx interface{}, opts interface{}) *MockResourceInterface_Watch_Call
Watch is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
type MockResourceInterface_Get_Call ¶
MockResourceInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockResourceInterface_Get_Call) Return ¶
func (_c *MockResourceInterface_Get_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_Get_Call
func (*MockResourceInterface_Get_Call) Run ¶
func (_c *MockResourceInterface_Get_Call) Run(run func(ctx context.Context, name string, options v1.GetOptions, subresources ...string)) *MockResourceInterface_Get_Call
func (*MockResourceInterface_Get_Call) RunAndReturn ¶
func (_c *MockResourceInterface_Get_Call) RunAndReturn(run func(context.Context, string, v1.GetOptions, ...string) (*unstructured.Unstructured, error)) *MockResourceInterface_Get_Call
type MockResourceInterface_List_Call ¶
MockResourceInterface_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockResourceInterface_List_Call) Return ¶
func (_c *MockResourceInterface_List_Call) Return(_a0 *unstructured.UnstructuredList, _a1 error) *MockResourceInterface_List_Call
func (*MockResourceInterface_List_Call) Run ¶
func (_c *MockResourceInterface_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *MockResourceInterface_List_Call
func (*MockResourceInterface_List_Call) RunAndReturn ¶
func (_c *MockResourceInterface_List_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (*unstructured.UnstructuredList, error)) *MockResourceInterface_List_Call
type MockResourceInterface_Patch_Call ¶
MockResourceInterface_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*MockResourceInterface_Patch_Call) Return ¶
func (_c *MockResourceInterface_Patch_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_Patch_Call
func (*MockResourceInterface_Patch_Call) Run ¶
func (_c *MockResourceInterface_Patch_Call) Run(run func(ctx context.Context, name string, pt types.PatchType, data []byte, options v1.PatchOptions, subresources ...string)) *MockResourceInterface_Patch_Call
func (*MockResourceInterface_Patch_Call) RunAndReturn ¶
func (_c *MockResourceInterface_Patch_Call) RunAndReturn(run func(context.Context, string, types.PatchType, []byte, v1.PatchOptions, ...string) (*unstructured.Unstructured, error)) *MockResourceInterface_Patch_Call
type MockResourceInterface_UpdateStatus_Call ¶
MockResourceInterface_UpdateStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatus'
func (*MockResourceInterface_UpdateStatus_Call) Return ¶
func (_c *MockResourceInterface_UpdateStatus_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_UpdateStatus_Call
func (*MockResourceInterface_UpdateStatus_Call) Run ¶
func (_c *MockResourceInterface_UpdateStatus_Call) Run(run func(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions)) *MockResourceInterface_UpdateStatus_Call
func (*MockResourceInterface_UpdateStatus_Call) RunAndReturn ¶
func (_c *MockResourceInterface_UpdateStatus_Call) RunAndReturn(run func(context.Context, *unstructured.Unstructured, v1.UpdateOptions) (*unstructured.Unstructured, error)) *MockResourceInterface_UpdateStatus_Call
type MockResourceInterface_Update_Call ¶
MockResourceInterface_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockResourceInterface_Update_Call) Return ¶
func (_c *MockResourceInterface_Update_Call) Return(_a0 *unstructured.Unstructured, _a1 error) *MockResourceInterface_Update_Call
func (*MockResourceInterface_Update_Call) Run ¶
func (_c *MockResourceInterface_Update_Call) Run(run func(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, subresources ...string)) *MockResourceInterface_Update_Call
func (*MockResourceInterface_Update_Call) RunAndReturn ¶
func (_c *MockResourceInterface_Update_Call) RunAndReturn(run func(context.Context, *unstructured.Unstructured, v1.UpdateOptions, ...string) (*unstructured.Unstructured, error)) *MockResourceInterface_Update_Call
type MockResourceInterface_Watch_Call ¶
MockResourceInterface_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*MockResourceInterface_Watch_Call) Return ¶
func (_c *MockResourceInterface_Watch_Call) Return(_a0 watch.Interface, _a1 error) *MockResourceInterface_Watch_Call
func (*MockResourceInterface_Watch_Call) Run ¶
func (_c *MockResourceInterface_Watch_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *MockResourceInterface_Watch_Call
func (*MockResourceInterface_Watch_Call) RunAndReturn ¶
func (_c *MockResourceInterface_Watch_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (watch.Interface, error)) *MockResourceInterface_Watch_Call