Documentation ¶
Index ¶
- type MockStore
- func (_m *MockStore) Agent(ctx context.Context, id string) (*model.Agent, error)
- func (_m *MockStore) AgentConfiguration(ctx context.Context, agentID string) (*model.Configuration, error)
- func (_m *MockStore) AgentIndex(ctx context.Context) search.Index
- func (_m *MockStore) AgentVersion(ctx context.Context, name string) (*model.AgentVersion, error)
- func (_m *MockStore) AgentVersions(ctx context.Context) ([]*model.AgentVersion, error)
- func (_m *MockStore) Agents(ctx context.Context, options ...store.QueryOption) ([]*model.Agent, error)
- func (_m *MockStore) AgentsCount(_a0 context.Context, _a1 ...store.QueryOption) (int, error)
- func (_m *MockStore) AgentsIDsMatchingConfiguration(ctx context.Context, conf *model.Configuration) ([]string, error)
- func (_m *MockStore) ApplyResources(ctx context.Context, resources []model.Resource) ([]model.ResourceStatus, error)
- func (_m *MockStore) CleanupDisconnectedAgents(ctx context.Context, since time.Time) error
- func (_m *MockStore) Clear()
- func (_m *MockStore) Configuration(ctx context.Context, name string) (*model.Configuration, error)
- func (_m *MockStore) ConfigurationIndex(ctx context.Context) search.Index
- func (_m *MockStore) Configurations(ctx context.Context, options ...store.QueryOption) ([]*model.Configuration, error)
- func (_m *MockStore) DeleteAgentVersion(ctx context.Context, name string) (*model.AgentVersion, error)
- func (_m *MockStore) DeleteAgents(ctx context.Context, agentIDs []string) ([]*model.Agent, error)
- func (_m *MockStore) DeleteConfiguration(ctx context.Context, name string) (*model.Configuration, error)
- func (_m *MockStore) DeleteDestination(ctx context.Context, name string) (*model.Destination, error)
- func (_m *MockStore) DeleteDestinationType(ctx context.Context, name string) (*model.DestinationType, error)
- func (_m *MockStore) DeleteProcessor(ctx context.Context, name string) (*model.Processor, error)
- func (_m *MockStore) DeleteProcessorType(ctx context.Context, name string) (*model.ProcessorType, error)
- func (_m *MockStore) DeleteResources(ctx context.Context, resources []model.Resource) ([]model.ResourceStatus, error)
- func (_m *MockStore) DeleteSource(ctx context.Context, name string) (*model.Source, error)
- func (_m *MockStore) DeleteSourceType(ctx context.Context, name string) (*model.SourceType, error)
- func (_m *MockStore) Destination(ctx context.Context, name string) (*model.Destination, error)
- func (_m *MockStore) DestinationType(ctx context.Context, name string) (*model.DestinationType, error)
- func (_m *MockStore) DestinationTypes(ctx context.Context) ([]*model.DestinationType, error)
- func (_m *MockStore) Destinations(ctx context.Context) ([]*model.Destination, error)
- func (_m *MockStore) Measurements() stats.Measurements
- func (_m *MockStore) Processor(ctx context.Context, name string) (*model.Processor, error)
- func (_m *MockStore) ProcessorType(ctx context.Context, name string) (*model.ProcessorType, error)
- func (_m *MockStore) ProcessorTypes(ctx context.Context) ([]*model.ProcessorType, error)
- func (_m *MockStore) Processors(ctx context.Context) ([]*model.Processor, error)
- func (_m *MockStore) Source(ctx context.Context, name string) (*model.Source, error)
- func (_m *MockStore) SourceType(ctx context.Context, name string) (*model.SourceType, error)
- func (_m *MockStore) SourceTypes(ctx context.Context) ([]*model.SourceType, error)
- func (_m *MockStore) Sources(ctx context.Context) ([]*model.Source, error)
- func (_m *MockStore) Updates() eventbus.Source[*store.Updates]
- func (_m *MockStore) UpsertAgent(ctx context.Context, agentID string, updater store.AgentUpdater) (*model.Agent, error)
- func (_m *MockStore) UpsertAgents(ctx context.Context, agentIDs []string, updater store.AgentUpdater) ([]*model.Agent, error)
- func (_m *MockStore) UserSessions() sessions.Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶ added in v1.9.0
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) 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
AgentIndex provides a mock function with given fields: ctx
func (*MockStore) AgentVersion ¶ added in v1.9.0
AgentVersion provides a mock function with given fields: ctx, name
func (*MockStore) AgentVersions ¶ added in v1.9.0
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
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
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
Configuration provides a mock function with given fields: ctx, name
func (*MockStore) ConfigurationIndex ¶ added in v1.9.0
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
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
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
DeleteSource provides a mock function with given fields: ctx, name
func (*MockStore) DeleteSourceType ¶ added in v1.9.0
DeleteSourceType provides a mock function with given fields: ctx, name
func (*MockStore) Destination ¶ added in v1.9.0
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
DestinationTypes provides a mock function with given fields: ctx
func (*MockStore) Destinations ¶ added in v1.9.0
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
Processor provides a mock function with given fields: ctx, name
func (*MockStore) ProcessorType ¶ added in v1.9.0
ProcessorType provides a mock function with given fields: ctx, name
func (*MockStore) ProcessorTypes ¶ added in v1.9.0
ProcessorTypes provides a mock function with given fields: ctx
func (*MockStore) Processors ¶ added in v1.9.0
Processors provides a mock function with given fields: ctx
func (*MockStore) Source ¶ added in v1.9.0
Source provides a mock function with given fields: ctx, name
func (*MockStore) SourceType ¶ added in v1.9.0
SourceType provides a mock function with given fields: ctx, name
func (*MockStore) SourceTypes ¶ added in v1.9.0
SourceTypes provides a mock function with given fields: ctx
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
UserSessions provides a mock function with given fields: