status

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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.

type Options added in v0.5.0

type Options struct {
	Verbose  bool
	Checkers []Checker
	*factory.Factory
	InternalNetworkEnabled bool
}

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.

func (*Options) SetInternalNetworkEnabled added in v0.8.0

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

SetInternalNetworkEnabled sets the internal network enabled flag.

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.

Jump to

Keyboard shortcuts

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