Documentation
¶
Index ¶
- type Factory
- type Store
- func (s *Store) CreateAgent(ctx context.Context, agent *types.Agent) error
- func (s *Store) CreateConfig(ctx context.Context, config *types.Config) error
- func (s *Store) CreateGroup(ctx context.Context, group *types.Group) error
- func (s *Store) DeleteAgent(ctx context.Context, id uuid.UUID) error
- func (s *Store) DeleteGroup(ctx context.Context, id string) error
- func (s *Store) GetAgent(ctx context.Context, id uuid.UUID) (*types.Agent, error)
- func (s *Store) GetConfig(ctx context.Context, id string) (*types.Config, error)
- func (s *Store) GetGroup(ctx context.Context, id string) (*types.Group, error)
- func (s *Store) GetLatestConfigForAgent(ctx context.Context, agentID uuid.UUID) (*types.Config, error)
- func (s *Store) GetLatestConfigForGroup(ctx context.Context, groupID string) (*types.Config, error)
- func (s *Store) ListAgents(ctx context.Context) ([]*types.Agent, error)
- func (s *Store) ListConfigs(ctx context.Context, filter types.ConfigFilter) ([]*types.Config, error)
- func (s *Store) ListGroups(ctx context.Context) ([]*types.Group, error)
- func (s *Store) UpdateAgentEffectiveConfig(ctx context.Context, id uuid.UUID, effectiveConfig string) error
- func (s *Store) UpdateAgentLastSeen(ctx context.Context, id uuid.UUID, lastSeen time.Time) error
- func (s *Store) UpdateAgentStatus(ctx context.Context, id uuid.UUID, status types.AgentStatus) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory implements ApplicationStoreFactory and creates storage components backed by memory store.
func (*Factory) CreateApplicationStore ¶
func (f *Factory) CreateApplicationStore() (types.ApplicationStore, error)
CreateApplicationStore implements storage.ApplicationStoreFactory
func (*Factory) Initialize ¶
Initialize implements storage.ApplicationStoreFactory
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an in-memory implementation of ApplicationStore
func (*Store) CreateAgent ¶
func (*Store) CreateConfig ¶
func (*Store) CreateGroup ¶
func (*Store) GetLatestConfigForAgent ¶
func (*Store) GetLatestConfigForGroup ¶
func (*Store) ListConfigs ¶
func (*Store) UpdateAgentEffectiveConfig ¶
func (*Store) UpdateAgentLastSeen ¶
func (*Store) UpdateAgentStatus ¶
Click to show internal directories.
Click to hide internal directories.