Documentation
¶
Overview ¶
Package status provides the logic for the `status` command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentStatus ¶
type ComponentStatus struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Ready bool `json:"ready"`
Message string `json:"message,omitempty"`
}
ComponentStatus represents the health status of a single component.
type OperatorStatus ¶
type OperatorStatus struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Version string `json:"version,omitempty"`
Ready bool `json:"ready"`
Message string `json:"message,omitempty"`
}
OperatorStatus represents the health status of a database operator.
type OverallStatus ¶
type OverallStatus struct {
EverestVersion string `json:"everestVersion"`
Healthy bool `json:"healthy"`
Components []ComponentStatus `json:"components"`
Operators []OperatorStatus `json:"operators"`
Namespaces []string `json:"namespaces"`
}
OverallStatus represents the overall health status of Everest.
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
Status provides the functionality to check Everest health.
func NewStatus ¶
func NewStatus(cfg StatusConfig, l *zap.SugaredLogger) (*Status, error)
NewStatus returns a new Status struct.
type StatusConfig ¶
type StatusConfig struct {
// KubeconfigPath is the path to the kubeconfig file.
KubeconfigPath string
// Pretty if set print the output in pretty mode.
Pretty bool
// JSON if set print the output in JSON mode.
JSON bool
}
StatusConfig holds the configuration for the `status` command.
Click to show internal directories.
Click to hide internal directories.