ui

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFunMessages = &FunMessages{
	Cluster: []string{
		"Exploring the AWS universe...",
		"Hunting for clusters across regions...",
		"Surfing the cloud waves...",
		"Mapping your EKS empire...",
		"Launching region scanners...",
		"Targeting your clusters...",
		"Supercharging the search...",
		"Analyzing cluster DNA...",
		"Collecting cloud treasures...",
		"Performing AWS magic tricks...",
		"Querying the cluster overlords...",
		"Decoding EKS hieroglyphics...",
		"Asking AWS nicely for cluster secrets...",
		"Convincing clusters to reveal themselves...",
	},
	Nodegroup: []string{
		"Interrogating EKS nodes... they're staying silent for now",
		"Asking AWS politely for nodegroup secrets...",
		"Counting how many nodes are having an existential crisis...",
		"Checking if the nodes have been doing their AMI homework...",
		"Waiting for AWS to stop procrastinating and return our data...",
		"Convincing stubborn nodes to reveal their status...",
		"Performing digital archaeology on your cluster...",
		"Teaching nodes to communicate in human language...",
		"Decoding the ancient art of EKS hieroglyphics...",
		"Bribing AWS APIs with virtual coffee for faster responses...",
		"Whispering sweet nothings to unresponsive nodegroups...",
		"Negotiating with nodes that refuse to scale...",
		"Analyzing node behavior patterns like a digital therapist...",
	},
	Addon: []string{
		"Hunting for add-ons in the AWS wilderness...",
		"Asking add-ons to introduce themselves politely...",
		"Checking if add-ons are playing hide and seek...",
		"Interrogating the add-on registry...",
		"Convincing shy add-ons to show their versions...",
		"Performing add-on archaeology...",
		"Deciphering add-on compatibility matrices...",
		"Bribing add-ons with virtual upgrades...",
	},
	Health: []string{
		"Checking cluster vital signs...",
		"Performing AWS wellness checkup...",
		"Taking cluster temperature...",
		"Analyzing cluster stress levels...",
		"Consulting the cloud doctor...",
		"Running diagnostic spells...",
		"Checking if your cluster needs vitamins...",
		"Performing digital CPR if needed...",
	},
	General: []string{
		"Working the AWS magic...",
		"Consulting the cloud spirits...",
		"Performing digital incantations...",
		"Asking AWS very nicely...",
		"Waiting for the cloud gods to respond...",
		"Processing with maximum efficiency...",
		"Doing the technical mumbo jumbo...",
		"Making API calls like a pro...",
	},
}

DefaultFunMessages provides the default set of entertaining messages

View Source
var Prefixes = TreePrefix{}

Functions

func DisplayHealthCheckComplete added in v0.1.8

func DisplayHealthCheckComplete(decision health.Decision)

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

func Errf(format string, a ...any)

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 FormatTreeSummary added in v0.2.2

func FormatTreeSummary(itemCount int, itemType string, duration float64) string

FormatTreeSummary creates a summary line for tree displays

func GetDecisionText added in v0.1.8

func GetDecisionText(decision health.Decision) string

GetDecisionText returns the text representation of decision

func GetHealthDecisionColor added in v0.1.8

func GetHealthDecisionColor(decision health.Decision) func(format string, a ...interface{}) string

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 Outf added in v0.2.1

func Outf(format string, a ...any)

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

func PromptContinueWithWarnings(warnings []string) bool

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.

const (
	AlignLeft Alignment = iota
	AlignRight
)

type ClusterTreeBuilder added in v0.2.2

type ClusterTreeBuilder struct {
	// contains filtered or unexported fields
}

ClusterTreeBuilder specializes in EKS cluster hierarchy visualization

func NewClusterTreeBuilder added in v0.2.2

func NewClusterTreeBuilder() *ClusterTreeBuilder

NewClusterTreeBuilder creates a specialized cluster hierarchy builder

func (*ClusterTreeBuilder) AddAddon added in v0.2.2

func (ctb *ClusterTreeBuilder) AddAddon(name, version, status string) *ClusterTreeBuilder

AddAddon adds an addon to the cluster

func (*ClusterTreeBuilder) AddCluster added in v0.2.2

func (ctb *ClusterTreeBuilder) AddCluster(name, status, version string, nodeCount int) *ClusterTreeBuilder

AddCluster adds a cluster root node

func (*ClusterTreeBuilder) AddInstance added in v0.2.2

func (ctb *ClusterTreeBuilder) AddInstance(instanceId, state, az string) *ClusterTreeBuilder

AddInstance adds an instance to the current nodegroup

func (*ClusterTreeBuilder) AddNodegroup added in v0.2.2

func (ctb *ClusterTreeBuilder) AddNodegroup(name, status, instanceType string, readyNodes, desiredNodes int32) *ClusterTreeBuilder

AddNodegroup adds a nodegroup to the current cluster

func (*ClusterTreeBuilder) FinishNodegroup added in v0.2.2

func (ctb *ClusterTreeBuilder) FinishNodegroup() *ClusterTreeBuilder

FinishNodegroup moves back to cluster level

func (*ClusterTreeBuilder) Render added in v0.2.2

func (ctb *ClusterTreeBuilder) Render() error

Render outputs the cluster tree

func (*ClusterTreeBuilder) RenderWithTitle added in v0.2.2

func (ctb *ClusterTreeBuilder) RenderWithTitle(title string) error

RenderWithTitle outputs the cluster tree with a title

type Column added in v0.2.1

type Column struct {
	Title string
	Min   int
	Max   int
	Align Alignment
}

Column defines a table column with sizing and alignment rules.

type ComparisonTreeBuilder added in v0.2.2

type ComparisonTreeBuilder struct {
	// contains filtered or unexported fields
}

ComparisonTreeBuilder specializes in cluster comparison differences

func NewComparisonTreeBuilder added in v0.2.2

func NewComparisonTreeBuilder() *ComparisonTreeBuilder

NewComparisonTreeBuilder creates a specialized comparison differences builder

func (*ComparisonTreeBuilder) AddComparisonRoot added in v0.2.2

func (ctb *ComparisonTreeBuilder) AddComparisonRoot(clusters []string) *ComparisonTreeBuilder

AddComparisonRoot adds a comparison root node

func (*ComparisonTreeBuilder) AddDifference added in v0.2.2

func (ctb *ComparisonTreeBuilder) AddDifference(field string, values []string, severity string) *ComparisonTreeBuilder

AddDifference adds a specific difference

func (*ComparisonTreeBuilder) AddDifferenceCategory added in v0.2.2

func (ctb *ComparisonTreeBuilder) AddDifferenceCategory(category string) *ComparisonTreeBuilder

AddDifferenceCategory adds a category of differences

func (*ComparisonTreeBuilder) AddSimilarity added in v0.2.2

func (ctb *ComparisonTreeBuilder) AddSimilarity(field, value string) *ComparisonTreeBuilder

AddSimilarity adds a similarity (no difference)

func (*ComparisonTreeBuilder) FinishCategory added in v0.2.2

func (ctb *ComparisonTreeBuilder) FinishCategory() *ComparisonTreeBuilder

FinishCategory moves back to comparison root level

func (*ComparisonTreeBuilder) Render added in v0.2.2

func (ctb *ComparisonTreeBuilder) Render() error

Render outputs the comparison tree

func (*ComparisonTreeBuilder) RenderWithTitle added in v0.2.2

func (ctb *ComparisonTreeBuilder) RenderWithTitle(title string) error

RenderWithTitle outputs the comparison tree with a title

type DynamicRow added in v0.2.2

type DynamicRow struct {
	Key   string
	Value string
}

DynamicRow represents a key-value pair for display

type DynamicTable added in v0.2.2

type DynamicTable struct {
	// contains filtered or unexported fields
}

DynamicTable provides automatic width calculation for key-value displays ensuring perfect alignment regardless of content length or ANSI color codes.

func CreateInfoTable added in v0.2.2

func CreateInfoTable() *DynamicTable

CreateInfoTable creates a pre-configured table for informational displays

func CreateSecurityTable added in v0.2.2

func CreateSecurityTable() *DynamicTable

CreateSecurityTable creates a pre-configured table for security information

func CreateStatusTable added in v0.2.2

func CreateStatusTable() *DynamicTable

CreateStatusTable creates a pre-configured table for status displays

func NewDynamicTable added in v0.2.2

func NewDynamicTable() *DynamicTable

NewDynamicTable creates a new dynamic table instance

func (*DynamicTable) Add added in v0.2.2

func (dt *DynamicTable) Add(key, value string) *DynamicTable

Add appends a key-value row to the table

func (*DynamicTable) AddBool added in v0.2.2

func (dt *DynamicTable) AddBool(key string, enabled bool) *DynamicTable

AddBool adds a boolean value with automatic ENABLED/DISABLED coloring

func (*DynamicTable) AddColored added in v0.2.2

func (dt *DynamicTable) AddColored(key string, value string, colorFunc func(string) string) *DynamicTable

AddColored adds a row with colored value for status indication

func (*DynamicTable) AddIf added in v0.2.2

func (dt *DynamicTable) AddIf(condition bool, key, value string) *DynamicTable

AddIf conditionally adds a row only if the condition is true

func (*DynamicTable) AddStatus added in v0.2.2

func (dt *DynamicTable) AddStatus(key, status string) *DynamicTable

AddStatus adds a row with automatic color coding for common status values

func (*DynamicTable) Clear added in v0.2.2

func (dt *DynamicTable) Clear() *DynamicTable

Clear removes all rows from the table

func (*DynamicTable) Count added in v0.2.2

func (dt *DynamicTable) Count() int

Count returns the number of rows in the table

func (*DynamicTable) IsEmpty added in v0.2.2

func (dt *DynamicTable) IsEmpty() bool

IsEmpty returns true if the table has no rows

func (*DynamicTable) Render added in v0.2.2

func (dt *DynamicTable) Render()

Render prints the table with perfect alignment

func (*DynamicTable) RenderSection added in v0.2.2

func (dt *DynamicTable) RenderSection(sectionTitle string)

RenderSection renders the table with a section header

type FunMessages added in v0.2.2

type FunMessages struct {
	Cluster   []string
	Nodegroup []string
	Addon     []string
	General   []string
	Health    []string
}

FunMessages provides categorized entertaining messages for different operations

func (*FunMessages) GetMessages added in v0.2.2

func (fm *FunMessages) GetMessages(category string) []string

GetMessages returns messages for the specified category, falling back to general if category is empty

func (*FunMessages) GetRandomMessage added in v0.2.2

func (fm *FunMessages) GetRandomMessage(category string) string

GetRandomMessage returns a random message from the specified category

type FunSpinner added in v0.2.2

type FunSpinner struct {
	// contains filtered or unexported fields
}

FunSpinner provides an entertaining spinner with rotating messages

func NewEnhancedProgressSpinner added in v0.2.2

func NewEnhancedProgressSpinner(category string) *FunSpinner

NewEnhancedProgressSpinner creates a spinner that cycles through fun messages for the category

func NewFunSpinner added in v0.2.2

func NewFunSpinner(messages []string) *FunSpinner

NewFunSpinner creates a spinner that rotates through fun messages

func NewFunSpinnerForCategory added in v0.2.2

func NewFunSpinnerForCategory(category string) *FunSpinner

NewFunSpinnerForCategory creates a fun spinner with messages for a specific category

func (*FunSpinner) Fail added in v0.2.2

func (fs *FunSpinner) Fail(message string)

Fail completes the spinner with a failure message

func (*FunSpinner) Start added in v0.2.2

func (fs *FunSpinner) Start() error

Start begins the fun spinner with rotating messages

func (*FunSpinner) Stop added in v0.2.2

func (fs *FunSpinner) Stop()

Stop stops the spinner

func (*FunSpinner) Success added in v0.2.2

func (fs *FunSpinner) Success(message string)

Success completes the spinner with a success message

type MultiProgressManager added in v0.2.2

type MultiProgressManager struct {
	// contains filtered or unexported fields
}

MultiProgressManager manages multiple concurrent progress indicators

func NewMultiProgressManager added in v0.2.2

func NewMultiProgressManager() *MultiProgressManager

NewMultiProgressManager creates a new multi-progress manager

func (*MultiProgressManager) AddProgressBar added in v0.2.2

func (mpm *MultiProgressManager) AddProgressBar(total int, title string) *pterm.ProgressbarPrinter

AddProgressBar adds a progress bar to the multi-progress display

func (*MultiProgressManager) AddSpinner added in v0.2.2

func (mpm *MultiProgressManager) AddSpinner(message string) *pterm.SpinnerPrinter

AddSpinner adds a spinner to the multi-progress display

func (*MultiProgressManager) Start added in v0.2.2

func (mpm *MultiProgressManager) Start() error

Start begins all progress indicators

func (*MultiProgressManager) Stop added in v0.2.2

func (mpm *MultiProgressManager) Stop()

Stop ends all progress indicators

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

func WithHeaderColor(fn func(string) string) Option

WithHeaderColor sets a coloring function used for header titles.

type PTable added in v0.2.2

type PTable struct {
	// contains filtered or unexported fields
}

PTable is a pterm-based table that maintains compatibility with the existing Table interface while solving ANSI alignment issues through pterm's robust table implementation.

func CreateCompatibleTable added in v0.2.2

func CreateCompatibleTable(columns []Column, headerColor func(string) string) *PTable

CreateCompatibleTable is a convenience function that creates a PTable with the same interface as the original ui.NewTable function, making migration easier.

func NewPTable added in v0.2.2

func NewPTable(columns []Column, opts ...PTableOption) *PTable

NewPTable creates a new pterm-based table with the given columns and options. This maintains the same interface as the original table but uses pterm internally.

func NewPTableWithHeaders added in v0.2.2

func NewPTableWithHeaders(headers []string) *PTable

Alternative simple constructor for common case

func (*PTable) AddRow added in v0.2.2

func (t *PTable) AddRow(cells ...string)

AddRow appends a row. The number of cells must match the number of columns. Mismatched rows are silently dropped to maintain table integrity.

func (*PTable) Render added in v0.2.2

func (t *PTable) Render()

Render prints the table using pterm while maintaining the current design standards.

type PTableOption added in v0.2.2

type PTableOption func(*PTable)

PTableOption configures optional rendering behavior for a PTable.

func WithPTableHeaderColor added in v0.2.2

func WithPTableHeaderColor(fn func(string) string) PTableOption

WithPTableHeaderColor sets a coloring function used for header titles.

type PerformanceTimer added in v0.2.2

type PerformanceTimer struct {
	// contains filtered or unexported fields
}

PerformanceTimer tracks and displays operation timing

func NewPerformanceTimer added in v0.2.2

func NewPerformanceTimer(operation string) *PerformanceTimer

NewPerformanceTimer creates a new performance timer

func (*PerformanceTimer) Elapsed added in v0.2.2

func (pt *PerformanceTimer) Elapsed() time.Duration

Elapsed returns the time elapsed since creation

func (*PerformanceTimer) PrintElapsed added in v0.2.2

func (pt *PerformanceTimer) PrintElapsed()

PrintElapsed displays the elapsed time with consistent formatting

type ProgressBar added in v0.2.2

type ProgressBar struct {
	// contains filtered or unexported fields
}

ProgressBar wraps pterm.DefaultProgressbar with refresh CLI styling

func NewProgressBar added in v0.2.2

func NewProgressBar(total int, title string) *ProgressBar

NewProgressBar creates a new progress bar with consistent styling

func (*ProgressBar) Add added in v0.2.2

func (pb *ProgressBar) Add(n int)

Add advances the progress by n

func (*ProgressBar) Increment added in v0.2.2

func (pb *ProgressBar) Increment()

Increment advances the progress by 1

func (*ProgressBar) Start added in v0.2.2

func (pb *ProgressBar) Start() error

Start begins the progress bar display

func (*ProgressBar) Stop added in v0.2.2

func (pb *ProgressBar) Stop()

Stop completes the progress bar

func (*ProgressBar) UpdateTitle added in v0.2.2

func (pb *ProgressBar) UpdateTitle(title string)

UpdateTitle changes the progress bar title

type ProgressSpinner added in v0.2.2

type ProgressSpinner struct {
	// contains filtered or unexported fields
}

ProgressSpinner wraps pterm.DefaultSpinner with refresh CLI styling

func NewHealthSpinner added in v0.1.8

func NewHealthSpinner(message string) *ProgressSpinner

NewHealthSpinner creates a new spinner for health checks (pterm-based)

func NewProgressSpinner added in v0.2.2

func NewProgressSpinner(message string) *ProgressSpinner

NewProgressSpinner creates a new progress spinner with consistent styling

func NewPtermHealthSpinner added in v0.2.2

func NewPtermHealthSpinner(message string) *ProgressSpinner

NewPtermHealthSpinner creates a spinner for health checks (replaces yacspin version)

func (*ProgressSpinner) Fail added in v0.2.2

func (ps *ProgressSpinner) Fail(message string)

Fail completes the spinner with a failure message

func (*ProgressSpinner) Start added in v0.2.2

func (ps *ProgressSpinner) Start(ctx context.Context) func()

Start begins the spinner animation

func (*ProgressSpinner) Stop added in v0.2.2

func (ps *ProgressSpinner) Stop(message string)

Stop stops the spinner with an optional success message

func (*ProgressSpinner) Success added in v0.2.2

func (ps *ProgressSpinner) Success(message string)

Success completes the spinner with a success message

func (*ProgressSpinner) UpdateText added in v0.2.2

func (ps *ProgressSpinner) UpdateText(message string)

UpdateText changes the spinner message

func (*ProgressSpinner) Warning added in v0.2.2

func (ps *ProgressSpinner) Warning(message string)

Warning completes the spinner with a warning message

type RegionProgressTracker added in v0.2.2

type RegionProgressTracker struct {
	// contains filtered or unexported fields
}

RegionProgressTracker tracks progress across multiple AWS regions

func NewRegionProgressTracker added in v0.2.2

func NewRegionProgressTracker(regions []string, title string) *RegionProgressTracker

NewRegionProgressTracker creates a tracker for multi-region operations

func (*RegionProgressTracker) CompleteRegion added in v0.2.2

func (rpt *RegionProgressTracker) CompleteRegion(region string, clusterCount int)

CompleteRegion marks a region as completed

func (*RegionProgressTracker) IsComplete added in v0.2.2

func (rpt *RegionProgressTracker) IsComplete() bool

IsComplete returns true if all regions are complete

func (*RegionProgressTracker) Start added in v0.2.2

func (rpt *RegionProgressTracker) Start() error

Start begins tracking multi-region progress

func (*RegionProgressTracker) Stop added in v0.2.2

func (rpt *RegionProgressTracker) Stop()

Stop ends the multi-region progress tracking

type RegionTreeBuilder added in v0.2.2

type RegionTreeBuilder struct {
	// contains filtered or unexported fields
}

RegionTreeBuilder specializes in multi-region organization

func NewRegionTreeBuilder added in v0.2.2

func NewRegionTreeBuilder() *RegionTreeBuilder

NewRegionTreeBuilder creates a specialized region organization builder

func (*RegionTreeBuilder) AddClusterToRegion added in v0.2.2

func (rtb *RegionTreeBuilder) AddClusterToRegion(name, status string, nodeCount int32) *RegionTreeBuilder

AddClusterToRegion adds a cluster to the current region

func (*RegionTreeBuilder) AddRegion added in v0.2.2

func (rtb *RegionTreeBuilder) AddRegion(name string, clusterCount int) *RegionTreeBuilder

AddRegion adds a region root node

func (*RegionTreeBuilder) FinishRegion added in v0.2.2

func (rtb *RegionTreeBuilder) FinishRegion() *RegionTreeBuilder

FinishRegion moves back to the root level for next region

func (*RegionTreeBuilder) Render added in v0.2.2

func (rtb *RegionTreeBuilder) Render() error

Render outputs the region tree

func (*RegionTreeBuilder) RenderWithTitle added in v0.2.2

func (rtb *RegionTreeBuilder) RenderWithTitle(title string) error

RenderWithTitle outputs the region tree with a title

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.

func NewTable added in v0.2.1

func NewTable(columns []Column, opts ...Option) *Table

