Documentation ¶
Index ¶
- type Manager
- type Manager_AddMultiple_Call
- func (_c *Manager_AddMultiple_Call) Return(_a0 error) *Manager_AddMultiple_Call
- func (_c *Manager_AddMultiple_Call) Run(run func(ctx context.Context, records []audit.Record)) *Manager_AddMultiple_Call
- func (_c *Manager_AddMultiple_Call) RunAndReturn(run func(context.Context, []audit.Record) error) *Manager_AddMultiple_Call
- type Manager_Add_Call
- type Manager_Expecter
- func (_e *Manager_Expecter) Add(ctx interface{}, record interface{}) *Manager_Add_Call
- func (_e *Manager_Expecter) AddMultiple(ctx interface{}, records interface{}) *Manager_AddMultiple_Call
- func (_e *Manager_Expecter) Init() *Manager_Init_Call
- func (_e *Manager_Expecter) MustInit() *Manager_MustInit_Call
- type Manager_Init_Call
- type Manager_MustInit_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. 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 (*Manager) AddMultiple ¶
AddMultiple provides a mock function with given fields: ctx, records
func (*Manager) EXPECT ¶
func (_m *Manager) EXPECT() *Manager_Expecter
type Manager_AddMultiple_Call ¶
Manager_AddMultiple_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMultiple'
func (*Manager_AddMultiple_Call) Return ¶
func (_c *Manager_AddMultiple_Call) Return(_a0 error) *Manager_AddMultiple_Call
func (*Manager_AddMultiple_Call) Run ¶
func (_c *Manager_AddMultiple_Call) Run(run func(ctx context.Context, records []audit.Record)) *Manager_AddMultiple_Call
func (*Manager_AddMultiple_Call) RunAndReturn ¶
func (_c *Manager_AddMultiple_Call) RunAndReturn(run func(context.Context, []audit.Record) error) *Manager_AddMultiple_Call
type Manager_Add_Call ¶
Manager_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Manager_Add_Call) Return ¶
func (_c *Manager_Add_Call) Return(_a0 error) *Manager_Add_Call
func (*Manager_Add_Call) Run ¶
func (_c *Manager_Add_Call) Run(run func(ctx context.Context, record audit.Record)) *Manager_Add_Call
func (*Manager_Add_Call) RunAndReturn ¶
func (_c *Manager_Add_Call) RunAndReturn(run func(context.Context, audit.Record) error) *Manager_Add_Call
type Manager_Expecter ¶
type Manager_Expecter struct {
// contains filtered or unexported fields
}
func (*Manager_Expecter) Add ¶
func (_e *Manager_Expecter) Add(ctx interface{}, record interface{}) *Manager_Add_Call
Add is a helper method to define mock.On call
- ctx context.Context
- record audit.Record
func (*Manager_Expecter) AddMultiple ¶
func (_e *Manager_Expecter) AddMultiple(ctx interface{}, records interface{}) *Manager_AddMultiple_Call
AddMultiple is a helper method to define mock.On call
- ctx context.Context
- records []audit.Record
func (*Manager_Expecter) Init ¶
func (_e *Manager_Expecter) Init() *Manager_Init_Call
Init is a helper method to define mock.On call
func (*Manager_Expecter) MustInit ¶
func (_e *Manager_Expecter) MustInit() *Manager_MustInit_Call
MustInit is a helper method to define mock.On call
type Manager_Init_Call ¶
Manager_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*Manager_Init_Call) Return ¶
func (_c *Manager_Init_Call) Return(_a0 error) *Manager_Init_Call
func (*Manager_Init_Call) Run ¶
func (_c *Manager_Init_Call) Run(run func()) *Manager_Init_Call
func (*Manager_Init_Call) RunAndReturn ¶
func (_c *Manager_Init_Call) RunAndReturn(run func() error) *Manager_Init_Call
type Manager_MustInit_Call ¶
Manager_MustInit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MustInit'
func (*Manager_MustInit_Call) Return ¶
func (_c *Manager_MustInit_Call) Return(_a0 audit.Manager) *Manager_MustInit_Call
func (*Manager_MustInit_Call) Run ¶
func (_c *Manager_MustInit_Call) Run(run func()) *Manager_MustInit_Call
func (*Manager_MustInit_Call) RunAndReturn ¶
func (_c *Manager_MustInit_Call) RunAndReturn(run func() audit.Manager) *Manager_MustInit_Call