statuspeer

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 statuspeer contains the logic that handles the status peer command in liqoctl

Index

Constants

View Source
const (

	// NotRemappedMsg contains the message printed when a cluster is not remapped.
	NotRemappedMsg = "remapping not necessary"
	// PeerNotFoundMsg contains the message printed when a cluster is not found.
	PeerNotFoundMsg = "Peer Not Found"
	// NetworkConfigNotFoundMsg contains the message printed when a network config is not found.
	NetworkConfigNotFoundMsg = "NetWorkConfig Not Found"
	// TunnelEndpointNotFoundMsg contains the message printed when a tunnel endpoint is not found.
	TunnelEndpointNotFoundMsg = "TunnelEndpoint Not Found"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerInfoChecker

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

PeerInfoChecker implements the Check interface. holds the information about the peered cluster.

func NewPeerInfoChecker

func NewPeerInfoChecker(o *status.Options, remoteClusterNames ...string) *PeerInfoChecker

NewPeerInfoChecker return a new PeerInfoChecker.

func (*PeerInfoChecker) Collect

func (pic *PeerInfoChecker) Collect(ctx context.Context)

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

func (*PeerInfoChecker) Format

func (pic *PeerInfoChecker) Format() string

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

func (*PeerInfoChecker) GetTitle

func (pic *PeerInfoChecker) GetTitle() string

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

func (*PeerInfoChecker) HasSucceeded

func (pic *PeerInfoChecker) HasSucceeded() bool

HasSucceeded return true if no errors have been kept.

func (*PeerInfoChecker) Silent

func (pic *PeerInfoChecker) 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