Documentation
¶
Overview ¶
Package deploydb is the SQLite persistence layer for citadel deployment history. It records every non-dry-run deploy (success or failure) so the `citadel dashboard` command can list them. The database lives at ~/.citadel/deployments.db on the developer's machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
DefaultPath returns ~/.citadel/deployments.db, creating ~/.citadel if needed.
Types ¶
type DB ¶
DB wraps *sql.DB with deployment-history queries.
func Open ¶
Open creates or opens the SQLite database at path and applies the schema. path may be ":memory:" for tests.
func (*DB) MarkFailed ¶
MarkFailed sets status=failed, records errMsg, and stamps finished_at.
type Deployment ¶
type Deployment struct {
ID string
Project string
Env string
Runtime string
Region string
GitSHA string
ImageURI string
Message string
Status string
Error string
DeployedBy string
Target string
StartedAt int64
FinishedAt *int64
DurationMS *int64
}
Deployment is a row in the deployments table.
Click to show internal directories.
Click to hide internal directories.