clusterview

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package clusterview renders cluster summaries, details, and comparisons. It lives in its own package so that both commands/cluster and commands/runner can depend on it without an import cycle.

The package is split into focused files:

  • color.go: color/status primitives shared by the renderers
  • list.go: OutputClustersTable, OutputClustersTree, SortClusterSummaries
  • detail.go: OutputClusterDetailsTable
  • compare.go: OutputComparisonTable

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputClusterDetailsTable

func OutputClusterDetailsTable(details *clustersvc.ClusterDetails, elapsed time.Duration) error

OutputClusterDetailsTable renders a single cluster's expanded details.

func OutputClustersTable

func OutputClustersTable(summaries []clustersvc.ClusterSummary, elapsed time.Duration, multiRegion bool, showHealth bool) error

OutputClustersTable renders a table of cluster summaries.

func OutputClustersTree

func OutputClustersTree(summaries []clustersvc.ClusterSummary, elapsed time.Duration, multiRegion bool, showHealth bool) error

OutputClustersTree renders cluster summaries grouped by region as a tree.

func OutputComparisonTable

func OutputComparisonTable(comparison *clustersvc.ClusterComparison, elapsed time.Duration) error

OutputComparisonTable renders a side-by-side cluster comparison.

func SortClusterSummaries

func SortClusterSummaries(items []clustersvc.ClusterSummary, key string, desc bool) []clustersvc.ClusterSummary

SortClusterSummaries sorts items in place by key and returns the slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL