clusteralerts

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Status

func Status(ctx context.Context, dynamicClient dynamic.Interface) statusresult.StatusResult

Status orchestrates retrieval, processing, and formatting of the resource's current status.

Types

type AlertKey

type AlertKey struct {
	Severity string
	Name     string
}

Format returns a readable view of resource status for CLI display.

type ClusterAlert

type ClusterAlert struct {
	Severity string
	Name     string
	Phase    string
}

Get fetches raw resource data from the Kubernetes API.

func ClusterAlertProcessing

func ClusterAlertProcessing(item map[string]interface{}) (ClusterAlert, bool)

Processing converts raw resource data into a structured format for easier output and analysis.

Jump to

Keyboard shortcuts

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