localstatus

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package localstatus contains the logic to retrieve info about the local Liqo instance

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Health

type Health struct {
	// Healthy is true whenever all the Liqo pods are up and running.
	Healthy       bool                     `json:"healthy"`
	UnhealthyPods map[string]PodHealthInfo `json:"unhealthyPods,omitempty"`
}

Health represents the current status of a Liqo instance.

type HealthChecker

type HealthChecker struct {
	info.CheckerCommon
	// contains filtered or unexported fields
}

HealthChecker collects the info about the local instance of Liqo.

func (*HealthChecker) Collect

func (l *HealthChecker) Collect(ctx context.Context, options info.Options)

Collect data about the health of the local instance of Liqo.

func (*HealthChecker) Format

func (l *HealthChecker) Format(options info.Options) string

Format returns the collected data using a user friendly output.

func (*HealthChecker) GetData

func (l *HealthChecker) GetData() interface{}

GetData returns the data collected by the checker.

func (*HealthChecker) GetID

func (l *HealthChecker) GetID() string

GetID returns the id of the section collected by the checker.

func (*HealthChecker) GetTitle

func (l *HealthChecker) GetTitle() string

GetTitle returns the title of the section collected by the checker.

type Installation

type Installation struct {
	ClusterID     liqov1beta1.ClusterID `json:"clusterID"`
	Version       string                `json:"version"`
	Labels        map[string]string     `json:"labels"`
	APIServerAddr string
}

Installation contains the info about the local Liqo installation.

type InstallationChecker

type InstallationChecker struct {
	info.CheckerCommon
	// contains filtered or unexported fields
}

InstallationChecker collects the info about the local Liqo installation.

func (*InstallationChecker) Collect

func (l *InstallationChecker) Collect(ctx context.Context, options info.Options)

Collect data about the local installation of Liqo.

func (*InstallationChecker) Format

func (l *InstallationChecker) Format(options info.Options) string

Format returns the collected data using a user friendly output.

func (*InstallationChecker) GetData

func (l *InstallationChecker) GetData() interface{}

GetData returns the data collected by the checker.

func (*InstallationChecker) GetID

func (l *InstallationChecker) GetID() string

GetID returns the id of the section collected by the checker.

func (*InstallationChecker) GetTitle

func (l *InstallationChecker) GetTitle() string

GetTitle returns the title of the section collected by the checker.

type Network

type Network struct {
	PodCIDR      string `json:"podCIDR"`
	ServiceCIDR  string `json:"serviceCIDR"`
	ExternalCIDR string `json:"externalCIDR"`
	InternalCIDR string `json:"internalCIDR"`
}

Network represents the status of the network of the local Liqo installation.

type NetworkChecker

type NetworkChecker struct {
	info.CheckerCommon
	// contains filtered or unexported fields
}

NetworkChecker collects info about the local installation of Liqo.

func (*NetworkChecker) Collect

func (l *NetworkChecker) Collect(ctx context.Context, options info.Options)

Collect data about the network of the local installation of Liqo.

func (*NetworkChecker) Format

func (l *NetworkChecker) Format(options info.Options) string

Format returns the collected data using a user friendly output.

func (*NetworkChecker) GetData

func (l *NetworkChecker) GetData() interface{}

GetData returns the data collected by the checker.

func (*NetworkChecker) GetID

func (l *NetworkChecker) GetID() string

GetID returns the id of the section collected by the checker.

func (*NetworkChecker) GetTitle

func (l *NetworkChecker) GetTitle() string

GetTitle returns the title of the section collected by the checker.

type PeeringChecker

type PeeringChecker struct {
	info.CheckerCommon
	// contains filtered or unexported fields
}

PeeringChecker collects the data about the active peering of the local cluster.

func (*PeeringChecker) Collect

func (p *PeeringChecker) Collect(ctx context.Context, options info.Options)

Collect some brief data about the active peering of the local Liqo installation.

func (*PeeringChecker) Format

func (p *PeeringChecker) Format(options info.Options) string

Format returns the collected data using a user friendly output.

func (*PeeringChecker) GetData

func (p *PeeringChecker) GetData() interface{}

GetData returns the data collected by the checker.

func (*PeeringChecker) GetID

func (p *PeeringChecker) GetID() string

GetID returns the id of the section collected by the checker.

func (*PeeringChecker) GetTitle

func (p *PeeringChecker) GetTitle() string

GetTitle returns the title of the section collected by the checker.

type PeeringInfo

type PeeringInfo struct {
	liqov1beta1.ClusterID `json:"clusterID"`
	Role                  liqov1beta1.RoleType `json:"role"`
	NetworkingStatus      common.ModuleStatus  `json:"networkingStatus"`
	AuthenticationStatus  common.ModuleStatus  `json:"authenticationStatus"`
	OffloadingStatus      common.ModuleStatus  `json:"offloadingStatus"`
}

PeeringInfo represents the peering with another cluster.

type Peerings

type Peerings struct {
	Peers []PeeringInfo `json:"peers"`
}

Peerings contains some brief data about the active peering of the local cluster.

type PodHealthInfo

type PodHealthInfo struct {
	Status          corev1.PodPhase `json:"status"`
	ReadyContainers int             `json:"readyContainers"`
	TotalContainers int             `json:"totalContainers"`
	Restarts        int32           `json:"restarts"`
}

PodHealthInfo represents the current status of a Liqo pod.

Jump to

Keyboard shortcuts

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