NewTable creates a new table with the given columns and options.

func (*Table) AddRow added in v0.2.1

func (t *Table) AddRow(cells ...string)

AddRow appends a row. The number of cells must match the number of columns.

func (*Table) Render added in v0.2.1

func (t *Table) Render()

Render prints the table to stdout.

type TreeBuilder added in v0.2.2

type TreeBuilder struct {
	// contains filtered or unexported fields
}

TreeBuilder provides a fluent API for constructing hierarchical displays

func NewTreeBuilder added in v0.2.2

func NewTreeBuilder() *TreeBuilder

NewTreeBuilder creates a new tree builder with pre-allocated capacity for typical tree sizes (reduces allocations for common use cases)

func (*TreeBuilder) AddChild added in v0.2.2

func (tb *TreeBuilder) AddChild(text string) *TreeBuilder

AddChild adds a child node and increases the level

func (*TreeBuilder) AddNode added in v0.2.2

func (tb *TreeBuilder) AddNode(text string) *TreeBuilder

AddNode adds a node at the current level

func (*TreeBuilder) AddNodeWithIcon added in v0.2.2

func (tb *TreeBuilder) AddNodeWithIcon(icon, text string, colorFunc func(string) string) *TreeBuilder

AddNodeWithIcon adds a node with an icon and optional coloring

func (*TreeBuilder) AddRoot added in v0.2.2

func (tb *TreeBuilder) AddRoot(text string) *TreeBuilder

AddRoot adds a root node to the tree

func (*TreeBuilder) AddSibling added in v0.2.2

func (tb *TreeBuilder) AddSibling(text string) *TreeBuilder

AddSibling adds a sibling at the current level

func (*TreeBuilder) AddStatus added in v0.2.2

func (tb *TreeBuilder) AddStatus(icon, text, status string) *TreeBuilder

AddStatus adds a status-colored node

func (*TreeBuilder) Render added in v0.2.2

func (tb *TreeBuilder) Render() error

Render outputs the tree to the console

func (*TreeBuilder) RenderWithTitle added in v0.2.2

func (tb *TreeBuilder) RenderWithTitle(title string) error

RenderWithTitle outputs the tree with a section title

func (*TreeBuilder) Up added in v0.2.2

func (tb *TreeBuilder) Up() *TreeBuilder

Up moves up one level in the hierarchy

func (*TreeBuilder) UpTo added in v0.2.2

func (tb *TreeBuilder) UpTo(level int) *TreeBuilder

UpTo moves up to a specific level

type TreeNode added in v0.2.2

type TreeNode struct {
	Text     string
	Level    int
	Icon     string
	Color    func(string) string
	Status   string
	Children []TreeNode
}

TreeNode represents a single node in the tree with styling capabilities

type TreePrefix added in v0.2.2

type TreePrefix struct{}

TreePrefix returns appropriate text prefixes for different resource types

func (TreePrefix) Addon added in v0.2.2

func (TreePrefix) Addon() string

func (TreePrefix) Cluster added in v0.2.2

func (TreePrefix) Cluster() string

func (TreePrefix) Compare added in v0.2.2

func (TreePrefix) Compare() string

func (TreePrefix) Config added in v0.2.2

func (TreePrefix) Config() string

func (TreePrefix) Error added in v0.2.2

func (TreePrefix) Error() string

func (TreePrefix) Instance added in v0.2.2

func (TreePrefix) Instance() string

func (TreePrefix) Network added in v0.2.2

func (TreePrefix) Network() string

func (TreePrefix) Nodegroup added in v0.2.2

func (TreePrefix) Nodegroup() string

func (TreePrefix) Region added in v0.2.2

func (TreePrefix) Region() string

func (TreePrefix) Security added in v0.2.2

func (TreePrefix) Security() string

func (TreePrefix) Success added in v0.2.2

func (TreePrefix) Success() string

func (TreePrefix) Unknown added in v0.2.2

func (TreePrefix) Unknown() string

func (TreePrefix) Warning added in v0.2.2

func (TreePrefix) Warning() string

func (TreePrefix) World added in v0.2.2

func (TreePrefix) World() string

Jump to

Keyboard shortcuts

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