Documentation ¶
Index ¶
- Constants
- func SetPrintConfigTypeInSummary(p bool)
- type ClusterFilter
- type ConfigWriter
- func (c *ConfigWriter) Prime(b []byte) error
- func (c *ConfigWriter) PrintBootstrapDump(outputFormat string) error
- func (c *ConfigWriter) PrintBootstrapSummary() error
- func (c *ConfigWriter) PrintClusterDump(filter ClusterFilter, outputFormat string) error
- func (c *ConfigWriter) PrintClusterSummary(filter ClusterFilter) error
- func (c *ConfigWriter) PrintEcds(outputFormat string) error
- func (c *ConfigWriter) PrintEcdsSummary() error
- func (c *ConfigWriter) PrintEndpoints(filter EndpointFilter, outputFormat string) error
- func (c *ConfigWriter) PrintEndpointsSummary(filter EndpointFilter) error
- func (c *ConfigWriter) PrintFullSummary(cf ClusterFilter, lf ListenerFilter, rf RouteFilter, epf EndpointFilter) error
- func (c *ConfigWriter) PrintListenerDump(filter ListenerFilter, outputFormat string) error
- func (c *ConfigWriter) PrintListenerSummary(filter ListenerFilter) error
- func (c *ConfigWriter) PrintPodRootCAFromDynamicSecretDump() (string, error)
- func (c *ConfigWriter) PrintRemoteListenerSummary() error
- func (c *ConfigWriter) PrintRouteDump(filter RouteFilter, outputFormat string) error
- func (c *ConfigWriter) PrintRouteSummary(filter RouteFilter) error
- func (c *ConfigWriter) PrintSecretDump(outputFormat string) error
- func (c *ConfigWriter) PrintSecretSummary() error
- type EndpointFilter
- type ListenerFilter
- type RouteFilter
Constants ¶
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
type ConfigWriter ¶
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 ¶
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 ¶
ListenerFilter is used to pass filter information into listener based config writer print functions
type RouteFilter ¶
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