Documentation
¶
Index ¶
- func DisplayHealthCheckComplete(decision health.Decision)
- func DisplayHealthCheckStart(clusterName string)
- func DisplayHealthResults(summary health.HealthSummary)
- func Errf(format string, a ...any)
- func Errln(a ...any)
- func GetDecisionText(decision health.Decision) string
- func GetHealthDecisionColor(decision health.Decision) func(format string, a ...interface{}) string
- func GetHealthStatusText(status health.HealthStatus) string
- func GetStatusColor(status types.UpdateStatus) func(format string, a ...interface{}) string
- func GetStatusPrefix(status types.UpdateStatus) string
- func NewHealthSpinner(message string) *yacspin.Spinner
- func Outf(format string, a ...any)
- func Outln(a ...any)
- func PrintNodegroupsTree(clusterName string, nodegroups []types.NodegroupInfo)
- func PromptContinueWithWarnings(warnings []string) bool
- func RenderProgressBar(score int, status health.HealthStatus) string
- type Alignment
- type Column
- type Option
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayHealthCheckComplete ¶ added in v0.1.8
DisplayHealthCheckComplete displays completion message based on decision
func DisplayHealthCheckStart ¶ added in v0.1.8
func DisplayHealthCheckStart(clusterName string)
DisplayHealthCheckStart displays the start of health check process
func DisplayHealthResults ¶ added in v0.1.8
func DisplayHealthResults(summary health.HealthSummary)
DisplayHealthResults displays the health check results in the specified format
func Errf ¶ added in v0.2.1
Errf writes formatted output to stderr, ignoring write errors intentionally.
func Errln ¶ added in v0.2.1
func Errln(a ...any)
Errln writes a line to stderr, ignoring write errors intentionally.
func GetDecisionText ¶ added in v0.1.8
GetDecisionText returns the text representation of decision
func GetHealthDecisionColor ¶ added in v0.1.8
GetHealthDecisionColor returns the color function for decision
func GetHealthStatusText ¶ added in v0.1.8
func GetHealthStatusText(status health.HealthStatus) string
GetHealthStatusText returns the text representation of health status
func GetStatusColor ¶
func GetStatusColor(status types.UpdateStatus) func(format string, a ...interface{}) string
GetStatusColor returns a color function for the update status
func GetStatusPrefix ¶
func GetStatusPrefix(status types.UpdateStatus) string
GetStatusPrefix returns an appropriate text prefix for the update status
func NewHealthSpinner ¶ added in v0.1.8
NewHealthSpinner creates a new spinner for health checks
func Outf ¶ added in v0.2.1
Outf writes formatted output to stdout, ignoring write errors intentionally.
func Outln ¶ added in v0.2.1
func Outln(a ...any)
Outln writes a line to stdout, ignoring write errors intentionally.
func PrintNodegroupsTree ¶
func PrintNodegroupsTree(clusterName string, nodegroups []types.NodegroupInfo)
func PromptContinueWithWarnings ¶ added in v0.1.8
PromptContinueWithWarnings prompts the user to continue despite warnings
func RenderProgressBar ¶ added in v0.1.8
func RenderProgressBar(score int, status health.HealthStatus) string
RenderProgressBar creates a progress bar string based on score and status
Types ¶
type Alignment ¶ added in v0.2.1
type Alignment int
Alignment represents horizontal text alignment within a column.
type Option ¶ added in v0.2.1
type Option func(*Table)
Option configures optional rendering behavior for a Table.
func WithHeaderColor ¶ added in v0.2.1
WithHeaderColor sets a coloring function used for header titles.
type Table ¶ added in v0.2.1
type Table struct {
// contains filtered or unexported fields
}
Table is a reusable, ANSI-aware renderer for CLI tables.