Documentation ¶
Index ¶
- Constants
- type ClusterFilter
- type ConfigWriter
- func (c *ConfigWriter) Prime(b []byte) error
- func (c *ConfigWriter) PrintBootstrapDump() error
- func (c *ConfigWriter) PrintClusterDump(filter ClusterFilter) error
- func (c *ConfigWriter) PrintClusterSummary(filter ClusterFilter) error
- func (c *ConfigWriter) PrintListenerDump(filter ListenerFilter) error
- func (c *ConfigWriter) PrintListenerSummary(filter ListenerFilter) error
- func (c *ConfigWriter) PrintRouteDump(filter RouteFilter) error
- func (c *ConfigWriter) PrintRouteSummary(filter RouteFilter) error
- 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 = "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
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() 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 ¶
ListenerFilter is used to pass filter information into listener based config writer print functions
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