Documentation ¶
Index ¶
- type MockBindPlane
- func (_m *MockBindPlane) Authenticator() authenticator.Authenticator
- func (_m *MockBindPlane) BindPlaneInsecureSkipVerify() bool
- func (_m *MockBindPlane) BindPlaneURL() string
- func (_m *MockBindPlane) Logger() *zap.Logger
- func (_m *MockBindPlane) Manager() server.Manager
- func (_m *MockBindPlane) Relayers() server.Relayers
- func (_m *MockBindPlane) SecretKey() string
- func (_m *MockBindPlane) Store() store.Store
- func (_m *MockBindPlane) Versions() agent.Versions
- func (_m *MockBindPlane) WebsocketURL() string
- type MockManager
- func (_m *MockManager) Agent(ctx context.Context, agentID string) (*model.Agent, error)
- func (_m *MockManager) AgentMessages(ctx context.Context) eventbus.Source[server.Message]
- func (_m *MockManager) AgentUpdates(ctx context.Context, agent *model.Agent) (*protocol.AgentUpdates, error)
- func (_m *MockManager) AgentVersion(ctx context.Context, version string) (*model.AgentVersion, error)
- func (_m *MockManager) BindPlaneInsecureSkipVerify() bool
- func (_m *MockManager) BindPlaneURL() string
- func (_m *MockManager) EnableProtocol(_a0 protocol.Protocol)
- func (_m *MockManager) RequestReport(ctx context.Context, agentID string, configuration protocol.Report) error
- func (_m *MockManager) ResourceStore() model.ResourceStore
- func (_m *MockManager) SendAgentMessage(ctx context.Context, message server.Message) error
- func (_m *MockManager) Shutdown(_a0 context.Context) error
- func (_m *MockManager) Start(ctx context.Context)
- func (_m *MockManager) Store() store.Store
- func (_m *MockManager) UpsertAgent(ctx context.Context, agentID string, updater store.AgentUpdater) (*model.Agent, error)
- func (_m *MockManager) VerifySecretKey(ctx context.Context, secretKey string) (context.Context, bool)
- type MockRouteBuilder
- type MockUpdater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBindPlane ¶
MockBindPlane is an autogenerated mock type for the BindPlane type
func NewMockBindPlane ¶
func NewMockBindPlane(t interface { mock.TestingT Cleanup(func()) }) *MockBindPlane
NewMockBindPlane creates a new instance of MockBindPlane. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockBindPlane) Authenticator ¶
func (_m *MockBindPlane) Authenticator() authenticator.Authenticator
Authenticator provides a mock function with given fields:
func (*MockBindPlane) BindPlaneInsecureSkipVerify ¶
func (_m *MockBindPlane) BindPlaneInsecureSkipVerify() bool
BindPlaneInsecureSkipVerify provides a mock function with given fields:
func (*MockBindPlane) BindPlaneURL ¶
func (_m *MockBindPlane) BindPlaneURL() string
BindPlaneURL provides a mock function with given fields:
func (*MockBindPlane) Logger ¶
func (_m *MockBindPlane) Logger() *zap.Logger
Logger provides a mock function with given fields:
func (*MockBindPlane) Manager ¶
func (_m *MockBindPlane) Manager() server.Manager
Manager provides a mock function with given fields:
func (*MockBindPlane) Relayers ¶
func (_m *MockBindPlane) Relayers() server.Relayers
Relayers provides a mock function with given fields:
func (*MockBindPlane) SecretKey ¶
func (_m *MockBindPlane) SecretKey() string
SecretKey provides a mock function with given fields:
func (*MockBindPlane) Store ¶
func (_m *MockBindPlane) Store() store.Store
Store provides a mock function with given fields:
func (*MockBindPlane) Versions ¶
func (_m *MockBindPlane) Versions() agent.Versions
Versions provides a mock function with given fields:
func (*MockBindPlane) WebsocketURL ¶
func (_m *MockBindPlane) WebsocketURL() string
WebsocketURL provides a mock function with given fields:
type MockManager ¶
MockManager is an autogenerated mock type for the Manager type
func NewMockManager ¶
func NewMockManager(t interface { mock.TestingT Cleanup(func()) }) *MockManager
NewMockManager creates a new instance of MockManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockManager) AgentMessages ¶
AgentMessages provides a mock function with given fields: ctx
func (*MockManager) AgentUpdates ¶
func (_m *MockManager) AgentUpdates(ctx context.Context, agent *model.Agent) (*protocol.AgentUpdates, error)
AgentUpdates provides a mock function with given fields: ctx, agent
func (*MockManager) AgentVersion ¶
func (_m *MockManager) AgentVersion(ctx context.Context, version string) (*model.AgentVersion, error)
AgentVersion provides a mock function with given fields: ctx, version
func (*MockManager) BindPlaneInsecureSkipVerify ¶
func (_m *MockManager) BindPlaneInsecureSkipVerify() bool
BindPlaneInsecureSkipVerify provides a mock function with given fields:
func (*MockManager) BindPlaneURL ¶
func (_m *MockManager) BindPlaneURL() string
BindPlaneURL provides a mock function with given fields:
func (*MockManager) EnableProtocol ¶
func (_m *MockManager) EnableProtocol(_a0 protocol.Protocol)
EnableProtocol provides a mock function with given fields: _a0
func (*MockManager) RequestReport ¶
func (_m *MockManager) RequestReport(ctx context.Context, agentID string, configuration protocol.Report) error
RequestReport provides a mock function with given fields: ctx, agentID, configuration
func (*MockManager) ResourceStore ¶
func (_m *MockManager) ResourceStore() model.ResourceStore
ResourceStore provides a mock function with given fields:
func (*MockManager) SendAgentMessage ¶
SendAgentMessage provides a mock function with given fields: ctx, message
func (*MockManager) Shutdown ¶
func (_m *MockManager) Shutdown(_a0 context.Context) error
Shutdown provides a mock function with given fields: _a0
func (*MockManager) Start ¶
func (_m *MockManager) Start(ctx context.Context)
Start provides a mock function with given fields: ctx
func (*MockManager) Store ¶
func (_m *MockManager) Store() store.Store
Store provides a mock function with given fields:
func (*MockManager) UpsertAgent ¶
func (_m *MockManager) UpsertAgent(ctx context.Context, agentID string, updater store.AgentUpdater) (*model.Agent, error)
UpsertAgent provides a mock function with given fields: ctx, agentID, updater
func (*MockManager) VerifySecretKey ¶
func (_m *MockManager) VerifySecretKey(ctx context.Context, secretKey string) (context.Context, bool)
VerifySecretKey provides a mock function with given fields: ctx, secretKey
type MockRouteBuilder ¶
MockRouteBuilder is an autogenerated mock type for the RouteBuilder type
func NewMockRouteBuilder ¶
func NewMockRouteBuilder(t interface { mock.TestingT Cleanup(func()) }) *MockRouteBuilder
NewMockRouteBuilder creates a new instance of MockRouteBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type MockUpdater ¶
MockUpdater is an autogenerated mock type for the Updater type
func NewMockUpdater ¶
func NewMockUpdater(t interface { mock.TestingT Cleanup(func()) }) *MockUpdater
NewMockUpdater creates a new instance of MockUpdater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockUpdater) Start ¶
func (_m *MockUpdater) Start(_a0 context.Context)
Start provides a mock function with given fields: _a0
func (*MockUpdater) Stop ¶
func (_m *MockUpdater) Stop(_a0 context.Context)
Stop provides a mock function with given fields: _a0