clusters

package
v0.0.0-...-307b342 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigWriter

type ConfigWriter struct {
	Stdout io.Writer
	// contains filtered or unexported fields
}

ConfigWriter is a writer for processing responses from the Envoy Admin config_dump endpoint

func (*ConfigWriter) Prime

func (c *ConfigWriter) Prime(b []byte) error

Prime loads the clusters output into the writer ready for printing

func (*ConfigWriter) PrintEndpoints

func (c *ConfigWriter) PrintEndpoints(filter EndpointFilter, outputFormat string) error

PrintEndpoints prints the endpoints config to the ConfigWriter stdout

func (*ConfigWriter) PrintEndpointsSummary

func (c *ConfigWriter) PrintEndpointsSummary(filter EndpointFilter) error

PrintEndpointsSummary prints just the endpoints config summary to the ConfigWriter stdout

type EndpointCluster

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

EndpointCluster is used to store the endpoint and cluster

type EndpointFilter

type EndpointFilter struct {
	Address string
	Port    uint32
	Cluster string
	Status  string
}

EndpointFilter is used to pass filter information into route based config writer print functions

func (*EndpointFilter) Verify

func (e *EndpointFilter) Verify(host *admin.HostStatus, cluster string) bool

Verify returns true if the passed host matches the filter fields

Jump to

Keyboard shortcuts

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