Documentation
¶
Overview ¶
Package store defines the aggregate persistence interface. Each subsystem (role, permission, assignment, relation, policy, resourcetype, checklog) defines its own store interface. The composite Store composes them all. Backends: Postgres, SQLite, and Memory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
role.Store
permission.Store
assignment.Store
relation.Store
policy.Store
resourcetype.Store
checklog.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 — same pattern as ControlPlane. A single backend (postgres, sqlite, memory) implements all of them.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package contract provides shared test contracts that every Warden store backend must satisfy.
|
Package contract provides shared test contracts that every Warden store backend must satisfy. |
|
Package memory provides an in-memory implementation of the Warden composite store.
|
Package memory provides an in-memory implementation of the Warden composite store. |
|
Package mongo provides a MongoDB Store implementation for the Warden store.
|
Package mongo provides a MongoDB Store implementation for the Warden store. |
|
Package postgres provides a PostgreSQL implementation of the Warden composite store using grove ORM with Go-based migrations.
|
Package postgres provides a PostgreSQL implementation of the Warden composite store using grove ORM with Go-based migrations. |
|
Package sqlite provides a SQLite Store implementation for embedded/edge use.
|
Package sqlite provides a SQLite Store implementation for embedded/edge use. |
Click to show internal directories.
Click to hide internal directories.