store

package
v0.60.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBStore

type DBStore struct {
	// contains filtered or unexported fields
}

DBStore implements config.Store using sqlc queries backed by PostgreSQL.

func NewDBStore

func NewDBStore(db *pgxpool.Pool) *DBStore

NewDBStore creates a new DBStore wrapping the given database connection.

func (*DBStore) CreateAgent

func (s *DBStore) CreateAgent(ctx context.Context, a config.Agent) error

func (*DBStore) CreateProvider

func (s *DBStore) CreateProvider(ctx context.Context, p config.Provider) error

func (*DBStore) DeleteAgent

func (s *DBStore) DeleteAgent(ctx context.Context, id string) error

func (*DBStore) DeleteChannel

func (s *DBStore) DeleteChannel(ctx context.Context, id string) error

func (*DBStore) DeleteChatAgent

func (s *DBStore) DeleteChatAgent(ctx context.Context, channelID, platform, chatID string) error

func (*DBStore) DeleteManifestPluginOverride

func (s *DBStore) DeleteManifestPluginOverride(ctx context.Context, pluginID string) error

func (*DBStore) DeletePlugin

func (s *DBStore) DeletePlugin(ctx context.Context, id string) error

func (*DBStore) DeleteProvider

func (s *DBStore) DeleteProvider(ctx context.Context, id string) error

func (*DBStore) GetAgent

func (s *DBStore) GetAgent(ctx context.Context, id string) (config.Agent, error)

func (*DBStore) GetChannel

func (s *DBStore) GetChannel(ctx context.Context, id string) (config.Channel, error)

func (*DBStore) GetChatAgent

func (s *DBStore) GetChatAgent(ctx context.Context, channelID, platform, chatID string) (string, error)

func (*DBStore) GetManifestPluginOverride

func (s *DBStore) GetManifestPluginOverride(ctx context.Context, pluginID string) (config.ManifestPluginOverride, bool, error)

func (*DBStore) GetPlugin

func (s *DBStore) GetPlugin(ctx context.Context, id string) (config.Plugin, error)

func (*DBStore) GetProvider

func (s *DBStore) GetProvider(ctx context.Context, id string) (config.Provider, error)

func (*DBStore) GetSetting

func (s *DBStore) GetSetting(ctx context.Context, key string) (string, error)

func (*DBStore) ListAccessibleAgents

func (s *DBStore) ListAccessibleAgents(ctx context.Context, userID string) ([]config.Agent, error)

func (*DBStore) ListAgents

func (s *DBStore) ListAgents(ctx context.Context) ([]config.Agent, error)

func (*DBStore) ListCachedModels added in v0.60.0

func (s *DBStore) ListCachedModels(ctx context.Context) ([]config.CachedModel, error)

func (*DBStore) ListChannels

func (s *DBStore) ListChannels(ctx context.Context) ([]config.Channel, error)

func (*DBStore) ListChannelsByType

func (s *DBStore) ListChannelsByType(ctx context.Context, channelType string) ([]config.Channel, error)

func (*DBStore) ListEnabledAgents

func (s *DBStore) ListEnabledAgents(ctx context.Context) ([]config.Agent, error)

func (*DBStore) ListEnabledPlugins

func (s *DBStore) ListEnabledPlugins(ctx context.Context) ([]config.Plugin, error)

func (*DBStore) ListManifestPluginOverrides

func (s *DBStore) ListManifestPluginOverrides(ctx context.Context) ([]config.ManifestPluginOverride, error)

func (*DBStore) ListPluginOverrides

func (s *DBStore) ListPluginOverrides(ctx context.Context) ([]config.Plugin, error)

func (*DBStore) ListPlugins

func (s *DBStore) ListPlugins(ctx context.Context) ([]config.Plugin, error)

func (*DBStore) ListPluginsByKind

func (s *DBStore) ListPluginsByKind(ctx context.Context, kind string) ([]config.Plugin, error)

func (*DBStore) ListProviders

func (s *DBStore) ListProviders(ctx context.Context) ([]config.Provider, error)

func (*DBStore) ReplaceCachedModels added in v0.60.0

func (s *DBStore) ReplaceCachedModels(ctx context.Context, providerID string, modelIDs []string) error

func (*DBStore) Seed

func (s *DBStore) Seed(ctx context.Context) error

Seed removes legacy configuration and creates Stella only for an empty agent catalog.

func (*DBStore) SetChatAgent

func (s *DBStore) SetChatAgent(ctx context.Context, channelID, platform, chatID, agentID string) error

func (*DBStore) SetPluginConfig

func (s *DBStore) SetPluginConfig(ctx context.Context, id string, cfg map[string]any) error

func (*DBStore) SetPluginEnabled

func (s *DBStore) SetPluginEnabled(ctx context.Context, id string, enabled bool) error

func (*DBStore) SetSetting

func (s *DBStore) SetSetting(ctx context.Context, key, value string) error

func (*DBStore) Snapshot

func (s *DBStore) Snapshot(ctx context.Context, agentID string) (*config.Snapshot, error)

func (*DBStore) UpdateAgent

func (s *DBStore) UpdateAgent(ctx context.Context, a config.Agent) error

func (*DBStore) UpdateProvider

func (s *DBStore) UpdateProvider(ctx context.Context, p config.Provider) error

func (*DBStore) UpsertChannel

func (s *DBStore) UpsertChannel(ctx context.Context, ch config.Channel) error

func (*DBStore) UpsertManifestPluginOverride

func (s *DBStore) UpsertManifestPluginOverride(ctx context.Context, ov config.ManifestPluginOverride) error

func (*DBStore) UpsertPlugin

func (s *DBStore) UpsertPlugin(ctx context.Context, p config.Plugin) error

Jump to

Keyboard shortcuts

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