mocks

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 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 MockStore added in v1.9.0

type MockStore struct {
	mock.Mock
}

MockStore is an autogenerated mock type for the Store type

func NewMockStore added in v1.9.0

func NewMockStore(t mockConstructorTestingTNewMockStore) *MockStore

NewMockStore creates a new instance of MockStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockStore) Agent added in v1.9.0

func (_m *MockStore) Agent(ctx context.Context, id string) (*model.Agent, error)

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

func (*MockStore) AgentConfiguration added in v1.9.0

func (_m *MockStore) AgentConfiguration(ctx context.Context, agentID string) (*model.Configuration, error)

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

func (*MockStore) AgentIndex added in v1.9.0

func (_m *MockStore) AgentIndex(ctx context.Context) search.Index

AgentIndex provides a mock function with given fields: ctx

func (*MockStore) AgentVersion added in v1.9.0

func (_m *MockStore) AgentVersion(ctx context.Context, name string) (*model.AgentVersion, error)

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

func (*MockStore) AgentVersions added in v1.9.0

func (_m *MockStore) AgentVersions(ctx context.Context) ([]*model.AgentVersion, error)

AgentVersions provides a mock function with given fields: ctx

func (*MockStore) Agents added in v1.9.0

func (_m *MockStore) Agents(ctx context.Context, options ...store.QueryOption) ([]*model.Agent, error)

Agents provides a mock function with given fields: ctx, options

func (*MockStore) AgentsCount added in v1.9.0

func (_m *MockStore) AgentsCount(_a0 context.Context, _a1 ...store.QueryOption) (int, error)

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

func (*MockStore) AgentsIDsMatchingConfiguration added in v1.9.0

func (_m *MockStore) AgentsIDsMatchingConfiguration(ctx context.Context, conf *model.Configuration) ([]string, error)

AgentsIDsMatchingConfiguration provides a mock function with given fields: ctx, conf

func (*MockStore) ApplyResources added in v1.9.0

func (_m *MockStore) ApplyResources(ctx context.Context, resources []model.Resource) ([]model.ResourceStatus, error)

ApplyResources provides a mock function with given fields: ctx, resources

func (*MockStore) CleanupDisconnectedAgents added in v1.9.0

func (_m *MockStore) CleanupDisconnectedAgents(ctx context.Context, since time.Time) error

CleanupDisconnectedAgents provides a mock function with given fields: ctx, since

func (*MockStore) Clear added in v1.9.0

func (_m *MockStore) Clear()

Clear provides a mock function with given fields:

func (*MockStore) Configuration added in v1.9.0

func (_m *MockStore) Configuration(ctx context.Context, name string) (*model.Configuration, error)

Configuration provides a mock function with given fields: ctx, name

func (*MockStore) ConfigurationIndex added in v1.9.0

func (_m *MockStore) ConfigurationIndex(ctx context.Context) search.Index

ConfigurationIndex provides a mock function with given fields: ctx

func (*MockStore) Configurations added in v1.9.0

func (_m *MockStore) Configurations(ctx context.Context, options ...store.QueryOption) ([]*model.Configuration, error)

Configurations provides a mock function with given fields: ctx, options

func (*MockStore) DeleteAgentVersion added in v1.9.0

func (_m *MockStore) DeleteAgentVersion(ctx context.Context, name string) (*model.AgentVersion, error)

DeleteAgentVersion provides a mock function with given fields: ctx, name

func (*MockStore) DeleteAgents added in v1.9.0

func (_m *MockStore) DeleteAgents(ctx context.Context, agentIDs []string) ([]*model.Agent, error)

DeleteAgents provides a mock function with given fields: ctx, agentIDs

func (*MockStore) DeleteConfiguration added in v1.9.0

func (_m *MockStore) DeleteConfiguration(ctx context.Context, name string) (*model.Configuration, error)

DeleteConfiguration provides a mock function with given fields: ctx, name

func (*MockStore) DeleteDestination added in v1.9.0

func (_m *MockStore) DeleteDestination(ctx context.Context, name string) (*model.Destination, error)

DeleteDestination provides a mock function with given fields: ctx, name

func (*MockStore) DeleteDestinationType added in v1.9.0

func (_m *MockStore) DeleteDestinationType(ctx context.Context, name string) (*model.DestinationType, error)

DeleteDestinationType provides a mock function with given fields: ctx, name

func (*MockStore) DeleteProcessor added in v1.9.0

