clusterview

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package clusterview renders cluster summaries and details. 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

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. The human path uses the render design system (sections, status tokens, a health card); `-o plain` keeps the uncolored key/value + tab-separated tables.

func OutputClustersTable

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

OutputClustersTable renders a table of cluster summaries. The human path uses the render design system (tokenized status/health cells, a health summary chip line); `-o plain` keeps the uncolored tab-separated table.

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 OutputInsightDetail added in v0.7.0

func OutputInsightDetail(detail *clustersvc.InsightDetail) error

OutputInsightDetail renders a single insight (the DescribeInsight detail view). The human path uses the render design system (header + sections); `-o plain` keeps an uncolored label/value layout for grep.

func OutputUpgradeCheck added in v0.7.0

func OutputUpgradeCheck(report *clustersvc.UpgradeReport) error

OutputUpgradeCheck renders the upgrade-check report. The human path uses the render design system (a readiness verdict + tokenized insights + skew); `-o plain` keeps the uncolored tables.

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