mocks

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 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 Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t mockConstructorTestingTNewStore) *Store

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

func (*Store) Agent

func (_m *Store) Agent(ctx context.Context, name string) (*model.Agent, error)

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

func (*Store) AgentConfiguration

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

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

func (*Store) AgentIndex

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

AgentIndex provides a mock function with given fields: ctx

func (*Store) AgentVersion

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

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

func (*Store) AgentVersions

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

AgentVersions provides a mock function with given fields: ctx

func (*Store) Agents

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

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

func (*Store) AgentsCount

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

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

func (*Store) AgentsIDsMatchingConfiguration

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

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

func (*Store) ApplyResources

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

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

func (*Store) CleanupDisconnectedAgents

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

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

func (*Store) Clear

func (_m *Store) Clear()

Clear provides a mock function with given fields:

func (*Store) Configuration

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

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

func (*Store) ConfigurationIndex

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

ConfigurationIndex provides a mock function with given fields: ctx

func (*Store) Configurations

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

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

func (*Store) DeleteAgentVersion

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

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

func (*Store) DeleteAgents

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

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

func (*Store) DeleteConfiguration

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

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

func (*Store) DeleteDestination

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

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

func (*Store) DeleteDestinationType

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

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

func (*Store) DeleteProcessor

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

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

func (*Store) DeleteProcessorType

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

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

func (*Store) DeleteResources

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

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

func (*Store) DeleteSource

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

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

func (*Store) DeleteSourceType

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

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

func (*Store) Destination

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

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

func (*Store) DestinationType

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

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

func (*Store) DestinationTypes

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

DestinationTypes provides a mock function with given fields: ctx

func (*Store) Destinations

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

Destinations provides a mock function with given fields: ctx

func (*Store) Measurements

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

Measurements provides a mock function with given fields:

func (*Store) Processor

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

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

func (*Store) ProcessorType

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

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

func (*Store) ProcessorTypes

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

ProcessorTypes provides a mock function with given fields: ctx

func (*Store) Processors

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

Processors provides a mock function with given fields: ctx

func (*Store) Source

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

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

func (*Store) SourceType

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

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

func (*Store) SourceTypes

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

SourceTypes provides a mock function with given fields: ctx

func (*Store) Sources

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

Sources provides a mock function with given fields: ctx

func (*Store) Updates

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

Updates provides a mock function with given fields:

func (*Store) UpsertAgent

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

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

func (*Store) UpsertAgents

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

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

func (*Store) UserSessions

func (_m *Store) 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