Documentation ¶
Index ¶
- type MockProtocol
- func (_m *MockProtocol) Connected(agentID string) bool
- func (_m *MockProtocol) ConnectedAgentIDs(_a0 context.Context) ([]string, error)
- func (_m *MockProtocol) Disconnect(agentID string) bool
- func (_m *MockProtocol) Name() string
- func (_m *MockProtocol) RequestReport(ctx context.Context, agentID string, report protocol.Report) error
- func (_m *MockProtocol) SendHeartbeat(agentID string) error
- func (_m *MockProtocol) Shutdown(ctx context.Context) error
- func (_m *MockProtocol) UpdateAgent(_a0 context.Context, _a1 *model.Agent, _a2 *protocol.AgentUpdates) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProtocol ¶
MockProtocol is an autogenerated mock type for the Protocol type
func NewMockProtocol ¶
func NewMockProtocol(t interface { mock.TestingT Cleanup(func()) }) *MockProtocol
NewMockProtocol creates a new instance of MockProtocol. 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 (*MockProtocol) Connected ¶
func (_m *MockProtocol) Connected(agentID string) bool
Connected provides a mock function with given fields: agentID
func (*MockProtocol) ConnectedAgentIDs ¶
func (_m *MockProtocol) ConnectedAgentIDs(_a0 context.Context) ([]string, error)
ConnectedAgentIDs provides a mock function with given fields: _a0
func (*MockProtocol) Disconnect ¶
func (_m *MockProtocol) Disconnect(agentID string) bool
Disconnect provides a mock function with given fields: agentID
func (*MockProtocol) Name ¶
func (_m *MockProtocol) Name() string
Name provides a mock function with given fields:
func (*MockProtocol) RequestReport ¶
func (_m *MockProtocol) RequestReport(ctx context.Context, agentID string, report protocol.Report) error
RequestReport provides a mock function with given fields: ctx, agentID, report
func (*MockProtocol) SendHeartbeat ¶
func (_m *MockProtocol) SendHeartbeat(agentID string) error
SendHeartbeat provides a mock function with given fields: agentID
func (*MockProtocol) Shutdown ¶
func (_m *MockProtocol) Shutdown(ctx context.Context) error
Shutdown provides a mock function with given fields: ctx
func (*MockProtocol) UpdateAgent ¶
func (_m *MockProtocol) UpdateAgent(_a0 context.Context, _a1 *model.Agent, _a2 *protocol.AgentUpdates) error
UpdateAgent provides a mock function with given fields: _a0, _a1, _a2