Documentation ¶
Overview ¶
Package status contains the implementation of the status command.
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) Format() string GetTitle() string HasSucceeded() bool Silent() bool }
Checker an interface required to be implemented by all the checkers that collect the status of Liqo.
type NamespaceChecker ¶ added in v0.7.0
type NamespaceChecker struct {
// contains filtered or unexported fields
}
NamespaceChecker implements the Checker interface. checks if the namespace passed as an argument to liqoctl status command exists. If it does not exist the liqoctl status returns.
func NewNamespaceChecker ¶ added in v0.7.0
func NewNamespaceChecker(options *Options, silent bool) *NamespaceChecker
NewNamespaceChecker returns a new NamespaceChecker.
func (*NamespaceChecker) Collect ¶ added in v0.7.0
func (nc *NamespaceChecker) Collect(ctx context.Context)
Collect implements the Checker interface.
func (*NamespaceChecker) Format ¶ added in v0.7.0
func (nc *NamespaceChecker) Format() string
Format implements the Check interface.
func (*NamespaceChecker) GetTitle ¶ added in v0.7.0
func (nc *NamespaceChecker) GetTitle() string
GetTitle returns the title of the checker.
func (*NamespaceChecker) HasSucceeded ¶ added in v0.7.0
func (nc *NamespaceChecker) HasSucceeded() bool
HasSucceeded implements the Checker interface.
func (*NamespaceChecker) Silent ¶ added in v0.7.0
func (nc *NamespaceChecker) Silent() bool
Silent implements the Check interface.
Directories ¶
Path | Synopsis |
---|---|
Package statuslocal contains the logic that handles the status local command in liqoctl
|
Package statuslocal contains the logic that handles the status local command in liqoctl |
Package statuspeer contains the logic that handles the status peer command in liqoctl
|
Package statuspeer contains the logic that handles the status peer command in liqoctl |
utils
|
|
resources
Package resources contains utilities to get share resources quantities.
|
Package resources contains utilities to get share resources quantities. |
Click to show internal directories.
Click to hide internal directories.