statuslocal

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package statuslocal contains the logic that handles the status local command in liqoctl

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalInfoChecker

type LocalInfoChecker struct {
	// contains filtered or unexported fields
}

LocalInfoChecker implements the Check interface. holds the Localinformation about the cluster.

func NewLocalInfoChecker

func NewLocalInfoChecker(options *status.Options) *LocalInfoChecker

NewLocalInfoChecker returns a new LocalInfoChecker.

func (*LocalInfoChecker) Collect

func (lic *LocalInfoChecker) Collect(ctx context.Context)

Collect implements the collect method of the Checker interface. it collects the infos of the local cluster.

func (*LocalInfoChecker) Format

func (lic *LocalInfoChecker) Format() string

Format implements the format method of the Checker interface. it outputs the information about the local cluster in a string ready to be printed out.

func (*LocalInfoChecker) GetTitle

func (lic *LocalInfoChecker) GetTitle() string

GetTitle implements the getTitle method of the Checker interface. it returns the title of the checker.

func (*LocalInfoChecker) HasSucceeded

func (lic *LocalInfoChecker) HasSucceeded() bool

HasSucceeded return true if no errors have been kept.

func (*LocalInfoChecker) Silent

func (lic *LocalInfoChecker) Silent() bool

Silent implements the Checker interface.

type PodChecker

type PodChecker struct {
	// contains filtered or unexported fields
}

PodChecker implements the Check interface. holds the information about the control plane pods of Liqo.

func NewPodChecker

func NewPodChecker(options *status.Options) *PodChecker

NewPodChecker return a new pod checker.

func (*PodChecker) Collect

func (pc *PodChecker) Collect(ctx context.Context)

Collect implements the collect method of the Checker interface. it collects the status of the components of Liqo. The status is collected at the pod level.

func (*PodChecker) Format

func (pc *PodChecker) Format() string

Format implements the Format method of the Checker interface. it outputs the status of the Liqo components in a string ready to be printed out.

func (*PodChecker) GetTitle

func (pc *PodChecker) GetTitle() string

GetTitle implements the GetTitle method of the Checker interface.

func (*PodChecker) HasSucceeded

func (pc *PodChecker) HasSucceeded() bool

HasSucceeded implements the HasSucceeded method of the Checker interface.

func (*PodChecker) Silent

func (pc *PodChecker) Silent() bool

Silent implements the Checker interface.

Jump to

Keyboard shortcuts

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