mocks

package
v1.35.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBindPlane

type MockBindPlane struct {
	mock.Mock
}

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) MeasurementBatcher added in v1.26.0

func (_m *MockBindPlane) MeasurementBatcher() stats.MeasurementBatcher

MeasurementBatcher 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

type MockManager struct {
	mock.Mock
}

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

func (_m *MockManager) Agent(ctx context.Context, agentID string) (*model.Agent, error)

Agent provides a mock function with given fields: ctx, agentID

func (*MockManager) AgentMessages

func (_m *MockManager) AgentMessages(ctx context.Context) eventbus.Source[server.Message]

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

func (_m *MockManager) SendAgentMessage(ctx context.Context, message server.Message) error

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) UpdateAgent added in v1.24.0

func (_m *MockManager) UpdateAgent(ctx context.Context, agentID string, updater store.AgentUpdater) (*model.Agent, error)

UpdateAgent provides a mock function with given fields: ctx, agentID, updater

func (*MockManager) UpdateAgentStatus added in v1.26.0

func (_m *MockManager) UpdateAgentStatus(ctx context.Context, agentID string, status model.AgentStatus) error

UpdateAgentStatus provides a mock function with given fields: ctx, agentID, status

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

type MockRouteBuilder struct {
	mock.Mock
}

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.

func (*MockRouteBuilder) AddRoutes

func (_m *MockRouteBuilder) AddRoutes(_a0 gin.IRouter, _a1 server.BindPlane) error

AddRoutes provides a mock function with given fields: _a0, _a1

type MockUpdater

type MockUpdater struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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