Documentation
¶
Overview ¶
Package store defines the aggregate persistence interface that composes all domain-specific store interfaces. Implementations include in-memory (for testing), PostgreSQL (production), and SQLite (dev/standalone).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
instance.Store
deploy.Store
health.Store
telemetry.Store
network.Store
secrets.Store
admin.Store
// Migrate runs all schema migrations.
Migrate(ctx context.Context) error
// Ping checks database connectivity.
Ping(ctx context.Context) error
// Close closes the store connection.
Close() error
}
Store is the aggregate persistence interface. Each subsystem store is a composable interface.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package badger provides a Badger DB implementation of the store.Store interface.
|
Package badger provides a Badger DB implementation of the store.Store interface. |
|
Package bun provides a Bun ORM implementation of the store.Store interface.
|
Package bun provides a Bun ORM implementation of the store.Store interface. |
|
Package memory provides an in-memory implementation of the store.Store interface.
|
Package memory provides an in-memory implementation of the store.Store interface. |
|
Package mongo provides a MongoDB implementation of the store.Store interface.
|
Package mongo provides a MongoDB implementation of the store.Store interface. |
|
Package postgres implements the ctrlplane store interface using PostgreSQL.
|
Package postgres implements the ctrlplane store interface using PostgreSQL. |
|
Package sqlite implements the ctrlplane store interface using SQLite.
|
Package sqlite implements the ctrlplane store interface using SQLite. |
Click to show internal directories.
Click to hide internal directories.