Documentation ¶
Index ¶
- type MockBalancer
- func (_m *MockBalancer) Close()
- func (_m *MockBalancer) EXPECT() *MockBalancer_Expecter
- func (_m *MockBalancer) MarkAsUnavailable(ctx context.Context, pChannels []types.PChannelInfo) error
- func (_m *MockBalancer) Trigger(ctx context.Context) error
- func (_m *MockBalancer) WatchChannelAssignments(ctx context.Context, ...) error
- type MockBalancer_Close_Call
- type MockBalancer_Expecter
- func (_e *MockBalancer_Expecter) Close() *MockBalancer_Close_Call
- func (_e *MockBalancer_Expecter) MarkAsUnavailable(ctx interface{}, pChannels interface{}) *MockBalancer_MarkAsUnavailable_Call
- func (_e *MockBalancer_Expecter) Trigger(ctx interface{}) *MockBalancer_Trigger_Call
- func (_e *MockBalancer_Expecter) WatchChannelAssignments(ctx interface{}, cb interface{}) *MockBalancer_WatchChannelAssignments_Call
- type MockBalancer_MarkAsUnavailable_Call
- func (_c *MockBalancer_MarkAsUnavailable_Call) Return(_a0 error) *MockBalancer_MarkAsUnavailable_Call
- func (_c *MockBalancer_MarkAsUnavailable_Call) Run(run func(ctx context.Context, pChannels []types.PChannelInfo)) *MockBalancer_MarkAsUnavailable_Call
- func (_c *MockBalancer_MarkAsUnavailable_Call) RunAndReturn(run func(context.Context, []types.PChannelInfo) error) *MockBalancer_MarkAsUnavailable_Call
- type MockBalancer_Trigger_Call
- type MockBalancer_WatchChannelAssignments_Call
- func (_c *MockBalancer_WatchChannelAssignments_Call) Return(_a0 error) *MockBalancer_WatchChannelAssignments_Call
- func (_c *MockBalancer_WatchChannelAssignments_Call) Run(run func(ctx context.Context, ...)) *MockBalancer_WatchChannelAssignments_Call
- func (_c *MockBalancer_WatchChannelAssignments_Call) RunAndReturn(run func(context.Context, ...) error) *MockBalancer_WatchChannelAssignments_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBalancer ¶
MockBalancer is an autogenerated mock type for the Balancer type
func NewMockBalancer ¶
func NewMockBalancer(t interface { mock.TestingT Cleanup(func()) }) *MockBalancer
NewMockBalancer creates a new instance of MockBalancer. 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 (*MockBalancer) Close ¶
func (_m *MockBalancer) Close()
Close provides a mock function with given fields:
func (*MockBalancer) EXPECT ¶
func (_m *MockBalancer) EXPECT() *MockBalancer_Expecter
func (*MockBalancer) MarkAsUnavailable ¶
func (_m *MockBalancer) MarkAsUnavailable(ctx context.Context, pChannels []types.PChannelInfo) error
MarkAsUnavailable provides a mock function with given fields: ctx, pChannels
func (*MockBalancer) Trigger ¶
func (_m *MockBalancer) Trigger(ctx context.Context) error
Trigger provides a mock function with given fields: ctx
func (*MockBalancer) WatchChannelAssignments ¶
func (_m *MockBalancer) WatchChannelAssignments(ctx context.Context, cb func(typeutil.VersionInt64Pair, []types.PChannelInfoAssigned) error) error
WatchChannelAssignments provides a mock function with given fields: ctx, cb
type MockBalancer_Close_Call ¶
MockBalancer_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockBalancer_Close_Call) Return ¶
func (_c *MockBalancer_Close_Call) Return() *MockBalancer_Close_Call
func (*MockBalancer_Close_Call) Run ¶
func (_c *MockBalancer_Close_Call) Run(run func()) *MockBalancer_Close_Call
func (*MockBalancer_Close_Call) RunAndReturn ¶
func (_c *MockBalancer_Close_Call) RunAndReturn(run func()) *MockBalancer_Close_Call
type MockBalancer_Expecter ¶
type MockBalancer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBalancer_Expecter) Close ¶
func (_e *MockBalancer_Expecter) Close() *MockBalancer_Close_Call
Close is a helper method to define mock.On call
func (*MockBalancer_Expecter) MarkAsUnavailable ¶
func (_e *MockBalancer_Expecter) MarkAsUnavailable(ctx interface{}, pChannels interface{}) *MockBalancer_MarkAsUnavailable_Call
MarkAsUnavailable is a helper method to define mock.On call
- ctx context.Context
- pChannels []types.PChannelInfo
func (*MockBalancer_Expecter) Trigger ¶
func (_e *MockBalancer_Expecter) Trigger(ctx interface{}) *MockBalancer_Trigger_Call
Trigger is a helper method to define mock.On call
- ctx context.Context
func (*MockBalancer_Expecter) WatchChannelAssignments ¶
func (_e *MockBalancer_Expecter) WatchChannelAssignments(ctx interface{}, cb interface{}) *MockBalancer_WatchChannelAssignments_Call
WatchChannelAssignments is a helper method to define mock.On call
- ctx context.Context
- cb func(typeutil.VersionInt64Pair , []types.PChannelInfoAssigned) error
type MockBalancer_MarkAsUnavailable_Call ¶
type MockBalancer_MarkAsUnavailable_Call struct {
}MockBalancer_MarkAsUnavailable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkAsUnavailable'
func (*MockBalancer_MarkAsUnavailable_Call) Return ¶
func (_c *MockBalancer_MarkAsUnavailable_Call) Return(_a0 error) *MockBalancer_MarkAsUnavailable_Call
func (*MockBalancer_MarkAsUnavailable_Call) Run ¶
func (_c *MockBalancer_MarkAsUnavailable_Call) Run(run func(ctx context.Context, pChannels []types.PChannelInfo)) *MockBalancer_MarkAsUnavailable_Call
func (*MockBalancer_MarkAsUnavailable_Call) RunAndReturn ¶
func (_c *MockBalancer_MarkAsUnavailable_Call) RunAndReturn(run func(context.Context, []types.PChannelInfo) error) *MockBalancer_MarkAsUnavailable_Call
type MockBalancer_Trigger_Call ¶
MockBalancer_Trigger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Trigger'
func (*MockBalancer_Trigger_Call) Return ¶
func (_c *MockBalancer_Trigger_Call) Return(_a0 error) *MockBalancer_Trigger_Call
func (*MockBalancer_Trigger_Call) Run ¶
func (_c *MockBalancer_Trigger_Call) Run(run func(ctx context.Context)) *MockBalancer_Trigger_Call
func (*MockBalancer_Trigger_Call) RunAndReturn ¶
func (_c *MockBalancer_Trigger_Call) RunAndReturn(run func(context.Context) error) *MockBalancer_Trigger_Call
type MockBalancer_WatchChannelAssignments_Call ¶
MockBalancer_WatchChannelAssignments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchChannelAssignments'
func (*MockBalancer_WatchChannelAssignments_Call) Return ¶
func (_c *MockBalancer_WatchChannelAssignments_Call) Return(_a0 error) *MockBalancer_WatchChannelAssignments_Call
func (*MockBalancer_WatchChannelAssignments_Call) Run ¶
func (_c *MockBalancer_WatchChannelAssignments_Call) Run(run func(ctx context.Context, cb func(typeutil.VersionInt64Pair, []types.PChannelInfoAssigned) error)) *MockBalancer_WatchChannelAssignments_Call
func (*MockBalancer_WatchChannelAssignments_Call) RunAndReturn ¶
func (_c *MockBalancer_WatchChannelAssignments_Call) RunAndReturn(run func(context.Context, func(typeutil.VersionInt64Pair, []types.PChannelInfoAssigned) error) error) *MockBalancer_WatchChannelAssignments_Call