Documentation ¶
Overview ¶
Package mock_agentk2kas_router is a generated GoMock package.
Index ¶
- type MockHandler
- type MockHandlerHandleTunnelCall
- func (c *MockHandlerHandleTunnelCall) Do(f func(context.Context, *api.AgentInfo, rpc.ReverseTunnel_ConnectServer) error) *MockHandlerHandleTunnelCall
- func (c *MockHandlerHandleTunnelCall) DoAndReturn(f func(context.Context, *api.AgentInfo, rpc.ReverseTunnel_ConnectServer) error) *MockHandlerHandleTunnelCall
- func (c *MockHandlerHandleTunnelCall) Return(arg0 error) *MockHandlerHandleTunnelCall
- type MockHandlerMockRecorder
- type MockQuerier
- type MockQuerierKASURLsByAgentIDCall
- func (c *MockQuerierKASURLsByAgentIDCall) Do(f func(context.Context, int64) ([]string, error)) *MockQuerierKASURLsByAgentIDCall
- func (c *MockQuerierKASURLsByAgentIDCall) DoAndReturn(f func(context.Context, int64) ([]string, error)) *MockQuerierKASURLsByAgentIDCall
- func (c *MockQuerierKASURLsByAgentIDCall) Return(arg0 []string, arg1 error) *MockQuerierKASURLsByAgentIDCall
- type MockQuerierMockRecorder
- type MockTracker
- func (m *MockTracker) EXPECT() *MockTrackerMockRecorder
- func (m *MockTracker) GC(arg0 context.Context, arg1 []int64) (int, error)
- func (m *MockTracker) KASURLsByAgentID(arg0 context.Context, arg1 int64) ([]string, error)
- func (m *MockTracker) Refresh(arg0 context.Context, arg1 time.Duration, arg2 []int64) error
- func (m *MockTracker) RegisterTunnel(arg0 context.Context, arg1 time.Duration, arg2 int64) error
- func (m *MockTracker) UnregisterTunnel(arg0 context.Context, arg1 int64) error
- type MockTrackerGCCall
- type MockTrackerKASURLsByAgentIDCall
- func (c *MockTrackerKASURLsByAgentIDCall) Do(f func(context.Context, int64) ([]string, error)) *MockTrackerKASURLsByAgentIDCall
- func (c *MockTrackerKASURLsByAgentIDCall) DoAndReturn(f func(context.Context, int64) ([]string, error)) *MockTrackerKASURLsByAgentIDCall
- func (c *MockTrackerKASURLsByAgentIDCall) Return(arg0 []string, arg1 error) *MockTrackerKASURLsByAgentIDCall
- type MockTrackerMockRecorder
- func (mr *MockTrackerMockRecorder) GC(arg0, arg1 any) *MockTrackerGCCall
- func (mr *MockTrackerMockRecorder) KASURLsByAgentID(arg0, arg1 any) *MockTrackerKASURLsByAgentIDCall
- func (mr *MockTrackerMockRecorder) Refresh(arg0, arg1, arg2 any) *MockTrackerRefreshCall
- func (mr *MockTrackerMockRecorder) RegisterTunnel(arg0, arg1, arg2 any) *MockTrackerRegisterTunnelCall
- func (mr *MockTrackerMockRecorder) UnregisterTunnel(arg0, arg1 any) *MockTrackerUnregisterTunnelCall
- type MockTrackerRefreshCall
- func (c *MockTrackerRefreshCall) Do(f func(context.Context, time.Duration, []int64) error) *MockTrackerRefreshCall
- func (c *MockTrackerRefreshCall) DoAndReturn(f func(context.Context, time.Duration, []int64) error) *MockTrackerRefreshCall
- func (c *MockTrackerRefreshCall) Return(arg0 error) *MockTrackerRefreshCall
- type MockTrackerRegisterTunnelCall
- func (c *MockTrackerRegisterTunnelCall) Do(f func(context.Context, time.Duration, int64) error) *MockTrackerRegisterTunnelCall
- func (c *MockTrackerRegisterTunnelCall) DoAndReturn(f func(context.Context, time.Duration, int64) error) *MockTrackerRegisterTunnelCall
- func (c *MockTrackerRegisterTunnelCall) Return(arg0 error) *MockTrackerRegisterTunnelCall
- type MockTrackerUnregisterTunnelCall
- func (c *MockTrackerUnregisterTunnelCall) Do(f func(context.Context, int64) error) *MockTrackerUnregisterTunnelCall
- func (c *MockTrackerUnregisterTunnelCall) DoAndReturn(f func(context.Context, int64) error) *MockTrackerUnregisterTunnelCall
- func (c *MockTrackerUnregisterTunnelCall) Return(arg0 error) *MockTrackerUnregisterTunnelCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHandler ¶
type MockHandler struct {
// contains filtered or unexported fields
}
MockHandler is a mock of Handler interface.
func NewMockHandler ¶
func NewMockHandler(ctrl *gomock.Controller) *MockHandler
NewMockHandler creates a new mock instance.
func (*MockHandler) EXPECT ¶
func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHandler) HandleTunnel ¶
func (m *MockHandler) HandleTunnel(arg0 context.Context, arg1 *api.AgentInfo, arg2 rpc.ReverseTunnel_ConnectServer) error
HandleTunnel mocks base method.
type MockHandlerHandleTunnelCall ¶
MockHandlerHandleTunnelCall wrap *gomock.Call
func (*MockHandlerHandleTunnelCall) Do ¶
func (c *MockHandlerHandleTunnelCall) Do(f func(context.Context, *api.AgentInfo, rpc.ReverseTunnel_ConnectServer) error) *MockHandlerHandleTunnelCall
Do rewrite *gomock.Call.Do
func (*MockHandlerHandleTunnelCall) DoAndReturn ¶
func (c *MockHandlerHandleTunnelCall) DoAndReturn(f func(context.Context, *api.AgentInfo, rpc.ReverseTunnel_ConnectServer) error) *MockHandlerHandleTunnelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHandlerHandleTunnelCall) Return ¶
func (c *MockHandlerHandleTunnelCall) Return(arg0 error) *MockHandlerHandleTunnelCall
Return rewrite *gomock.Call.Return
type MockHandlerMockRecorder ¶
type MockHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockHandlerMockRecorder is the mock recorder for MockHandler.
func (*MockHandlerMockRecorder) HandleTunnel ¶
func (mr *MockHandlerMockRecorder) HandleTunnel(arg0, arg1, arg2 any) *MockHandlerHandleTunnelCall
HandleTunnel indicates an expected call of HandleTunnel.
type MockQuerier ¶
type MockQuerier struct {
// contains filtered or unexported fields
}
MockQuerier is a mock of Querier interface.
func NewMockQuerier ¶
func NewMockQuerier(ctrl *gomock.Controller) *MockQuerier
NewMockQuerier creates a new mock instance.
func (*MockQuerier) EXPECT ¶
func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQuerier) KASURLsByAgentID ¶
KASURLsByAgentID mocks base method.
type MockQuerierKASURLsByAgentIDCall ¶
MockQuerierKASURLsByAgentIDCall wrap *gomock.Call
func (*MockQuerierKASURLsByAgentIDCall) Do ¶
func (c *MockQuerierKASURLsByAgentIDCall) Do(f func(context.Context, int64) ([]string, error)) *MockQuerierKASURLsByAgentIDCall
Do rewrite *gomock.Call.Do
func (*MockQuerierKASURLsByAgentIDCall) DoAndReturn ¶
func (c *MockQuerierKASURLsByAgentIDCall) DoAndReturn(f func(context.Context, int64) ([]string, error)) *MockQuerierKASURLsByAgentIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockQuerierKASURLsByAgentIDCall) Return ¶
func (c *MockQuerierKASURLsByAgentIDCall) Return(arg0 []string, arg1 error) *MockQuerierKASURLsByAgentIDCall
Return rewrite *gomock.Call.Return
type MockQuerierMockRecorder ¶
type MockQuerierMockRecorder struct {
// contains filtered or unexported fields
}
MockQuerierMockRecorder is the mock recorder for MockQuerier.
func (*MockQuerierMockRecorder) KASURLsByAgentID ¶
func (mr *MockQuerierMockRecorder) KASURLsByAgentID(arg0, arg1 any) *MockQuerierKASURLsByAgentIDCall
KASURLsByAgentID indicates an expected call of KASURLsByAgentID.
type MockTracker ¶
type MockTracker struct {
// contains filtered or unexported fields
}
MockTracker is a mock of Tracker interface.
func NewMockTracker ¶
func NewMockTracker(ctrl *gomock.Controller) *MockTracker
NewMockTracker creates a new mock instance.
func (*MockTracker) EXPECT ¶
func (m *MockTracker) EXPECT() *MockTrackerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTracker) KASURLsByAgentID ¶
KASURLsByAgentID mocks base method.
func (*MockTracker) RegisterTunnel ¶
RegisterTunnel mocks base method.
func (*MockTracker) UnregisterTunnel ¶
func (m *MockTracker) UnregisterTunnel(arg0 context.Context, arg1 int64) error
UnregisterTunnel mocks base method.
type MockTrackerGCCall ¶
MockTrackerGCCall wrap *gomock.Call
func (*MockTrackerGCCall) Do ¶
func (c *MockTrackerGCCall) Do(f func(context.Context, []int64) (int, error)) *MockTrackerGCCall
Do rewrite *gomock.Call.Do
func (*MockTrackerGCCall) DoAndReturn ¶
func (c *MockTrackerGCCall) DoAndReturn(f func(context.Context, []int64) (int, error)) *MockTrackerGCCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerGCCall) Return ¶
func (c *MockTrackerGCCall) Return(arg0 int, arg1 error) *MockTrackerGCCall
Return rewrite *gomock.Call.Return
type MockTrackerKASURLsByAgentIDCall ¶
MockTrackerKASURLsByAgentIDCall wrap *gomock.Call
func (*MockTrackerKASURLsByAgentIDCall) Do ¶
func (c *MockTrackerKASURLsByAgentIDCall) Do(f func(context.Context, int64) ([]string, error)) *MockTrackerKASURLsByAgentIDCall
Do rewrite *gomock.Call.Do
func (*MockTrackerKASURLsByAgentIDCall) DoAndReturn ¶
func (c *MockTrackerKASURLsByAgentIDCall) DoAndReturn(f func(context.Context, int64) ([]string, error)) *MockTrackerKASURLsByAgentIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerKASURLsByAgentIDCall) Return ¶
func (c *MockTrackerKASURLsByAgentIDCall) Return(arg0 []string, arg1 error) *MockTrackerKASURLsByAgentIDCall
Return rewrite *gomock.Call.Return
type MockTrackerMockRecorder ¶
type MockTrackerMockRecorder struct {
// contains filtered or unexported fields
}
MockTrackerMockRecorder is the mock recorder for MockTracker.
func (*MockTrackerMockRecorder) GC ¶
func (mr *MockTrackerMockRecorder) GC(arg0, arg1 any) *MockTrackerGCCall
GC indicates an expected call of GC.
func (*MockTrackerMockRecorder) KASURLsByAgentID ¶
func (mr *MockTrackerMockRecorder) KASURLsByAgentID(arg0, arg1 any) *MockTrackerKASURLsByAgentIDCall
KASURLsByAgentID indicates an expected call of KASURLsByAgentID.
func (*MockTrackerMockRecorder) Refresh ¶
func (mr *MockTrackerMockRecorder) Refresh(arg0, arg1, arg2 any) *MockTrackerRefreshCall
Refresh indicates an expected call of Refresh.
func (*MockTrackerMockRecorder) RegisterTunnel ¶
func (mr *MockTrackerMockRecorder) RegisterTunnel(arg0, arg1, arg2 any) *MockTrackerRegisterTunnelCall
RegisterTunnel indicates an expected call of RegisterTunnel.
func (*MockTrackerMockRecorder) UnregisterTunnel ¶
func (mr *MockTrackerMockRecorder) UnregisterTunnel(arg0, arg1 any) *MockTrackerUnregisterTunnelCall
UnregisterTunnel indicates an expected call of UnregisterTunnel.
type MockTrackerRefreshCall ¶
MockTrackerRefreshCall wrap *gomock.Call
func (*MockTrackerRefreshCall) Do ¶
func (c *MockTrackerRefreshCall) Do(f func(context.Context, time.Duration, []int64) error) *MockTrackerRefreshCall
Do rewrite *gomock.Call.Do
func (*MockTrackerRefreshCall) DoAndReturn ¶
func (c *MockTrackerRefreshCall) DoAndReturn(f func(context.Context, time.Duration, []int64) error) *MockTrackerRefreshCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerRefreshCall) Return ¶
func (c *MockTrackerRefreshCall) Return(arg0 error) *MockTrackerRefreshCall
Return rewrite *gomock.Call.Return
type MockTrackerRegisterTunnelCall ¶
MockTrackerRegisterTunnelCall wrap *gomock.Call
func (*MockTrackerRegisterTunnelCall) Do ¶
func (c *MockTrackerRegisterTunnelCall) Do(f func(context.Context, time.Duration, int64) error) *MockTrackerRegisterTunnelCall
Do rewrite *gomock.Call.Do
func (*MockTrackerRegisterTunnelCall) DoAndReturn ¶
func (c *MockTrackerRegisterTunnelCall) DoAndReturn(f func(context.Context, time.Duration, int64) error) *MockTrackerRegisterTunnelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerRegisterTunnelCall) Return ¶
func (c *MockTrackerRegisterTunnelCall) Return(arg0 error) *MockTrackerRegisterTunnelCall
Return rewrite *gomock.Call.Return
type MockTrackerUnregisterTunnelCall ¶
MockTrackerUnregisterTunnelCall wrap *gomock.Call
func (*MockTrackerUnregisterTunnelCall) Do ¶
func (c *MockTrackerUnregisterTunnelCall) Do(f func(context.Context, int64) error) *MockTrackerUnregisterTunnelCall
Do rewrite *gomock.Call.Do
func (*MockTrackerUnregisterTunnelCall) DoAndReturn ¶
func (c *MockTrackerUnregisterTunnelCall) DoAndReturn(f func(context.Context, int64) error) *MockTrackerUnregisterTunnelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerUnregisterTunnelCall) Return ¶
func (c *MockTrackerUnregisterTunnelCall) Return(arg0 error) *MockTrackerUnregisterTunnelCall
Return rewrite *gomock.Call.Return