Documentation ¶
Index ¶
- Variables
- type Interface
- type Logger
- type MockInterface
- type MockInterface_AddFlags_Call
- type MockInterface_Expecter
- func (_e *MockInterface_Expecter) AddFlags(f interface{}) *MockInterface_AddFlags_Call
- func (_e *MockInterface_Expecter) IsEnabled(level interface{}) *MockInterface_IsEnabled_Call
- func (_e *MockInterface_Expecter) Printf(format interface{}, args ...interface{}) *MockInterface_Printf_Call
- func (_e *MockInterface_Expecter) V(level interface{}) *MockInterface_V_Call
- type MockInterface_IsEnabled_Call
- type MockInterface_Printf_Call
- type MockInterface_V_Call
- type MockVerbose
- type MockVerbose_Expecter
- type MockVerbose_Infof_Call
- type Verbose
Constants ¶
This section is empty.
Variables ¶
var Set = wire.NewSet( New, )
Set provides an implementation and interface for Logger.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides logging facility using log.Logger and klog.
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t mockConstructorTestingTNewMockInterface) *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.
func (*MockInterface) AddFlags ¶
func (_m *MockInterface) AddFlags(f *pflag.FlagSet)
AddFlags provides a mock function with given fields: f
func (*MockInterface) EXPECT ¶
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
func (*MockInterface) IsEnabled ¶
func (_m *MockInterface) IsEnabled(level int) bool
IsEnabled provides a mock function with given fields: level
func (*MockInterface) Printf ¶
func (_m *MockInterface) Printf(format string, args ...interface{})
Printf provides a mock function with given fields: format, args
func (*MockInterface) V ¶
func (_m *MockInterface) V(level int) Verbose
V provides a mock function with given fields: level
type MockInterface_AddFlags_Call ¶
MockInterface_AddFlags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddFlags'
func (*MockInterface_AddFlags_Call) Return ¶
func (_c *MockInterface_AddFlags_Call) Return() *MockInterface_AddFlags_Call
func (*MockInterface_AddFlags_Call) Run ¶
func (_c *MockInterface_AddFlags_Call) Run(run func(f *pflag.FlagSet)) *MockInterface_AddFlags_Call
type MockInterface_Expecter ¶
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) AddFlags ¶
func (_e *MockInterface_Expecter) AddFlags(f interface{}) *MockInterface_AddFlags_Call
AddFlags is a helper method to define mock.On call
- f *pflag.FlagSet
func (*MockInterface_Expecter) IsEnabled ¶
func (_e *MockInterface_Expecter) IsEnabled(level interface{}) *MockInterface_IsEnabled_Call
IsEnabled is a helper method to define mock.On call
- level int
func (*MockInterface_Expecter) Printf ¶
func (_e *MockInterface_Expecter) Printf(format interface{}, args ...interface{}) *MockInterface_Printf_Call
Printf is a helper method to define mock.On call
- format string
- args ...interface{}
func (*MockInterface_Expecter) V ¶
func (_e *MockInterface_Expecter) V(level interface{}) *MockInterface_V_Call
V is a helper method to define mock.On call
- level int
type MockInterface_IsEnabled_Call ¶
MockInterface_IsEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsEnabled'
func (*MockInterface_IsEnabled_Call) Return ¶
func (_c *MockInterface_IsEnabled_Call) Return(_a0 bool) *MockInterface_IsEnabled_Call
func (*MockInterface_IsEnabled_Call) Run ¶
func (_c *MockInterface_IsEnabled_Call) Run(run func(level int)) *MockInterface_IsEnabled_Call
type MockInterface_Printf_Call ¶
MockInterface_Printf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Printf'
func (*MockInterface_Printf_Call) Return ¶
func (_c *MockInterface_Printf_Call) Return() *MockInterface_Printf_Call
func (*MockInterface_Printf_Call) Run ¶
func (_c *MockInterface_Printf_Call) Run(run func(format string, args ...interface{})) *MockInterface_Printf_Call
type MockInterface_V_Call ¶
MockInterface_V_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'V'
func (*MockInterface_V_Call) Return ¶
func (_c *MockInterface_V_Call) Return(_a0 Verbose) *MockInterface_V_Call
func (*MockInterface_V_Call) Run ¶
func (_c *MockInterface_V_Call) Run(run func(level int)) *MockInterface_V_Call
type MockVerbose ¶
MockVerbose is an autogenerated mock type for the Verbose type
func NewMockVerbose ¶
func NewMockVerbose(t mockConstructorTestingTNewMockVerbose) *MockVerbose
NewMockVerbose creates a new instance of MockVerbose. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockVerbose) EXPECT ¶
func (_m *MockVerbose) EXPECT() *MockVerbose_Expecter
func (*MockVerbose) Infof ¶
func (_m *MockVerbose) Infof(format string, args ...interface{})
Infof provides a mock function with given fields: format, args
type MockVerbose_Expecter ¶
type MockVerbose_Expecter struct {
// contains filtered or unexported fields
}
func (*MockVerbose_Expecter) Infof ¶
func (_e *MockVerbose_Expecter) Infof(format interface{}, args ...interface{}) *MockVerbose_Infof_Call
Infof is a helper method to define mock.On call
- format string
- args ...interface{}
type MockVerbose_Infof_Call ¶
MockVerbose_Infof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Infof'
func (*MockVerbose_Infof_Call) Return ¶
func (_c *MockVerbose_Infof_Call) Return() *MockVerbose_Infof_Call
func (*MockVerbose_Infof_Call) Run ¶
func (_c *MockVerbose_Infof_Call) Run(run func(format string, args ...interface{})) *MockVerbose_Infof_Call