Documentation ¶
Overview ¶
Package mock_agentk2kas_router is a generated GoMock package.
Package mock_agentk2kas_router is a generated GoMock package.
Index ¶
- type MockHandler
- type MockHandlerHandleTunnelCall
- func (c *MockHandlerHandleTunnelCall) Do(f func(context.Context, *api.AgentInfo, ...) error) *MockHandlerHandleTunnelCall
- func (c *MockHandlerHandleTunnelCall) DoAndReturn(f func(context.Context, *api.AgentInfo, ...) 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 MockRegisterer
- func (m *MockRegisterer) EXPECT() *MockRegistererMockRecorder
- func (m *MockRegisterer) GC(ctx context.Context, agentIDs []int64) (int, error)
- func (m *MockRegisterer) Refresh(ctx context.Context, ttl time.Duration, agentIDs []int64) error
- func (m *MockRegisterer) RegisterTunnel(ctx context.Context, ttl time.Duration, agentID int64) error
- func (m *MockRegisterer) UnregisterTunnel(ctx context.Context, agentID int64) error
- type MockRegistererGCCall
- type MockRegistererMockRecorder
- func (mr *MockRegistererMockRecorder) GC(ctx, agentIDs any) *MockRegistererGCCall
- func (mr *MockRegistererMockRecorder) Refresh(ctx, ttl, agentIDs any) *MockRegistererRefreshCall
- func (mr *MockRegistererMockRecorder) RegisterTunnel(ctx, ttl, agentID any) *MockRegistererRegisterTunnelCall
- func (mr *MockRegistererMockRecorder) UnregisterTunnel(ctx, agentID any) *MockRegistererUnregisterTunnelCall
- type MockRegistererRefreshCall
- func (c *MockRegistererRefreshCall) Do(f func(context.Context, time.Duration, []int64) error) *MockRegistererRefreshCall
- func (c *MockRegistererRefreshCall) DoAndReturn(f func(context.Context, time.Duration, []int64) error) *MockRegistererRefreshCall
- func (c *MockRegistererRefreshCall) Return(arg0 error) *MockRegistererRefreshCall
- type MockRegistererRegisterTunnelCall
- func (c *MockRegistererRegisterTunnelCall) Do(f func(context.Context, time.Duration, int64) error) *MockRegistererRegisterTunnelCall
- func (c *MockRegistererRegisterTunnelCall) DoAndReturn(f func(context.Context, time.Duration, int64) error) *MockRegistererRegisterTunnelCall
- func (c *MockRegistererRegisterTunnelCall) Return(arg0 error) *MockRegistererRegisterTunnelCall
- type MockRegistererUnregisterTunnelCall
- func (c *MockRegistererUnregisterTunnelCall) Do(f func(context.Context, int64) error) *MockRegistererUnregisterTunnelCall
- func (c *MockRegistererUnregisterTunnelCall) DoAndReturn(f func(context.Context, int64) error) *MockRegistererUnregisterTunnelCall
- func (c *MockRegistererUnregisterTunnelCall) Return(arg0 error) *MockRegistererUnregisterTunnelCall
- type MockTracker
- func (m *MockTracker) EXPECT() *MockTrackerMockRecorder
- func (m *MockTracker) GC(ctx context.Context, agentIDs []int64) (int, error)
- func (m *MockTracker) KASURLsByAgentID(ctx context.Context, agentID int64) ([]string, error)
- func (m *MockTracker) Refresh(ctx context.Context, ttl time.Duration, agentIDs []int64) error
- func (m *MockTracker) RegisterTunnel(ctx context.Context, ttl time.Duration, agentID int64) error
- func (m *MockTracker) UnregisterTunnel(ctx context.Context, agentID 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(ctx, agentIDs any) *MockTrackerGCCall
- func (mr *MockTrackerMockRecorder) KASURLsByAgentID(ctx, agentID any) *MockTrackerKASURLsByAgentIDCall
- func (mr *MockTrackerMockRecorder) Refresh(ctx, ttl, agentIDs any) *MockTrackerRefreshCall
- func (mr *MockTrackerMockRecorder) RegisterTunnel(ctx, ttl, agentID any) *MockTrackerRegisterTunnelCall
- func (mr *MockTrackerMockRecorder) UnregisterTunnel(ctx, agentID 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(ageCtx context.Context, agentInfo *api.AgentInfo, server grpc.BidiStreamingServer[rpc.ConnectRequest, rpc.ConnectResponse]) error
HandleTunnel mocks base method.
type MockHandlerHandleTunnelCall ¶
MockHandlerHandleTunnelCall wrap *gomock.Call
func (*MockHandlerHandleTunnelCall) Do ¶
func (c *MockHandlerHandleTunnelCall) Do(f func(context.Context, *api.AgentInfo, grpc.BidiStreamingServer[rpc.ConnectRequest, rpc.ConnectResponse]) error) *MockHandlerHandleTunnelCall
Do rewrite *gomock.Call.Do
func (*MockHandlerHandleTunnelCall) DoAndReturn ¶
func (c *MockHandlerHandleTunnelCall) DoAndReturn(f func(context.Context, *api.AgentInfo, grpc.BidiStreamingServer[rpc.ConnectRequest, rpc.ConnectResponse]) 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(ageCtx, agentInfo, server 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(ctx, agentID any) *MockQuerierKASURLsByAgentIDCall
KASURLsByAgentID indicates an expected call of KASURLsByAgentID.
type MockRegisterer ¶ added in v17.3.0
type MockRegisterer struct {
// contains filtered or unexported fields
}
MockRegisterer is a mock of Registerer interface.
func NewMockRegisterer ¶ added in v17.3.0
func NewMockRegisterer(ctrl *gomock.Controller) *MockRegisterer
NewMockRegisterer creates a new mock instance.
func (*MockRegisterer) EXPECT ¶ added in v17.3.0
func (m *MockRegisterer) EXPECT() *MockRegistererMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRegisterer) RegisterTunnel ¶ added in v17.3.0
func (m *MockRegisterer) RegisterTunnel(ctx context.Context, ttl time.Duration, agentID int64) error
RegisterTunnel mocks base method.
func (*MockRegisterer) UnregisterTunnel ¶ added in v17.3.0
func (m *MockRegisterer) UnregisterTunnel(ctx context.Context, agentID int64) error
UnregisterTunnel mocks base method.
type MockRegistererGCCall ¶ added in v17.3.0
MockRegistererGCCall wrap *gomock.Call
func (*MockRegistererGCCall) Do ¶ added in v17.3.0
func (c *MockRegistererGCCall) Do(f func(context.Context, []int64) (int, error)) *MockRegistererGCCall
Do rewrite *gomock.Call.Do
func (*MockRegistererGCCall) DoAndReturn ¶ added in v17.3.0
func (c *MockRegistererGCCall) DoAndReturn(f func(context.Context, []int64) (int, error)) *MockRegistererGCCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistererGCCall) Return ¶ added in v17.3.0
func (c *MockRegistererGCCall) Return(arg0 int, arg1 error) *MockRegistererGCCall
Return rewrite *gomock.Call.Return
type MockRegistererMockRecorder ¶ added in v17.3.0
type MockRegistererMockRecorder struct {
// contains filtered or unexported fields
}
MockRegistererMockRecorder is the mock recorder for MockRegisterer.
func (*MockRegistererMockRecorder) GC ¶ added in v17.3.0
func (mr *MockRegistererMockRecorder) GC(ctx, agentIDs any) *MockRegistererGCCall
GC indicates an expected call of GC.
func (*MockRegistererMockRecorder) Refresh ¶ added in v17.3.0
func (mr *MockRegistererMockRecorder) Refresh(ctx, ttl, agentIDs any) *MockRegistererRefreshCall
Refresh indicates an expected call of Refresh.
func (*MockRegistererMockRecorder) RegisterTunnel ¶ added in v17.3.0
func (mr *MockRegistererMockRecorder) RegisterTunnel(ctx, ttl, agentID any) *MockRegistererRegisterTunnelCall
RegisterTunnel indicates an expected call of RegisterTunnel.
func (*MockRegistererMockRecorder) UnregisterTunnel ¶ added in v17.3.0
func (mr *MockRegistererMockRecorder) UnregisterTunnel(ctx, agentID any) *MockRegistererUnregisterTunnelCall
UnregisterTunnel indicates an expected call of UnregisterTunnel.
type MockRegistererRefreshCall ¶ added in v17.3.0
MockRegistererRefreshCall wrap *gomock.Call
func (*MockRegistererRefreshCall) Do ¶ added in v17.3.0
func (c *MockRegistererRefreshCall) Do(f func(context.Context, time.Duration, []int64) error) *MockRegistererRefreshCall
Do rewrite *gomock.Call.Do
func (*MockRegistererRefreshCall) DoAndReturn ¶ added in v17.3.0
func (c *MockRegistererRefreshCall) DoAndReturn(f func(context.Context, time.Duration, []int64) error) *MockRegistererRefreshCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistererRefreshCall) Return ¶ added in v17.3.0
func (c *MockRegistererRefreshCall) Return(arg0 error) *MockRegistererRefreshCall
Return rewrite *gomock.Call.Return
type MockRegistererRegisterTunnelCall ¶ added in v17.3.0
MockRegistererRegisterTunnelCall wrap *gomock.Call
func (*MockRegistererRegisterTunnelCall) Do ¶ added in v17.3.0
func (c *MockRegistererRegisterTunnelCall) Do(f func(context.Context, time.Duration, int64) error) *MockRegistererRegisterTunnelCall
Do rewrite *gomock.Call.Do
func (*MockRegistererRegisterTunnelCall) DoAndReturn ¶ added in v17.3.0
func (c *MockRegistererRegisterTunnelCall) DoAndReturn(f func(context.Context, time.Duration, int64) error) *MockRegistererRegisterTunnelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistererRegisterTunnelCall) Return ¶ added in v17.3.0
func (c *MockRegistererRegisterTunnelCall) Return(arg0 error) *MockRegistererRegisterTunnelCall
Return rewrite *gomock.Call.Return
type MockRegistererUnregisterTunnelCall ¶ added in v17.3.0
MockRegistererUnregisterTunnelCall wrap *gomock.Call
func (*MockRegistererUnregisterTunnelCall) Do ¶ added in v17.3.0
func (c *MockRegistererUnregisterTunnelCall) Do(f func(context.Context, int64) error) *MockRegistererUnregisterTunnelCall
Do rewrite *gomock.Call.Do
func (*MockRegistererUnregisterTunnelCall) DoAndReturn ¶ added in v17.3.0
func (c *MockRegistererUnregisterTunnelCall) DoAndReturn(f func(context.Context, int64) error) *MockRegistererUnregisterTunnelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistererUnregisterTunnelCall) Return ¶ added in v17.3.0
func (c *MockRegistererUnregisterTunnelCall) Return(arg0 error) *MockRegistererUnregisterTunnelCall
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 ¶
KASURLsByAgentID mocks base method.
func (*MockTracker) RegisterTunnel ¶
RegisterTunnel mocks base method.
func (*MockTracker) UnregisterTunnel ¶
func (m *MockTracker) UnregisterTunnel(ctx context.Context, agentID 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(ctx, agentIDs any) *MockTrackerGCCall
GC indicates an expected call of GC.
func (*MockTrackerMockRecorder) KASURLsByAgentID ¶
func (mr *MockTrackerMockRecorder) KASURLsByAgentID(ctx, agentID any) *MockTrackerKASURLsByAgentIDCall
KASURLsByAgentID indicates an expected call of KASURLsByAgentID.
func (*MockTrackerMockRecorder) Refresh ¶
func (mr *MockTrackerMockRecorder) Refresh(ctx, ttl, agentIDs any) *MockTrackerRefreshCall
Refresh indicates an expected call of Refresh.
func (*MockTrackerMockRecorder) RegisterTunnel ¶
func (mr *MockTrackerMockRecorder) RegisterTunnel(ctx, ttl, agentID any) *MockTrackerRegisterTunnelCall
RegisterTunnel indicates an expected call of RegisterTunnel.
func (*MockTrackerMockRecorder) UnregisterTunnel ¶
func (mr *MockTrackerMockRecorder) UnregisterTunnel(ctx, agentID 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