status

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdStatus

func NewCmdStatus() *cobra.Command

NewCmdStatus creates and returns the status command.

Types

type CertificateStatus

type CertificateStatus struct {
	Ready       *bool // nil = unknown, true/false = known status
	NotAfter    time.Time
	RenewalTime time.Time
	DNSNames    []string
}

CertificateStatus holds the certificate details.

type Condition

type Condition struct {
	Type               string
	Status             string
	Reason             string
	Message            string
	LastTransitionTime string
}

Condition represents a single condition from a HostedCluster or NodePool.

type FeedbackValue

type FeedbackValue struct {
	Name       string     `json:"name"`
	FieldValue FieldValue `json:"fieldValue"`
}

FeedbackValue matches the ManifestWork statusFeedback structure.

type FieldValue

type FieldValue struct {
	Type    string `json:"type"` // "String" or "Integer"
	String  string `json:"string"`
	Integer int    `json:"integer"`
}

FieldValue holds the typed value from statusFeedback.

type HCPStatus

type HCPStatus struct {
	ClusterID               string
	ClusterName             string
	ClusterState            string
	ManagementCluster       string
	Version                 VersionInfo
	APIServerCertificate    *CertificateStatus
	IngressCertificate      *CertificateStatus
	ManifestWorks           []ManifestWorkSync
	HostedClusterConditions []Condition
	NodePools               []NodePoolStatus
}

HCPStatus holds the parsed status of an HCP cluster from the live endpoint.

type ManifestWorkSync

type ManifestWorkSync struct {
	Name         string
	Applied      bool
	Available    bool
	LastSyncTime time.Time
}

ManifestWorkSync represents the sync status of a single ManifestWork.

type NodePoolStatus

type NodePoolStatus struct {
	Name       string
	Replicas   int
	Version    string
	Conditions []Condition
}

NodePoolStatus holds the status of a single NodePool.

type VersionInfo

type VersionInfo struct {
	Current          string
	Desired          string
	Status           string
	Image            string
	AvailableUpdates []string
}

VersionInfo holds cluster version details.

Jump to

Keyboard shortcuts

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