func (_m *MockStore) DeleteProcessor(ctx context.Context, name string) (*model.Processor, error)

DeleteProcessor provides a mock function with given fields: ctx, name

func (*MockStore) DeleteProcessorType added in v1.9.0

func (_m *MockStore) DeleteProcessorType(ctx context.Context, name string) (*model.ProcessorType, error)

DeleteProcessorType provides a mock function with given fields: ctx, name

func (*MockStore) DeleteResources added in v1.9.0

func (_m *MockStore) DeleteResources(ctx context.Context, resources []model.Resource) ([]model.ResourceStatus, error)

DeleteResources provides a mock function with given fields: ctx, resources

func (*MockStore) DeleteSource added in v1.9.0

func (_m *MockStore) DeleteSource(ctx context.Context, name string) (*model.Source, error)

DeleteSource provides a mock function with given fields: ctx, name

func (*MockStore) DeleteSourceType added in v1.9.0

func (_m *MockStore) DeleteSourceType(ctx context.Context, name string) (*model.SourceType, error)

DeleteSourceType provides a mock function with given fields: ctx, name

func (*MockStore) Destination added in v1.9.0

func (_m *MockStore) Destination(ctx context.Context, name string) (*model.Destination, error)

Destination provides a mock function with given fields: ctx, name

func (*MockStore) DestinationType added in v1.9.0

func (_m *MockStore) DestinationType(ctx context.Context, name string) (*model.DestinationType, error)

DestinationType provides a mock function with given fields: ctx, name

func (*MockStore) DestinationTypes added in v1.9.0

func (_m *MockStore) DestinationTypes(ctx context.Context) ([]*model.DestinationType, error)

DestinationTypes provides a mock function with given fields: ctx

func (*MockStore) Destinations added in v1.9.0

func (_m *MockStore) Destinations(ctx context.Context) ([]*model.Destination, error)

Destinations provides a mock function with given fields: ctx

func (*MockStore) Measurements added in v1.9.0

func (_m *MockStore) Measurements() stats.Measurements

Measurements provides a mock function with given fields:

func (*MockStore) Processor added in v1.9.0

func (_m *MockStore) Processor(ctx context.Context, name string) (*model.Processor, error)

Processor provides a mock function with given fields: ctx, name

func (*MockStore) ProcessorType added in v1.9.0

func (_m *MockStore) ProcessorType(ctx context.Context, name string) (*model.ProcessorType, error)

ProcessorType provides a mock function with given fields: ctx, name

func (*MockStore) ProcessorTypes added in v1.9.0

func (_m *MockStore) ProcessorTypes(ctx context.Context) ([]*model.ProcessorType, error)

ProcessorTypes provides a mock function with given fields: ctx

func (*MockStore) Processors added in v1.9.0

func (_m *MockStore) Processors(ctx context.Context) ([]*model.Processor, error)

Processors provides a mock function with given fields: ctx

func (*MockStore) Source added in v1.9.0

func (_m *MockStore) Source(ctx context.Context, name string) (*model.Source, error)

Source provides a mock function with given fields: ctx, name

func (*MockStore) SourceType added in v1.9.0

func (_m *MockStore) SourceType(ctx context.Context, name string) (*model.SourceType, error)

SourceType provides a mock function with given fields: ctx, name

func (*MockStore) SourceTypes added in v1.9.0

func (_m *MockStore) SourceTypes(ctx context.Context) ([]*model.SourceType, error)

SourceTypes provides a mock function with given fields: ctx

func (*MockStore) Sources added in v1.9.0

func (_m *MockStore) Sources(ctx context.Context) ([]*model.Source, error)

Sources provides a mock function with given fields: ctx

func (*MockStore) Updates added in v1.9.0

func (_m *MockStore) Updates() eventbus.Source[*store.Updates]

Updates provides a mock function with given fields:

func (*MockStore) UpsertAgent added in v1.9.0

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

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

func (*MockStore) UpsertAgents added in v1.9.0

func (_m *MockStore) UpsertAgents(ctx context.Context, agentIDs []string, updater store.AgentUpdater) ([]*model.Agent, error)

UpsertAgents provides a mock function with given fields: ctx, agentIDs, updater

func (*MockStore) UserSessions added in v1.9.0

func (_m *MockStore) UserSessions() sessions.Store

UserSessions provides a mock function with given fields:

Jump to

Keyboard shortcuts

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