Documentation
¶
Overview ¶
Package scripts holds operational commands that run pg_dump and other external tooling on behalf of the appximo engine (CLI `appximo backup` and the admin /admin/backup endpoint).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPgDumpNotFound = errors.New("pg_dump not found in PATH")
ErrPgDumpNotFound is returned (wrapped) when the pg_dump binary is not on PATH, so callers (the HTTP endpoint) can map it to 503 instead of a generic 500.
Functions ¶
Types ¶
type BackupResult ¶
type BackupResult struct {
Tenant string `json:"tenant"`
Path string `json:"path"`
SizeBytes int64 `json:"size_bytes"`
}
BackupResult describes one completed schema dump.
Click to show internal directories.
Click to hide internal directories.