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