mock_tunnel_server

package
v16.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mock_tunnel_server is a generated GoMock package.

Index

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) Done

func (m *MockFindHandle) Done(arg0 context.Context)

Done mocks base method.

func (*MockFindHandle) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFindHandle) Get

func (m *MockFindHandle) Get(arg0 context.Context) (server.Tunnel, error)

Get mocks base method.

type MockFindHandleDoneCall

type MockFindHandleDoneCall struct {
	*gomock.Call
}

MockFindHandleDoneCall wrap *gomock.Call

func (*MockFindHandleDoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockFindHandleDoneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFindHandleDoneCall) Return

Return rewrite *gomock.Call.Return

type MockFindHandleGetCall

type MockFindHandleGetCall struct {
	*gomock.Call
}

MockFindHandleGetCall wrap *gomock.Call

func (*MockFindHandleGetCall) Do

Do rewrite *gomock.Call.Do

func (*MockFindHandleGetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFindHandleGetCall) Return

Return rewrite *gomock.Call.Return

type MockFindHandleMockRecorder

type MockFindHandleMockRecorder struct {
	// contains filtered or unexported fields
}

MockFindHandleMockRecorder is the mock recorder for MockFindHandle.

func (*MockFindHandleMockRecorder) Done

Done indicates an expected call of Done.

func (*MockFindHandleMockRecorder) Get

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, server.FindHandle)

FindTunnel mocks base method.

type MockFinderFindTunnelCall

type MockFinderFindTunnelCall struct {
	*gomock.Call
}

MockFinderFindTunnelCall wrap *gomock.Call

func (*MockFinderFindTunnelCall) Do

Do rewrite *gomock.Call.Do

func (*MockFinderFindTunnelCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFinderFindTunnelCall) Return

Return rewrite *gomock.Call.Return

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 any) *MockFinderFindTunnelCall

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 MockHandlerHandleTunnelCall

type MockHandlerHandleTunnelCall struct {
	*gomock.Call
}

MockHandlerHandleTunnelCall wrap *gomock.Call

func (*MockHandlerHandleTunnelCall) Do

Do rewrite *gomock.Call.Do

func (*MockHandlerHandleTunnelCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHandlerHandleTunnelCall) Return

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 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

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 server.PollKasUrlsByAgentIdCallback)

PollKasUrlsByAgentId mocks base method.

type MockPollingQuerierCachedKasUrlsByAgentIdCall

type MockPollingQuerierCachedKasUrlsByAgentIdCall struct {
	*gomock.Call
}

MockPollingQuerierCachedKasUrlsByAgentIdCall wrap *gomock.Call

func (*MockPollingQuerierCachedKasUrlsByAgentIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockPollingQuerierCachedKasUrlsByAgentIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockPollingQuerierCachedKasUrlsByAgentIdCall) Return

Return rewrite *gomock.Call.Return

type MockPollingQuerierMockRecorder

type MockPollingQuerierMockRecorder struct {
	// contains filtered or unexported fields
}

MockPollingQuerierMockRecorder is the mock recorder for MockPollingQuerier.

func (*MockPollingQuerierMockRecorder) CachedKasUrlsByAgentId

CachedKasUrlsByAgentId indicates an expected call of CachedKasUrlsByAgentId.

func (*MockPollingQuerierMockRecorder) PollKasUrlsByAgentId

func (mr *MockPollingQuerierMockRecorder) PollKasUrlsByAgentId(arg0, arg1, arg2 any) *MockPollingQuerierPollKasUrlsByAgentIdCall

PollKasUrlsByAgentId indicates an expected call of PollKasUrlsByAgentId.

type MockPollingQuerierPollKasUrlsByAgentIdCall

type MockPollingQuerierPollKasUrlsByAgentIdCall struct {
	*gomock.Call
}

MockPollingQuerierPollKasUrlsByAgentIdCall wrap *gomock.Call

func (*MockPollingQuerierPollKasUrlsByAgentIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockPollingQuerierPollKasUrlsByAgentIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockPollingQuerierPollKasUrlsByAgentIdCall) Return

