Documentation ¶
Index ¶
- type Connection
- type Manager
- func (_m *Manager) Agent(ctx context.Context, agentID string) (*model.Agent, error)
- func (_m *Manager) AgentUpdates(ctx context.Context, _a1 *model.Agent) (*server.AgentUpdates, error)
- func (_m *Manager) AgentVersion(ctx context.Context, version string) (*model.AgentVersion, error)
- func (_m *Manager) EnableProtocol(_a0 server.Protocol)
- func (_m *Manager) RequestReport(ctx context.Context, agentID string, configuration report.Configuration) error
- func (_m *Manager) ResourceStore() model.ResourceStore
- func (_m *Manager) Start(ctx context.Context)
- func (_m *Manager) UpsertAgent(ctx context.Context, agentID string, updater store.AgentUpdater) (*model.Agent, error)
- func (_m *Manager) VerifySecretKey(ctx context.Context, secretKey string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
Connection is an autogenerated mock type for the Connection type
func NewConnection ¶
func NewConnection(t testing.TB) *Connection
NewConnection creates a new instance of Connection. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*Connection) RemoteAddr ¶
func (_m *Connection) RemoteAddr() net.Addr
RemoteAddr provides a mock function with given fields:
func (*Connection) Send ¶
func (_m *Connection) Send(ctx context.Context, message *protobufs.ServerToAgent) error
Send provides a mock function with given fields: ctx, message
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*Manager) AgentUpdates ¶
func (_m *Manager) AgentUpdates(ctx context.Context, _a1 *model.Agent) (*server.AgentUpdates, error)
AgentUpdates provides a mock function with given fields: ctx, _a1
func (*Manager) AgentVersion ¶ added in v1.0.0
AgentVersion provides a mock function with given fields: ctx, version
func (*Manager) EnableProtocol ¶
EnableProtocol provides a mock function with given fields: _a0
func (*Manager) RequestReport ¶ added in v1.1.0
func (_m *Manager) RequestReport(ctx context.Context, agentID string, configuration report.Configuration) error
RequestReport sends report configuration to the specified agent
func (*Manager) ResourceStore ¶
func (_m *Manager) ResourceStore() model.ResourceStore
ResourceStore provides a mock function with given fields: