configdump

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: 31 Imported by: 12

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 = wellknown.HTTPConnectionManager

	// TCPListener identifies a listener as being of TCP type by the presence of TCP proxy filter
	TCPListener = wellknown.TCPProxy

	IPMatcher = "type.googleapis.com/xds.type.matcher.v3.IPMatcher"
)

Variables

This section is empty.

Functions

func SetPrintConfigTypeInSummary

func SetPrintConfigTypeInSummary(p bool)

Types

type ClusterFilter

type ClusterFilter struct {
	FQDN      host.Name
	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 *cluster.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(outputFormat string) error

PrintBootstrapDump prints just the bootstrap config dump to the ConfigWriter stdout

func (*ConfigWriter) PrintBootstrapSummary

func (c *ConfigWriter) PrintBootstrapSummary() error

PrintBootstrapSummary prints bootstrap information for Istio and Envoy from the config dump

func (*ConfigWriter) PrintClusterDump

func (c *ConfigWriter) PrintClusterDump(filter ClusterFilter, outputFormat string) 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) PrintEcds

func (c *ConfigWriter) PrintEcds(outputFormat string) error

func (*ConfigWriter) PrintEcdsSummary

func (c *ConfigWriter) PrintEcdsSummary() error

func (*ConfigWriter) PrintEndpoints

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

func (*ConfigWriter) PrintEndpointsSummary

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

func (*ConfigWriter) PrintFullSummary

func (c *ConfigWriter) PrintFullSummary(cf ClusterFilter, lf ListenerFilter, rf RouteFilter, epf EndpointFilter) error

func (*ConfigWriter) PrintListenerDump

func (c *ConfigWriter) PrintListenerDump(filter ListenerFilter, outputFormat string) 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) PrintPodRootCAFromDynamicSecretDump

func (c *ConfigWriter) PrintPodRootCAFromDynamicSecretDump() (string, error)

PrintPodRootCAFromDynamicSecretDump prints just pod's root ca from dynamic secret config dump to the ConfigWriter stdout

func (*ConfigWriter) PrintRemoteListenerSummary

func (c *ConfigWriter) PrintRemoteListenerSummary() error

func (*ConfigWriter) PrintRouteDump

func (c *ConfigWriter) PrintRouteDump(filter RouteFilter, outputFormat string) 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

func (*ConfigWriter) PrintSecretDump

func (c *ConfigWriter) PrintSecretDump(outputFormat string) error

PrintSecretDump prints just the secret config dump to the ConfigWriter stdout

func (*ConfigWriter) PrintSecretSummary

func (c *ConfigWriter) PrintSecretSummary() error

PrintSecretSummary prints a summary of dynamic active secrets from the config dump

type EndpointFilter

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

func (*EndpointFilter) Verify

func (e *EndpointFilter) Verify(ep *endpoint.LbEndpoint, cluster string) bool

Verify returns true if the passed host matches the filter fields

type ListenerFilter

type ListenerFilter struct {
	Address string
	Port    uint32
	Type    string
	Verbose bool
}

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

func (*ListenerFilter) Verify

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

Verify returns true if the passed listener matches the filter fields

type RouteFilter

type RouteFilter struct {
	Name    string
	Verbose bool
}

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

func (*RouteFilter) Verify

func (r *RouteFilter) Verify(route *route.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