Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cfg common.Config
Cfg is the shared runtime configuration bound to root persistent flags.
View Source
var P *printer.Printer
P is the active printer for the current command invocation.
View Source
var RootCmd = &cobra.Command{ Use: "hasteward", Short: "HASteward - High Availability Steward for database clusters", Long: `HASteward safely triages, repairs, backs up, and restores database clusters managed by CNPG (PostgreSQL) and MariaDB Operator (Galera). Backups are stored in restic repositories with block-level dedup, encryption, and compression.`, SilenceUsage: true, SilenceErrors: true, }
RootCmd is the top-level cobra command.
Functions ¶
func InitPrinter ¶
InitPrinter creates the printer for the current command. In json/jsonl modes, legacy output functions are silenced so only the printer writes to stdout.
func PreRun ¶
PreRun validates required flags, initializes K8s clients, and resolves the engine provider.
func ResolveDonor ¶
ResolveDonor parses the --donor flag into Cfg.DonorInstance.
func ResolveInstance ¶
ResolveInstance parses the --instance flag into Cfg.InstanceNumber.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.