status

package
v0.5.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

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.

type Options added in v0.5.0

type Options struct {
	*factory.Factory
}

Options encapsulates the arguments of the status command.

func (*Options) Run added in v0.5.0

func (o *Options) Run(ctx context.Context) error

Run implements the logic of the status command.

Jump to

Keyboard shortcuts

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