Documentation
¶
Index ¶
- type LogSink
- func (_m *LogSink) EXPECT() *LogSink_Expecter
- func (_mock *LogSink) Enabled(level int) bool
- func (_mock *LogSink) Error(err error, msg string, keysAndValues ...any)
- func (_mock *LogSink) Info(level int, msg string, keysAndValues ...any)
- func (_mock *LogSink) Init(info logr.RuntimeInfo)
- func (_mock *LogSink) WithName(name string) logr.LogSink
- func (_mock *LogSink) WithValues(keysAndValues ...any) logr.LogSink
- type LogSink_Enabled_Call
- type LogSink_Error_Call
- type LogSink_Expecter
- func (_e *LogSink_Expecter) Enabled(level any) *LogSink_Enabled_Call
- func (_e *LogSink_Expecter) Error(err any, msg any, keysAndValues ...any) *LogSink_Error_Call
- func (_e *LogSink_Expecter) Info(level any, msg any, keysAndValues ...any) *LogSink_Info_Call
- func (_e *LogSink_Expecter) Init(info any) *LogSink_Init_Call
- func (_e *LogSink_Expecter) WithName(name any) *LogSink_WithName_Call
- func (_e *LogSink_Expecter) WithValues(keysAndValues ...any) *LogSink_WithValues_Call
- type LogSink_Info_Call
- type LogSink_Init_Call
- type LogSink_WithName_Call
- type LogSink_WithValues_Call
- func (_c *LogSink_WithValues_Call) Return(logSink logr.LogSink) *LogSink_WithValues_Call
- func (_c *LogSink_WithValues_Call) Run(run func(keysAndValues ...any)) *LogSink_WithValues_Call
- func (_c *LogSink_WithValues_Call) RunAndReturn(run func(keysAndValues ...any) logr.LogSink) *LogSink_WithValues_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogSink ¶
LogSink is an autogenerated mock type for the LogSink type
func NewLogSink ¶
NewLogSink creates a new instance of LogSink. 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 (*LogSink) EXPECT ¶
func (_m *LogSink) EXPECT() *LogSink_Expecter
func (*LogSink) Init ¶
func (_mock *LogSink) Init(info logr.RuntimeInfo)
Init provides a mock function for the type LogSink
type LogSink_Enabled_Call ¶
LogSink_Enabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enabled'
func (*LogSink_Enabled_Call) Return ¶
func (_c *LogSink_Enabled_Call) Return(b bool) *LogSink_Enabled_Call
func (*LogSink_Enabled_Call) Run ¶
func (_c *LogSink_Enabled_Call) Run(run func(level int)) *LogSink_Enabled_Call
func (*LogSink_Enabled_Call) RunAndReturn ¶
func (_c *LogSink_Enabled_Call) RunAndReturn(run func(level int) bool) *LogSink_Enabled_Call
type LogSink_Error_Call ¶
LogSink_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*LogSink_Error_Call) Return ¶
func (_c *LogSink_Error_Call) Return() *LogSink_Error_Call
func (*LogSink_Error_Call) Run ¶
func (_c *LogSink_Error_Call) Run(run func(err error, msg string, keysAndValues ...any)) *LogSink_Error_Call
func (*LogSink_Error_Call) RunAndReturn ¶
func (_c *LogSink_Error_Call) RunAndReturn(run func(err error, msg string, keysAndValues ...any)) *LogSink_Error_Call
type LogSink_Expecter ¶
type LogSink_Expecter struct {
// contains filtered or unexported fields
}
func (*LogSink_Expecter) Enabled ¶
func (_e *LogSink_Expecter) Enabled(level any) *LogSink_Enabled_Call
Enabled is a helper method to define mock.On call
- level int
func (*LogSink_Expecter) Error ¶
func (_e *LogSink_Expecter) Error(err any, msg any, keysAndValues ...any) *LogSink_Error_Call
Error is a helper method to define mock.On call
- err error
- msg string
- keysAndValues ...any
func (*LogSink_Expecter) Info ¶
func (_e *LogSink_Expecter) Info(level any, msg any, keysAndValues ...any) *LogSink_Info_Call
Info is a helper method to define mock.On call
- level int
- msg string
- keysAndValues ...any
func (*LogSink_Expecter) Init ¶
func (_e *LogSink_Expecter) Init(info any) *LogSink_Init_Call
Init is a helper method to define mock.On call
- info logr.RuntimeInfo
func (*LogSink_Expecter) WithName ¶
func (_e *LogSink_Expecter) WithName(name any) *LogSink_WithName_Call
WithName is a helper method to define mock.On call
- name string
func (*LogSink_Expecter) WithValues ¶
func (_e *LogSink_Expecter) WithValues(keysAndValues ...any) *LogSink_WithValues_Call
WithValues is a helper method to define mock.On call
- keysAndValues ...any
type LogSink_Info_Call ¶
LogSink_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'
func (*LogSink_Info_Call) Return ¶
func (_c *LogSink_Info_Call) Return() *LogSink_Info_Call
func (*LogSink_Info_Call) Run ¶
func (_c *LogSink_Info_Call) Run(run func(level int, msg string, keysAndValues ...any)) *LogSink_Info_Call
func (*LogSink_Info_Call) RunAndReturn ¶
func (_c *LogSink_Info_Call) RunAndReturn(run func(level int, msg string, keysAndValues ...any)) *LogSink_Info_Call
type LogSink_Init_Call ¶
LogSink_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*LogSink_Init_Call) Return ¶
func (_c *LogSink_Init_Call) Return() *LogSink_Init_Call
func (*LogSink_Init_Call) Run ¶
func (_c *LogSink_Init_Call) Run(run func(info logr.RuntimeInfo)) *LogSink_Init_Call
func (*LogSink_Init_Call) RunAndReturn ¶
func (_c *LogSink_Init_Call) RunAndReturn(run func(info logr.RuntimeInfo)) *LogSink_Init_Call
type LogSink_WithName_Call ¶
LogSink_WithName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithName'
func (*LogSink_WithName_Call) Return ¶
func (_c *LogSink_WithName_Call) Return(logSink logr.LogSink) *LogSink_WithName_Call
func (*LogSink_WithName_Call) Run ¶
func (_c *LogSink_WithName_Call) Run(run func(name string)) *LogSink_WithName_Call
func (*LogSink_WithName_Call) RunAndReturn ¶
func (_c *LogSink_WithName_Call) RunAndReturn(run func(name string) logr.LogSink) *LogSink_WithName_Call
type LogSink_WithValues_Call ¶
LogSink_WithValues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithValues'
func (*LogSink_WithValues_Call) Return ¶
func (_c *LogSink_WithValues_Call) Return(logSink logr.LogSink) *LogSink_WithValues_Call
func (*LogSink_WithValues_Call) Run ¶
func (_c *LogSink_WithValues_Call) Run(run func(keysAndValues ...any)) *LogSink_WithValues_Call
func (*LogSink_WithValues_Call) RunAndReturn ¶
func (_c *LogSink_WithValues_Call) RunAndReturn(run func(keysAndValues ...any) logr.LogSink) *LogSink_WithValues_Call