Documentation
¶
Index ¶
- func Banner(title string)
- func Bullet(indent int, format string, args ...any)
- func Complete(msg string)
- func Enabled() bool
- func Fail(format string, args ...any)
- func Field(label, value string)
- func FormatBytes(b int64) string
- func Header(engine, mode, clusterName, namespace string)
- func Info(format string, args ...any)
- func Printf(format string, args ...any)
- func Println(args ...any)
- func Section(title string)
- func SetEnabled(v bool)
- func SetWriter(w io.Writer)
- func Stderr(format string, args ...any)
- func Success(format string, args ...any)
- func SuggestedCommands(engine, clusterName, namespace string)
- func Warn(format string, args ...any)
- func Writer() io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Header ¶
func Header(engine, mode, clusterName, namespace string)
Header prints a formatted header line for HASteward startup.
func Printf ¶
Printf is a mode-aware wrapper around fmt.Fprintf to the package writer. In json/jsonl modes this is a no-op.
func Println ¶
func Println(args ...any)
Println is a mode-aware wrapper around fmt.Fprintln to the package writer. In json/jsonl modes this is a no-op.
func SetEnabled ¶
func SetEnabled(v bool)
SetEnabled controls whether output functions produce any output. Call SetEnabled(false) in json/jsonl modes to silence legacy output.
func Stderr ¶
Stderr writes to stderr unconditionally, regardless of output mode. Used for CLI messages that must not mix with stdout data (errors, status).
func SuggestedCommands ¶
func SuggestedCommands(engine, clusterName, namespace string)
SuggestedCommands prints suggested repair commands for triage output.
Types ¶
This section is empty.