Return rewrite *gomock.Call.Return

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

func (m *MockTracker) KasUrlsByAgentId(arg0 context.Context, arg1 int64) ([]string, error)

KasUrlsByAgentId mocks base method.

func (*MockTracker) Refresh

func (m *MockTracker) Refresh(arg0 context.Context, arg1 time.Duration, arg2 ...int64) error

Refresh mocks base method.

func (*MockTracker) RegisterTunnel

func (m *MockTracker) RegisterTunnel(arg0 context.Context, arg1 time.Duration, arg2 int64) error

RegisterTunnel mocks base method.

func (*MockTracker) UnregisterTunnel

func (m *MockTracker) UnregisterTunnel(arg0 context.Context, arg1 int64) error

UnregisterTunnel mocks base method.

type MockTrackerKasUrlsByAgentIdCall

type MockTrackerKasUrlsByAgentIdCall struct {
	*gomock.Call
}

MockTrackerKasUrlsByAgentIdCall wrap *gomock.Call

func (*MockTrackerKasUrlsByAgentIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockTrackerKasUrlsByAgentIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTrackerKasUrlsByAgentIdCall) Return

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

type MockTrackerRefreshCall struct {
	*gomock.Call
}

MockTrackerRefreshCall wrap *gomock.Call

func (*MockTrackerRefreshCall) Do

Do rewrite *gomock.Call.Do

func (*MockTrackerRefreshCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTrackerRefreshCall) Return

Return rewrite *gomock.Call.Return

type MockTrackerRegisterTunnelCall

type MockTrackerRegisterTunnelCall struct {
	*gomock.Call
}

MockTrackerRegisterTunnelCall wrap *gomock.Call

func (*MockTrackerRegisterTunnelCall) Do

Do rewrite *gomock.Call.Do

func (*MockTrackerRegisterTunnelCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTrackerRegisterTunnelCall) Return

Return rewrite *gomock.Call.Return

type MockTrackerUnregisterTunnelCall

type MockTrackerUnregisterTunnelCall struct {
	*gomock.Call
}

MockTrackerUnregisterTunnelCall wrap *gomock.Call

func (*MockTrackerUnregisterTunnelCall) Do

Do rewrite *gomock.Call.Do

func (*MockTrackerUnregisterTunnelCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTrackerUnregisterTunnelCall) Return

Return rewrite *gomock.Call.Return

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) Done

func (m *MockTunnel) Done(arg0 context.Context)

Done mocks base method.

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 server.RpcApi, arg2 grpc.ServerStream, arg3 server.DataCallback) error

ForwardStream mocks base method.

type MockTunnelDoneCall

type MockTunnelDoneCall struct {
	*gomock.Call
}

MockTunnelDoneCall wrap *gomock.Call

func (*MockTunnelDoneCall) Do

Do rewrite *gomock.Call.Do

func (*MockTunnelDoneCall) DoAndReturn

func (c *MockTunnelDoneCall) DoAndReturn(f func(context.Context)) *MockTunnelDoneCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTunnelDoneCall) Return

Return rewrite *gomock.Call.Return

type MockTunnelForwardStreamCall

type MockTunnelForwardStreamCall struct {
	*gomock.Call
}

MockTunnelForwardStreamCall wrap *gomock.Call

func (*MockTunnelForwardStreamCall) Do

Do rewrite *gomock.Call.Do

func (*MockTunnelForwardStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTunnelForwardStreamCall) Return

Return rewrite *gomock.Call.Return

type MockTunnelMockRecorder

type MockTunnelMockRecorder struct {
	// contains filtered or unexported fields
}

MockTunnelMockRecorder is the mock recorder for MockTunnel.

func (*MockTunnelMockRecorder) Done

Done indicates an expected call of Done.

func (*MockTunnelMockRecorder) ForwardStream

func (mr *MockTunnelMockRecorder) ForwardStream(arg0, arg1, arg2, arg3 any) *MockTunnelForwardStreamCall

ForwardStream indicates an expected call of ForwardStream.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL