status

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(log *logger.FunLogger) *cli.Command

NewCommand constructs the status command with the specified logger

Types

type ClusterStatusOutput added in v0.3.0

type ClusterStatusOutput struct {
	Region               string             `json:"region" yaml:"region"`
	ControlPlaneCount    int32              `json:"controlPlaneCount" yaml:"controlPlaneCount"`
	ControlPlaneType     string             `json:"controlPlaneType" yaml:"controlPlaneType"`
	ControlPlaneMode     string             `json:"controlPlaneMode" yaml:"controlPlaneMode"`
	WorkerCount          int32              `json:"workerCount,omitempty" yaml:"workerCount,omitempty"`
	WorkerType           string             `json:"workerType,omitempty" yaml:"workerType,omitempty"`
	HighAvailability     *HAOutput          `json:"highAvailability,omitempty" yaml:"highAvailability,omitempty"`
	Phase                string             `json:"phase,omitempty" yaml:"phase,omitempty"`
	TotalNodes           int32              `json:"totalNodes,omitempty" yaml:"totalNodes,omitempty"`
	ReadyNodes           int32              `json:"readyNodes,omitempty" yaml:"readyNodes,omitempty"`
	ControlPlaneEndpoint string             `json:"controlPlaneEndpoint,omitempty" yaml:"controlPlaneEndpoint,omitempty"`
	LoadBalancerDNS      string             `json:"loadBalancerDNS,omitempty" yaml:"loadBalancerDNS,omitempty"`
	Nodes                []NodeStatusOutput `json:"nodes,omitempty" yaml:"nodes,omitempty"`
}

ClusterStatusOutput represents cluster configuration and status

type HAOutput added in v0.3.0

type HAOutput struct {
	Enabled      bool   `json:"enabled" yaml:"enabled"`
	EtcdTopology string `json:"etcdTopology,omitempty" yaml:"etcdTopology,omitempty"`
}

HAOutput represents high availability configuration

type LiveHealthOutput added in v0.3.0

type LiveHealthOutput struct {
	Healthy         bool                   `json:"healthy" yaml:"healthy"`
	APIServerStatus string                 `json:"apiServerStatus" yaml:"apiServerStatus"`
	TotalNodes      int                    `json:"totalNodes" yaml:"totalNodes"`
	ReadyNodes      int                    `json:"readyNodes" yaml:"readyNodes"`
	ControlPlanes   int                    `json:"controlPlanes" yaml:"controlPlanes"`
	Workers         int                    `json:"workers" yaml:"workers"`
	Message         string                 `json:"message" yaml:"message"`
	Nodes           []LiveNodeStatusOutput `json:"nodes,omitempty" yaml:"nodes,omitempty"`
}

LiveHealthOutput represents live cluster health information

type LiveNodeStatusOutput added in v0.3.0

type LiveNodeStatusOutput struct {
	Name    string `json:"name" yaml:"name"`
	Role    string `json:"role" yaml:"role"`
	Ready   bool   `json:"ready" yaml:"ready"`
	Status  string `json:"status" yaml:"status"`
	Version string `json:"version" yaml:"version"`
}

LiveNodeStatusOutput represents live node status

type NodeStatusOutput added in v0.3.0

type NodeStatusOutput struct {
	Name       string `json:"name" yaml:"name"`
	Role       string `json:"role" yaml:"role"`
	InstanceID string `json:"instanceId" yaml:"instanceId"`
	PublicIP   string `json:"publicIP" yaml:"publicIP"`
	PrivateIP  string `json:"privateIP" yaml:"privateIP"`
	Phase      string `json:"phase" yaml:"phase"`
}

NodeStatusOutput represents individual node status

type StatusOutput added in v0.3.0

type StatusOutput struct {
	InstanceID string               `json:"instanceId" yaml:"instanceId"`
	Name       string               `json:"name" yaml:"name"`
	Provider   string               `json:"provider" yaml:"provider"`
	Status     string               `json:"status" yaml:"status"`
	CreatedAt  time.Time            `json:"createdAt" yaml:"createdAt"`
	Age        string               `json:"age" yaml:"age"`
	CacheFile  string               `json:"cacheFile" yaml:"cacheFile"`
	Cluster    *ClusterStatusOutput `json:"cluster,omitempty" yaml:"cluster,omitempty"`
	LiveHealth *LiveHealthOutput    `json:"liveHealth,omitempty" yaml:"liveHealth,omitempty"`
}

StatusOutput represents the instance status for JSON/YAML output

Jump to

Keyboard shortcuts

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