Versions in this module Expand all Collapse all v1 v1.4.15 Oct 19, 2026 Changes in this version + type ResultBody struct + Result string + Steps []Step v1.4.14 Oct 12, 2026 Changes in this version + const PhaseDone + const PhaseFailed + const PhaseRollback + const PhaseSkipped + const PhaseStart + const ResultFailed + const ResultOK + const ResultRollbackFailed + const ResultRolledBack + const TypeProgress + const TypeResult + var Phases = []string + var Results = []string + func PhaseForStatus(status string) string + func ResultForPromote(status string) string + func WithWriter(ctx context.Context, w *Writer) context.Context + type Event struct + Detail *string + ElapsedMS int64 + Env *string + Phase string + Seq int + Server *string + Step string + Type string + type PromoteObserver struct + func NewPromoteObserver(w *Writer, env string) *PromoteObserver + func (o *PromoteObserver) Done(step string, _ time.Duration) + func (o *PromoteObserver) Failed(step string, err error) + func (o *PromoteObserver) Rollback(step string, err error) + func (o *PromoteObserver) Skipped(step, reason string) + func (o *PromoteObserver) Start(step string) + type Result struct + Result string + Steps []Step + Type string + type Step struct + Status string + Step string + type Writer struct + func FromContext(ctx context.Context) *Writer + func NewWriter(w io.Writer, command string) *Writer + func NewWriterClock(w io.Writer, command string, now func() time.Time) *Writer + func (w *Writer) At(env, server string) *Writer + func (w *Writer) Err() error + func (w *Writer) Event(step, phase, detail string) + func (w *Writer) Finish(result string, steps []Step) error + func (w *Writer) Outcome() (result string, steps []Step, ok bool) + func (w *Writer) SetOutcome(result string, steps []Step) + func (w *Writer) Status(step, status, detail string) + func (w *Writer) Steps() []Step