Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenAuthOnly ¶
OpenAuthOnly opens an EXISTING oddk database for the narrow purpose of minting a CLI auth token from a separate process (the `cli-auth` command). Unlike NewStore it runs no migrations and no startup writes - those belong to the daemon and would race (and MustExec-panic) against a running daemon. A busy_timeout lets the single token INSERT wait out the daemon's writer lock rather than failing immediately. The caller must Close the returned *sqlx.DB.
Types ¶
type Store ¶
type Store struct {
Sqlx *sqlx.DB
Auth *auth.AuthStore
Instances *instances.InstanceStore
Backup *backup.BackupStore
Cron *cron.CronStore
Notifications *notifications.NotificationStore
Parameters *parameters.ParameterStore
Health *health.HealthStore
KV *kvstore.KVStore
Offsite *offsite.OffsiteStore
}
Click to show internal directories.
Click to hide internal directories.