Documentation
¶
Overview ¶
Package mock_reverse_tunnel_tunnel is a generated GoMock package.
Index ¶
- type MockFindHandle
- type MockFindHandleMockRecorder
- type MockFinder
- type MockFinderMockRecorder
- type MockHandler
- type MockHandlerMockRecorder
- type MockPollingQuerier
- type MockPollingQuerierMockRecorder
- type MockTracker
- func (m *MockTracker) EXPECT() *MockTrackerMockRecorder
- func (m *MockTracker) GC() func(context.Context) (int, error)
- func (m *MockTracker) KasUrlsByAgentId(arg0 context.Context, arg1 int64, arg2 tunnel.KasUrlsByAgentIdCallback) error
- func (m *MockTracker) Refresh(arg0 context.Context, arg1 time.Time) error
- func (m *MockTracker) RegisterTunnel(arg0 context.Context, arg1 int64) error
- func (m *MockTracker) UnregisterTunnel(arg0 context.Context, arg1 int64) error
- type MockTrackerMockRecorder
- func (mr *MockTrackerMockRecorder) GC() *gomock.Call
- func (mr *MockTrackerMockRecorder) KasUrlsByAgentId(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTrackerMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTrackerMockRecorder) RegisterTunnel(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTrackerMockRecorder) UnregisterTunnel(arg0, arg1 interface{}) *gomock.Call
- type MockTunnel
- type MockTunnelMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFindHandle ¶
type MockFindHandle struct {
// contains filtered or unexported fields
}
MockFindHandle is a mock of FindHandle interface.
func NewMockFindHandle ¶
func NewMockFindHandle(ctrl *gomock.Controller) *MockFindHandle
NewMockFindHandle creates a new mock instance.
func (*MockFindHandle) EXPECT ¶
func (m *MockFindHandle) EXPECT() *MockFindHandleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockFindHandleMockRecorder ¶
type MockFindHandleMockRecorder struct {
// contains filtered or unexported fields
}
MockFindHandleMockRecorder is the mock recorder for MockFindHandle.
func (*MockFindHandleMockRecorder) Done ¶
func (mr *MockFindHandleMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done.
func (*MockFindHandleMockRecorder) Get ¶
func (mr *MockFindHandleMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockFinder ¶
type MockFinder struct {
// contains filtered or unexported fields
}
MockFinder is a mock of Finder interface.
func NewMockFinder ¶
func NewMockFinder(ctrl *gomock.Controller) *MockFinder
NewMockFinder creates a new mock instance.
func (*MockFinder) EXPECT ¶
func (m *MockFinder) EXPECT() *MockFinderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFinder) FindTunnel ¶
func (m *MockFinder) FindTunnel(arg0 context.Context, arg1 int64, arg2, arg3 string) (bool, tunnel.FindHandle)
FindTunnel mocks base method.
type MockFinderMockRecorder ¶
type MockFinderMockRecorder struct {
// contains filtered or unexported fields
}
MockFinderMockRecorder is the mock recorder for MockFinder.
func (*MockFinderMockRecorder) FindTunnel ¶
func (mr *MockFinderMockRecorder) FindTunnel(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
FindTunnel indicates an expected call of FindTunnel.
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 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 interface{}) *gomock.Call
HandleTunnel indicates an expected call of HandleTunnel.
type MockPollingQuerier ¶
type MockPollingQuerier struct {
// contains filtered or unexported fields
}
MockPollingQuerier is a mock of PollingQuerier interface.
func NewMockPollingQuerier ¶
func NewMockPollingQuerier(ctrl *gomock.Controller) *MockPollingQuerier
NewMockPollingQuerier creates a new mock instance.
func (*MockPollingQuerier) CachedKasUrlsByAgentId ¶
func (m *MockPollingQuerier) CachedKasUrlsByAgentId(arg0 int64) []string
CachedKasUrlsByAgentId mocks base method.
func (*MockPollingQuerier) EXPECT ¶
func (m *MockPollingQuerier) EXPECT() *MockPollingQuerierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPollingQuerier) PollKasUrlsByAgentId ¶
func (m *MockPollingQuerier) PollKasUrlsByAgentId(arg0 context.Context, arg1 int64, arg2 tunnel.PollKasUrlsByAgentIdCallback)
PollKasUrlsByAgentId mocks base method.
type MockPollingQuerierMockRecorder ¶
type MockPollingQuerierMockRecorder struct {
// contains filtered or unexported fields
}
MockPollingQuerierMockRecorder is the mock recorder for MockPollingQuerier.
func (*MockPollingQuerierMockRecorder) CachedKasUrlsByAgentId ¶
func (mr *MockPollingQuerierMockRecorder) CachedKasUrlsByAgentId(arg0 interface{}) *gomock.Call
CachedKasUrlsByAgentId indicates an expected call of CachedKasUrlsByAgentId.
func (*MockPollingQuerierMockRecorder) PollKasUrlsByAgentId ¶
func (mr *MockPollingQuerierMockRecorder) PollKasUrlsByAgentId(arg0, arg1, arg2 interface{}) *gomock.Call
PollKasUrlsByAgentId indicates an expected call of PollKasUrlsByAgentId.
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) GC ¶
func (m *MockTracker) GC() func(context.Context) (int, error)
GC mocks base method.
func (*MockTracker) KasUrlsByAgentId ¶
func (m *MockTracker) KasUrlsByAgentId(arg0 context.Context, arg1 int64, arg2 tunnel.KasUrlsByAgentIdCallback) error
KasUrlsByAgentId mocks base method.
func (*MockTracker) RegisterTunnel ¶
func (m *MockTracker) RegisterTunnel(arg0 context.Context, arg1 int64) error
RegisterTunnel mocks base method.
func (*MockTracker) UnregisterTunnel ¶
func (m *MockTracker) UnregisterTunnel(arg0 context.Context, arg1 int64) error
UnregisterTunnel mocks base method.
type MockTrackerMockRecorder ¶
type MockTrackerMockRecorder struct {
// contains filtered or unexported fields
}
MockTrackerMockRecorder is the mock recorder for MockTracker.
func (*MockTrackerMockRecorder) GC ¶
func (mr *MockTrackerMockRecorder) GC() *gomock.Call
GC indicates an expected call of GC.
func (*MockTrackerMockRecorder) KasUrlsByAgentId ¶
func (mr *MockTrackerMockRecorder) KasUrlsByAgentId(arg0, arg1, arg2 interface{}) *gomock.Call
KasUrlsByAgentId indicates an expected call of KasUrlsByAgentId.
func (*MockTrackerMockRecorder) Refresh ¶
func (mr *MockTrackerMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
Refresh indicates an expected call of Refresh.
func (*MockTrackerMockRecorder) RegisterTunnel ¶
func (mr *MockTrackerMockRecorder) RegisterTunnel(arg0, arg1 interface{}) *gomock.Call
RegisterTunnel indicates an expected call of RegisterTunnel.
func (*MockTrackerMockRecorder) UnregisterTunnel ¶
func (mr *MockTrackerMockRecorder) UnregisterTunnel(arg0, arg1 interface{}) *gomock.Call
UnregisterTunnel indicates an expected call of UnregisterTunnel.
type MockTunnel ¶
type MockTunnel struct {
// contains filtered or unexported fields
}
MockTunnel is a mock of Tunnel interface.
func NewMockTunnel ¶
func NewMockTunnel(ctrl *gomock.Controller) *MockTunnel
NewMockTunnel creates a new mock instance.
func (*MockTunnel) EXPECT ¶
func (m *MockTunnel) EXPECT() *MockTunnelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTunnel) ForwardStream ¶
func (m *MockTunnel) ForwardStream(arg0 *zap.Logger, arg1 tunnel.RpcApi, arg2 grpc.ServerStream, arg3 tunnel.DataCallback) error
ForwardStream mocks base method.
type MockTunnelMockRecorder ¶
type MockTunnelMockRecorder struct {
// contains filtered or unexported fields
}
MockTunnelMockRecorder is the mock recorder for MockTunnel.
func (*MockTunnelMockRecorder) Done ¶
func (mr *MockTunnelMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done.
func (*MockTunnelMockRecorder) ForwardStream ¶
func (mr *MockTunnelMockRecorder) ForwardStream(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ForwardStream indicates an expected call of ForwardStream.