mocks

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBindPlane added in v1.9.0

type MockBindPlane struct {
	mock.Mock
}

MockBindPlane is an autogenerated mock type for the BindPlane type

func NewMockBindPlane added in v1.9.0

func NewMockBindPlane(t mockConstructorTestingTNewMockBindPlane) *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.

func (*MockBindPlane) Config added in v1.9.0

func (_m *MockBindPlane) Config() *common.Server

Config provides a mock function with given fields:

func (*MockBindPlane) Logger added in v1.9.0

func (_m *MockBindPlane) Logger() *zap.Logger

Logger provides a mock function with given fields:

func (*MockBindPlane) Manager added in v1.9.0

func (_m *MockBindPlane) Manager() server.Manager

Manager provides a mock function with given fields:

func (*MockBindPlane) Relayers added in v1.9.0

func (_m *MockBindPlane) Relayers() *server.Relayers

Relayers provides a mock function with given fields:

func (*MockBindPlane) Store added in v1.9.0

func (_m *MockBindPlane) Store() store.Store

Store provides a mock function with given fields:

func (*MockBindPlane) Versions added in v1.9.0

func (_m *MockBindPlane) Versions() agent.Versions

Versions provides a mock function with given fields:

type MockManager added in v1.9.0

type MockManager struct {
	mock.Mock
}

MockManager is an autogenerated mock type for the Manager type

func NewMockManager added in v1.9.0

func NewMockManager(t mockConstructorTestingTNewMockManager) *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.

func (*MockManager) Agent added in v1.9.0

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

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

func (*MockManager) AgentUpdates added in v1.9.0

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 added in v1.9.0

func (_m *MockManager) AgentVersion(ctx context.Context, version string) (*model.AgentVersion, error)

AgentVersion provides a mock function with given fields: ctx, version

func (*MockManager) BindPlaneConfiguration added in v1.9.0

func (_m *MockManager) BindPlaneConfiguration() model.BindPlaneConfiguration

BindPlaneConfiguration provides a mock function with given fields:

func (*MockManager) EnableProtocol added in v1.9.0

func (_m *MockManager) EnableProtocol(_a0 protocol.Protocol)

EnableProtocol provides a mock function with given fields: _a0

func (*MockManager) RequestReport added in v1.9.0

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 added in v1.9.0

func (_m *MockManager) ResourceStore() model.ResourceStore

ResourceStore provides a mock function with given fields:

func (*MockManager) Start added in v1.9.0

func (_m *MockManager) Start(ctx context.Context)

Start provides a mock function with given fields: ctx

func (*MockManager) UpsertAgent added in v1.9.0

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 added in v1.9.0

func (_m *MockManager) VerifySecretKey(ctx context.Context, secretKey string) bool

VerifySecretKey provides a mock function with given fields: ctx, secretKey

Jump to

Keyboard shortcuts

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