envoystatus

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package envoystatus is used in yawollet to get current envoy status

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// AdminAddress is the address for admin interface of envoy without http:// and without / at the end
	// Example: localhost:9000
	AdminAddress string
}

Config is to configure envoystatus functions

func (*Config) GetCurrentSnapshotVersion

func (c *Config) GetCurrentSnapshotVersion() (
	clusterVersion string,
	listenerVersion string,
	err error,
)

GetCurrentSnapshotVersion returns current snapshot version from envoy

func (*Config) GetCurrentStats

func (c *Config) GetCurrentStats() ([]yawolv1beta1.LoadBalancerMachineMetric, error)

GetCurrentStats returns a view stats for envoy

func (*Config) GetEnvoyStatus

func (c *Config) GetEnvoyStatus() bool

GetEnvoyStatus returns true if envoy ready endpoint returns 200 otherwise return false

Jump to

Keyboard shortcuts

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