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
- type MockRegistererGCCall
- type MockRegistererMockRecorder
- type MockRegistererRegistrationBuilderCall
- func (c *MockRegistererRegistrationBuilderCall) Do(f func() router.RegistrationBuilder) *MockRegistererRegistrationBuilderCall
- func (c *MockRegistererRegistrationBuilderCall) DoAndReturn(f func() router.RegistrationBuilder) *MockRegistererRegistrationBuilderCall
- func (c *MockRegistererRegistrationBuilderCall) Return(arg0 router.RegistrationBuilder) *MockRegistererRegistrationBuilderCall
- type MockRegistrationBuilder
- func (m *MockRegistrationBuilder) Do(arg0 context.Context) error
- func (m *MockRegistrationBuilder) EXPECT() *MockRegistrationBuilderMockRecorder
- func (m *MockRegistrationBuilder) Refresh(ttl time.Duration, agentIDs ...int64)
- func (m *MockRegistrationBuilder) Register(ttl time.Duration, agentIDs ...int64)
- func (m *MockRegistrationBuilder) Unregister(agentIDs ...int64)
- type MockRegistrationBuilderDoCall
- func (c *MockRegistrationBuilderDoCall) Do(f func(context.Context) error) *MockRegistrationBuilderDoCall
- func (c *MockRegistrationBuilderDoCall) DoAndReturn(f func(context.Context) error) *MockRegistrationBuilderDoCall
- func (c *MockRegistrationBuilderDoCall) Return(arg0 error) *MockRegistrationBuilderDoCall
- type MockRegistrationBuilderMockRecorder
- func (mr *MockRegistrationBuilderMockRecorder) Do(arg0 any) *MockRegistrationBuilderDoCall
- func (mr *MockRegistrationBuilderMockRecorder) Refresh(ttl any, agentIDs ...any) *MockRegistrationBuilderRefreshCall
- func (mr *MockRegistrationBuilderMockRecorder) Register(ttl any, agentIDs ...any) *MockRegistrationBuilderRegisterCall
- func (mr *MockRegistrationBuilderMockRecorder) Unregister(agentIDs ...any) *MockRegistrationBuilderUnregisterCall
- type MockRegistrationBuilderRefreshCall
- func (c *MockRegistrationBuilderRefreshCall) Do(f func(time.Duration, ...int64)) *MockRegistrationBuilderRefreshCall
- func (c *MockRegistrationBuilderRefreshCall) DoAndReturn(f func(time.Duration, ...int64)) *MockRegistrationBuilderRefreshCall
- func (c *MockRegistrationBuilderRefreshCall) Return() *MockRegistrationBuilderRefreshCall
- type MockRegistrationBuilderRegisterCall
- func (c *MockRegistrationBuilderRegisterCall) Do(f func(time.Duration, ...int64)) *MockRegistrationBuilderRegisterCall
- func (c *MockRegistrationBuilderRegisterCall) DoAndReturn(f func(time.Duration, ...int64)) *MockRegistrationBuilderRegisterCall
- func (c *MockRegistrationBuilderRegisterCall) Return() *MockRegistrationBuilderRegisterCall
- type MockRegistrationBuilderUnregisterCall
- func (c *MockRegistrationBuilderUnregisterCall) Do(f func(...int64)) *MockRegistrationBuilderUnregisterCall
- func (c *MockRegistrationBuilderUnregisterCall) DoAndReturn(f func(...int64)) *MockRegistrationBuilderUnregisterCall
- func (c *MockRegistrationBuilderUnregisterCall) Return() *MockRegistrationBuilderUnregisterCall
- type MockTracker
- 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
- type MockTrackerRegistrationBuilderCall
- func (c *MockTrackerRegistrationBuilderCall) Do(f func() router.RegistrationBuilder) *MockTrackerRegistrationBuilderCall
- func (c *MockTrackerRegistrationBuilderCall) DoAndReturn(f func() router.RegistrationBuilder) *MockTrackerRegistrationBuilderCall
- func (c *MockTrackerRegistrationBuilderCall) Return(arg0 router.RegistrationBuilder) *MockTrackerRegistrationBuilderCall
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) RegistrationBuilder ¶ added in v17.4.0
func (m *MockRegisterer) RegistrationBuilder() router.RegistrationBuilder
RegistrationBuilder 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) RegistrationBuilder ¶ added in v17.4.0
func (mr *MockRegistererMockRecorder) RegistrationBuilder() *MockRegistererRegistrationBuilderCall
RegistrationBuilder indicates an expected call of RegistrationBuilder.
type MockRegistererRegistrationBuilderCall ¶ added in v17.4.0
MockRegistererRegistrationBuilderCall wrap *gomock.Call
func (*MockRegistererRegistrationBuilderCall) Do ¶ added in v17.4.0
func (c *MockRegistererRegistrationBuilderCall) Do(f func() router.RegistrationBuilder) *MockRegistererRegistrationBuilderCall
Do rewrite *gomock.Call.Do
func (*MockRegistererRegistrationBuilderCall) DoAndReturn ¶ added in v17.4.0
func (c *MockRegistererRegistrationBuilderCall) DoAndReturn(f func() router.RegistrationBuilder) *MockRegistererRegistrationBuilderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistererRegistrationBuilderCall) Return ¶ added in v17.4.0
func (c *MockRegistererRegistrationBuilderCall) Return(arg0 router.RegistrationBuilder) *MockRegistererRegistrationBuilderCall
Return rewrite *gomock.Call.Return
type MockRegistrationBuilder ¶ added in v17.4.0
type MockRegistrationBuilder struct {
// contains filtered or unexported fields
}
MockRegistrationBuilder is a mock of RegistrationBuilder interface.
func NewMockRegistrationBuilder ¶ added in v17.4.0
func NewMockRegistrationBuilder(ctrl *gomock.Controller) *MockRegistrationBuilder
NewMockRegistrationBuilder creates a new mock instance.
func (*MockRegistrationBuilder) Do ¶ added in v17.4.0
func (m *MockRegistrationBuilder) Do(arg0 context.Context) error
Do mocks base method.
func (*MockRegistrationBuilder) EXPECT ¶ added in v17.4.0
func (m *MockRegistrationBuilder) EXPECT() *MockRegistrationBuilderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRegistrationBuilder) Refresh ¶ added in v17.4.0
func (m *MockRegistrationBuilder) Refresh(ttl time.Duration, agentIDs ...int64)
Refresh mocks base method.
func (*MockRegistrationBuilder) Register ¶ added in v17.4.0
func (m *MockRegistrationBuilder) Register(ttl time.Duration, agentIDs ...int64)
Register mocks base method.
func (*MockRegistrationBuilder) Unregister ¶ added in v17.4.0
func (m *MockRegistrationBuilder) Unregister(agentIDs ...int64)
Unregister mocks base method.
type MockRegistrationBuilderDoCall ¶ added in v17.4.0
MockRegistrationBuilderDoCall wrap *gomock.Call
func (*MockRegistrationBuilderDoCall) Do ¶ added in v17.4.0
func (c *MockRegistrationBuilderDoCall) Do(f func(context.Context) error) *MockRegistrationBuilderDoCall
Do rewrite *gomock.Call.Do
func (*MockRegistrationBuilderDoCall) DoAndReturn ¶ added in v17.4.0
func (c *MockRegistrationBuilderDoCall) DoAndReturn(f func(context.Context) error) *MockRegistrationBuilderDoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistrationBuilderDoCall) Return ¶ added in v17.4.0
func (c *MockRegistrationBuilderDoCall) Return(arg0 error) *MockRegistrationBuilderDoCall
Return rewrite *gomock.Call.Return
type MockRegistrationBuilderMockRecorder ¶ added in v17.4.0
type MockRegistrationBuilderMockRecorder struct {
// contains filtered or unexported fields
}
MockRegistrationBuilderMockRecorder is the mock recorder for MockRegistrationBuilder.
func (*MockRegistrationBuilderMockRecorder) Do ¶ added in v17.4.0
func (mr *MockRegistrationBuilderMockRecorder) Do(arg0 any) *MockRegistrationBuilderDoCall
Do indicates an expected call of Do.
func (*MockRegistrationBuilderMockRecorder) Refresh ¶ added in v17.4.0
func (mr *MockRegistrationBuilderMockRecorder) Refresh(ttl any, agentIDs ...any) *MockRegistrationBuilderRefreshCall
Refresh indicates an expected call of Refresh.
func (*MockRegistrationBuilderMockRecorder) Register ¶ added in v17.4.0
func (mr *MockRegistrationBuilderMockRecorder) Register(ttl any, agentIDs ...any) *MockRegistrationBuilderRegisterCall
Register indicates an expected call of Register.
func (*MockRegistrationBuilderMockRecorder) Unregister ¶ added in v17.4.0
func (mr *MockRegistrationBuilderMockRecorder) Unregister(agentIDs ...any) *MockRegistrationBuilderUnregisterCall
Unregister indicates an expected call of Unregister.
type MockRegistrationBuilderRefreshCall ¶ added in v17.4.0
MockRegistrationBuilderRefreshCall wrap *gomock.Call
func (*MockRegistrationBuilderRefreshCall) Do ¶ added in v17.4.0
func (c *MockRegistrationBuilderRefreshCall) Do(f func(time.Duration, ...int64)) *MockRegistrationBuilderRefreshCall
Do rewrite *gomock.Call.Do
func (*MockRegistrationBuilderRefreshCall) DoAndReturn ¶ added in v17.4.0
func (c *MockRegistrationBuilderRefreshCall) DoAndReturn(f func(time.Duration, ...int64)) *MockRegistrationBuilderRefreshCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistrationBuilderRefreshCall) Return ¶ added in v17.4.0
func (c *MockRegistrationBuilderRefreshCall) Return() *MockRegistrationBuilderRefreshCall
Return rewrite *gomock.Call.Return
type MockRegistrationBuilderRegisterCall ¶ added in v17.4.0
MockRegistrationBuilderRegisterCall wrap *gomock.Call
func (*MockRegistrationBuilderRegisterCall) Do ¶ added in v17.4.0
func (c *MockRegistrationBuilderRegisterCall) Do(f func(time.Duration, ...int64)) *MockRegistrationBuilderRegisterCall
Do rewrite *gomock.Call.Do
func (*MockRegistrationBuilderRegisterCall) DoAndReturn ¶ added in v17.4.0
func (c *MockRegistrationBuilderRegisterCall) DoAndReturn(f func(time.Duration, ...int64)) *MockRegistrationBuilderRegisterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistrationBuilderRegisterCall) Return ¶ added in v17.4.0
func (c *MockRegistrationBuilderRegisterCall) Return() *MockRegistrationBuilderRegisterCall
Return rewrite *gomock.Call.Return
type MockRegistrationBuilderUnregisterCall ¶ added in v17.4.0
MockRegistrationBuilderUnregisterCall wrap *gomock.Call
func (*MockRegistrationBuilderUnregisterCall) Do ¶ added in v17.4.0
func (c *MockRegistrationBuilderUnregisterCall) Do(f func(...int64)) *MockRegistrationBuilderUnregisterCall
Do rewrite *gomock.Call.Do
func (*MockRegistrationBuilderUnregisterCall) DoAndReturn ¶ added in v17.4.0
func (c *MockRegistrationBuilderUnregisterCall) DoAndReturn(f func(...int64)) *MockRegistrationBuilderUnregisterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistrationBuilderUnregisterCall) Return ¶ added in v17.4.0
func (c *MockRegistrationBuilderUnregisterCall) Return() *MockRegistrationBuilderUnregisterCall
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) RegistrationBuilder ¶ added in v17.4.0
func (m *MockTracker) RegistrationBuilder() router.RegistrationBuilder
RegistrationBuilder 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) RegistrationBuilder ¶ added in v17.4.0
func (mr *MockTrackerMockRecorder) RegistrationBuilder() *MockTrackerRegistrationBuilderCall
RegistrationBuilder indicates an expected call of RegistrationBuilder.
type MockTrackerRegistrationBuilderCall ¶ added in v17.4.0
MockTrackerRegistrationBuilderCall wrap *gomock.Call
func (*MockTrackerRegistrationBuilderCall) Do ¶ added in v17.4.0
func (c *MockTrackerRegistrationBuilderCall) Do(f func() router.RegistrationBuilder) *MockTrackerRegistrationBuilderCall
Do rewrite *gomock.Call.Do
func (*MockTrackerRegistrationBuilderCall) DoAndReturn ¶ added in v17.4.0
func (c *MockTrackerRegistrationBuilderCall) DoAndReturn(f func() router.RegistrationBuilder) *MockTrackerRegistrationBuilderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerRegistrationBuilderCall) Return ¶ added in v17.4.0
func (c *MockTrackerRegistrationBuilderCall) Return(arg0 router.RegistrationBuilder) *MockTrackerRegistrationBuilderCall
Return rewrite *gomock.Call.Return