Documentation ¶
Index ¶
- type ClientMock
- type ClientMock_Expecter
- type ClientMock_RuleSetRepository_Call
- func (_c *ClientMock_RuleSetRepository_Call) Return(_a0 v1alpha4.RuleSetRepository) *ClientMock_RuleSetRepository_Call
- func (_c *ClientMock_RuleSetRepository_Call) Run(run func(namespace string)) *ClientMock_RuleSetRepository_Call
- func (_c *ClientMock_RuleSetRepository_Call) RunAndReturn(run func(string) v1alpha4.RuleSetRepository) *ClientMock_RuleSetRepository_Call
- type RuleSetRepositoryMock
- func (_m *RuleSetRepositoryMock) EXPECT() *RuleSetRepositoryMock_Expecter
- func (_m *RuleSetRepositoryMock) Get(ctx context.Context, key types.NamespacedName, opts v1.GetOptions) (*v1alpha4.RuleSet, error)
- func (_m *RuleSetRepositoryMock) List(ctx context.Context, opts v1.ListOptions) (*v1alpha4.RuleSetList, error)
- func (_m *RuleSetRepositoryMock) PatchStatus(ctx context.Context, patch v1alpha4.Patch, opts v1.PatchOptions) (*v1alpha4.RuleSet, error)
- func (_m *RuleSetRepositoryMock) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type RuleSetRepositoryMock_Expecter
- func (_e *RuleSetRepositoryMock_Expecter) Get(ctx interface{}, key interface{}, opts interface{}) *RuleSetRepositoryMock_Get_Call
- func (_e *RuleSetRepositoryMock_Expecter) List(ctx interface{}, opts interface{}) *RuleSetRepositoryMock_List_Call
- func (_e *RuleSetRepositoryMock_Expecter) PatchStatus(ctx interface{}, patch interface{}, opts interface{}) *RuleSetRepositoryMock_PatchStatus_Call
- func (_e *RuleSetRepositoryMock_Expecter) Watch(ctx interface{}, opts interface{}) *RuleSetRepositoryMock_Watch_Call
- type RuleSetRepositoryMock_Get_Call
- func (_c *RuleSetRepositoryMock_Get_Call) Return(_a0 *v1alpha4.RuleSet, _a1 error) *RuleSetRepositoryMock_Get_Call
- func (_c *RuleSetRepositoryMock_Get_Call) Run(run func(ctx context.Context, key types.NamespacedName, opts v1.GetOptions)) *RuleSetRepositoryMock_Get_Call
- func (_c *RuleSetRepositoryMock_Get_Call) RunAndReturn(...) *RuleSetRepositoryMock_Get_Call
- type RuleSetRepositoryMock_List_Call
- func (_c *RuleSetRepositoryMock_List_Call) Return(_a0 *v1alpha4.RuleSetList, _a1 error) *RuleSetRepositoryMock_List_Call
- func (_c *RuleSetRepositoryMock_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *RuleSetRepositoryMock_List_Call
- func (_c *RuleSetRepositoryMock_List_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (*v1alpha4.RuleSetList, error)) *RuleSetRepositoryMock_List_Call
- type RuleSetRepositoryMock_PatchStatus_Call
- func (_c *RuleSetRepositoryMock_PatchStatus_Call) Return(_a0 *v1alpha4.RuleSet, _a1 error) *RuleSetRepositoryMock_PatchStatus_Call
- func (_c *RuleSetRepositoryMock_PatchStatus_Call) Run(run func(ctx context.Context, patch v1alpha4.Patch, opts v1.PatchOptions)) *RuleSetRepositoryMock_PatchStatus_Call
- func (_c *RuleSetRepositoryMock_PatchStatus_Call) RunAndReturn(...) *RuleSetRepositoryMock_PatchStatus_Call
- type RuleSetRepositoryMock_Watch_Call
- func (_c *RuleSetRepositoryMock_Watch_Call) Return(_a0 watch.Interface, _a1 error) *RuleSetRepositoryMock_Watch_Call
- func (_c *RuleSetRepositoryMock_Watch_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *RuleSetRepositoryMock_Watch_Call
- func (_c *RuleSetRepositoryMock_Watch_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (watch.Interface, error)) *RuleSetRepositoryMock_Watch_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMock ¶
ClientMock is an autogenerated mock type for the Client type
func NewClientMock ¶
func NewClientMock(t interface { mock.TestingT Cleanup(func()) }) *ClientMock
NewClientMock creates a new instance of ClientMock. 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 (*ClientMock) EXPECT ¶
func (_m *ClientMock) EXPECT() *ClientMock_Expecter
func (*ClientMock) RuleSetRepository ¶
func (_m *ClientMock) RuleSetRepository(namespace string) v1alpha4.RuleSetRepository
RuleSetRepository provides a mock function with given fields: namespace
type ClientMock_Expecter ¶
type ClientMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ClientMock_Expecter) RuleSetRepository ¶
func (_e *ClientMock_Expecter) RuleSetRepository(namespace interface{}) *ClientMock_RuleSetRepository_Call
RuleSetRepository is a helper method to define mock.On call
- namespace string
type ClientMock_RuleSetRepository_Call ¶
ClientMock_RuleSetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RuleSetRepository'
func (*ClientMock_RuleSetRepository_Call) Return ¶
func (_c *ClientMock_RuleSetRepository_Call) Return(_a0 v1alpha4.RuleSetRepository) *ClientMock_RuleSetRepository_Call
func (*ClientMock_RuleSetRepository_Call) Run ¶
func (_c *ClientMock_RuleSetRepository_Call) Run(run func(namespace string)) *ClientMock_RuleSetRepository_Call
func (*ClientMock_RuleSetRepository_Call) RunAndReturn ¶
func (_c *ClientMock_RuleSetRepository_Call) RunAndReturn(run func(string) v1alpha4.RuleSetRepository) *ClientMock_RuleSetRepository_Call
type RuleSetRepositoryMock ¶
RuleSetRepositoryMock is an autogenerated mock type for the RuleSetRepository type
func NewRuleSetRepositoryMock ¶
func NewRuleSetRepositoryMock(t interface { mock.TestingT Cleanup(func()) }) *RuleSetRepositoryMock
NewRuleSetRepositoryMock creates a new instance of RuleSetRepositoryMock. 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 (*RuleSetRepositoryMock) EXPECT ¶
func (_m *RuleSetRepositoryMock) EXPECT() *RuleSetRepositoryMock_Expecter
func (*RuleSetRepositoryMock) Get ¶
func (_m *RuleSetRepositoryMock) Get(ctx context.Context, key types.NamespacedName, opts v1.GetOptions) (*v1alpha4.RuleSet, error)
Get provides a mock function with given fields: ctx, key, opts
func (*RuleSetRepositoryMock) List ¶
func (_m *RuleSetRepositoryMock) List(ctx context.Context, opts v1.ListOptions) (*v1alpha4.RuleSetList, error)
List provides a mock function with given fields: ctx, opts
func (*RuleSetRepositoryMock) PatchStatus ¶
func (_m *RuleSetRepositoryMock) PatchStatus(ctx context.Context, patch v1alpha4.Patch, opts v1.PatchOptions) (*v1alpha4.RuleSet, error)
PatchStatus provides a mock function with given fields: ctx, patch, opts
func (*RuleSetRepositoryMock) Watch ¶
func (_m *RuleSetRepositoryMock) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch provides a mock function with given fields: ctx, opts
type RuleSetRepositoryMock_Expecter ¶
type RuleSetRepositoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RuleSetRepositoryMock_Expecter) Get ¶
func (_e *RuleSetRepositoryMock_Expecter) Get(ctx interface{}, key interface{}, opts interface{}) *RuleSetRepositoryMock_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key types.NamespacedName
- opts v1.GetOptions
func (*RuleSetRepositoryMock_Expecter) List ¶
func (_e *RuleSetRepositoryMock_Expecter) List(ctx interface{}, opts interface{}) *RuleSetRepositoryMock_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
func (*RuleSetRepositoryMock_Expecter) PatchStatus ¶
func (_e *RuleSetRepositoryMock_Expecter) PatchStatus(ctx interface{}, patch interface{}, opts interface{}) *RuleSetRepositoryMock_PatchStatus_Call
PatchStatus is a helper method to define mock.On call
- ctx context.Context
- patch v1alpha4.Patch
- opts v1.PatchOptions
func (*RuleSetRepositoryMock_Expecter) Watch ¶
func (_e *RuleSetRepositoryMock_Expecter) Watch(ctx interface{}, opts interface{}) *RuleSetRepositoryMock_Watch_Call
Watch is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
type RuleSetRepositoryMock_Get_Call ¶
RuleSetRepositoryMock_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*RuleSetRepositoryMock_Get_Call) Return ¶
func (_c *RuleSetRepositoryMock_Get_Call) Return(_a0 *v1alpha4.RuleSet, _a1 error) *RuleSetRepositoryMock_Get_Call
func (*RuleSetRepositoryMock_Get_Call) Run ¶
func (_c *RuleSetRepositoryMock_Get_Call) Run(run func(ctx context.Context, key types.NamespacedName, opts v1.GetOptions)) *RuleSetRepositoryMock_Get_Call
func (*RuleSetRepositoryMock_Get_Call) RunAndReturn ¶
func (_c *RuleSetRepositoryMock_Get_Call) RunAndReturn(run func(context.Context, types.NamespacedName, v1.GetOptions) (*v1alpha4.RuleSet, error)) *RuleSetRepositoryMock_Get_Call
type RuleSetRepositoryMock_List_Call ¶
RuleSetRepositoryMock_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*RuleSetRepositoryMock_List_Call) Return ¶
func (_c *RuleSetRepositoryMock_List_Call) Return(_a0 *v1alpha4.RuleSetList, _a1 error) *RuleSetRepositoryMock_List_Call
func (*RuleSetRepositoryMock_List_Call) Run ¶
func (_c *RuleSetRepositoryMock_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *RuleSetRepositoryMock_List_Call
func (*RuleSetRepositoryMock_List_Call) RunAndReturn ¶
func (_c *RuleSetRepositoryMock_List_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (*v1alpha4.RuleSetList, error)) *RuleSetRepositoryMock_List_Call
type RuleSetRepositoryMock_PatchStatus_Call ¶
RuleSetRepositoryMock_PatchStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchStatus'
func (*RuleSetRepositoryMock_PatchStatus_Call) Return ¶
func (_c *RuleSetRepositoryMock_PatchStatus_Call) Return(_a0 *v1alpha4.RuleSet, _a1 error) *RuleSetRepositoryMock_PatchStatus_Call
func (*RuleSetRepositoryMock_PatchStatus_Call) Run ¶
func (_c *RuleSetRepositoryMock_PatchStatus_Call) Run(run func(ctx context.Context, patch v1alpha4.Patch, opts v1.PatchOptions)) *RuleSetRepositoryMock_PatchStatus_Call
func (*RuleSetRepositoryMock_PatchStatus_Call) RunAndReturn ¶
func (_c *RuleSetRepositoryMock_PatchStatus_Call) RunAndReturn(run func(context.Context, v1alpha4.Patch, v1.PatchOptions) (*v1alpha4.RuleSet, error)) *RuleSetRepositoryMock_PatchStatus_Call
type RuleSetRepositoryMock_Watch_Call ¶
RuleSetRepositoryMock_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*RuleSetRepositoryMock_Watch_Call) Return ¶
func (_c *RuleSetRepositoryMock_Watch_Call) Return(_a0 watch.Interface, _a1 error) *RuleSetRepositoryMock_Watch_Call
func (*RuleSetRepositoryMock_Watch_Call) Run ¶
func (_c *RuleSetRepositoryMock_Watch_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *RuleSetRepositoryMock_Watch_Call
func (*RuleSetRepositoryMock_Watch_Call) RunAndReturn ¶
func (_c *RuleSetRepositoryMock_Watch_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (watch.Interface, error)) *RuleSetRepositoryMock_Watch_Call