Documentation
¶
Overview ¶
Package mock_tunnel_server 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 MockTracker
- func (m *MockTracker) EXPECT() *MockTrackerMockRecorder
- 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 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) KasUrlsByAgentId(arg0, arg1 any) *MockTrackerKasUrlsByAgentIdCall
- func (mr *MockTrackerMockRecorder) Refresh(arg0, arg1 any, 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 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 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) 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 any, 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