Documentation
¶
Overview ¶
Package refreshcmd orchestrates `keryx auth refresh` (spec 0010): it builds the configured write-back + notifier backends, fans out across the enabled platforms' refreshers, fires alerts, and reports per-platform status. keryx- specific glue around the pkg/refresh seam (mirrors internal/postcmd).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runner ¶
type Runner struct {
Store *config.Store
// Accounts is the credentials store (~/.keryx/accounts.yaml). The unattended
// refresh path rotates tokens, so it must name where they go rather than let
// config routing pick the highest-precedence writable layer (spec 0042 §3.4).
Accounts *config.Store
WB oauth.WriteBack
Notifier notify.Notifier
}
Runner refreshes platform tokens with a chosen write-back + notifier.
func (Runner) RefreshAll ¶
RefreshAll refreshes every enabled platform that has a refresher.
func (Runner) RefreshTargets ¶ added in v0.28.0
func (r Runner) RefreshTargets(ctx context.Context, targets []string, dryRun bool) ([]refresh.Status, error)
RefreshTargets refreshes the named platforms, or every enabled one when the targets are empty or just "all". Every name is checked before any token is touched, so a typo in a scheduled job cannot leave a rotation half-run.