configdump

package
v0.0.0-...-fe632b3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTTPListener identifies a listener as being of HTTP type by the presence of an HTTP connection manager filter
	HTTPListener = "envoy.http_connection_manager"

	// TCPListener identifies a listener as being of TCP type by the presence of TCP proxy filter
	TCPListener = "envoy.tcp_proxy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterFilter

type ClusterFilter struct {
	FQDN      model.Hostname
	Port      int
	Subset    string
	Direction model.TrafficDirection
}

ClusterFilter is used to pass filter information into cluster based config writer print functions

func (*ClusterFilter) Verify

func (c *ClusterFilter) Verify(cluster *xdsapi.Cluster) bool

Verify returns true if the passed cluster matches the filter fields

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 config dump into the writer ready for printing

func (*ConfigWriter) PrintBootstrapDump

func (c *ConfigWriter) PrintBootstrapDump() error

PrintBootstrapDump prints just the bootstrap config dump to the ConfigWriter stdout

func (*ConfigWriter) PrintClusterDump

func (c *ConfigWriter) PrintClusterDump(filter ClusterFilter) error

PrintClusterDump prints the relevant clusters in the config dump to the ConfigWriter stdout

func (*ConfigWriter) PrintClusterSummary

func (c *ConfigWriter) PrintClusterSummary(filter ClusterFilter) error

PrintClusterSummary prints a summary of the relevant clusters in the config dump to the ConfigWriter stdout

func (*ConfigWriter) PrintListenerDump

func (c *ConfigWriter) PrintListenerDump(filter ListenerFilter) error

PrintListenerDump prints the relevant listeners in the config dump to the ConfigWriter stdout

func (*ConfigWriter) PrintListenerSummary

func (c *ConfigWriter) PrintListenerSummary(filter ListenerFilter) error

PrintListenerSummary prints a summary of the relevant listeners in the config dump to the ConfigWriter stdout

func (*ConfigWriter) PrintRouteDump

func (c *ConfigWriter) PrintRouteDump(filter RouteFilter) error

PrintRouteDump prints the relevant routes in the config dump to the ConfigWriter stdout

func (*ConfigWriter) PrintRouteSummary

func (c *ConfigWriter) PrintRouteSummary(filter RouteFilter) error

PrintRouteSummary prints a summary of the relevant routes in the config dump to the ConfigWriter stdout

type ListenerFilter

type ListenerFilter struct {
	Address string
	Port    uint32
	Type    string
}

ListenerFilter is used to pass filter information into listener based config writer print functions

func (*ListenerFilter) Verify

func (l *ListenerFilter) Verify(listener *xdsapi.Listener) bool

Verify returns true if the passed listener matches the filter fields

type RouteFilter

type RouteFilter struct {
	Name string
}

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

func (*RouteFilter) Verify

func (r *RouteFilter) Verify(route *xdsapi.RouteConfiguration) bool

Verify returns true if the passed route matches the filter fields

Jump to

Keyboard shortcuts

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