mocks

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProtocol

type MockProtocol struct {
	mock.Mock
}

MockProtocol is an autogenerated mock type for the Protocol type

func NewMockProtocol

func NewMockProtocol(t mockConstructorTestingTNewMockProtocol) *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.

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) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL