Documentation ¶
Overview ¶
Package status contains the logic that handles the status command in liqoctl
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface { Collect(ctx context.Context) error Format() (string, error) GetTitle() string HasSucceeded() bool }
Checker an interface required to be implemented by all the checkers that collect the status of Liqo.
type LocalInfoChecker ¶ added in v0.5.0
type LocalInfoChecker struct {
// contains filtered or unexported fields
}
LocalInfoChecker implements the Check interface. holds the Localinformation about the cluster.
func (*LocalInfoChecker) Collect ¶ added in v0.5.0
func (lic *LocalInfoChecker) Collect(ctx context.Context) error
Collect implements the collect method of the Checker interface. it collects the infos of the local cluster.
func (*LocalInfoChecker) Format ¶ added in v0.5.0
func (lic *LocalInfoChecker) Format() (string, error)
Format implements the format method of the Checker interface. it outputs the infos about the local cluster in a string ready to be printed out.
func (*LocalInfoChecker) GetTitle ¶ added in v0.5.0
func (lic *LocalInfoChecker) GetTitle() string
GetTitle implements the getTitle method of the Checker interface. it returns the title of the checker.
func (*LocalInfoChecker) HasSucceeded ¶ added in v0.5.0
func (lic *LocalInfoChecker) HasSucceeded() bool
HasSucceeded return true if no errors have been kept.