Documentation
¶
Index ¶
- func ParseClusters(rawClusters []byte) (*envoy_admin_v3.Clusters, error)
- func ParseConfigDump(rawConfig []byte) (*xdscommon.IndexedResources, error)
- func ProxyConfigDumpToIndexedResources(config *envoy_admin_v3.ConfigDump) (*xdscommon.IndexedResources, error)
- func Validate(indexedResources *xdscommon.IndexedResources, envoyID string, vip string, ...) validate.Messages
- type Troubleshoot
- type TroubleshootInfo
- type UpstreamIP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseClusters ¶
func ParseClusters(rawClusters []byte) (*envoy_admin_v3.Clusters, error)
func ParseConfigDump ¶
func ParseConfigDump(rawConfig []byte) (*xdscommon.IndexedResources, error)
func ProxyConfigDumpToIndexedResources ¶
func ProxyConfigDumpToIndexedResources(config *envoy_admin_v3.ConfigDump) (*xdscommon.IndexedResources, error)
func Validate ¶
func Validate(indexedResources *xdscommon.IndexedResources, envoyID string, vip string, validateEndpoints bool, clusters *envoy_admin_v3.Clusters) validate.Messages
Validate validates the Envoy resources (indexedResources) for a given upstream service, peer, and vip. The peer should be "" for an upstream not on a remote peer. The vip is required for a transparent proxy upstream.
Types ¶
type Troubleshoot ¶
type Troubleshoot struct { TroubleshootInfo // contains filtered or unexported fields }
func NewTroubleshoot ¶
func NewTroubleshoot(envoyIP *net.IPAddr, envoyPort string) (*Troubleshoot, error)
func (*Troubleshoot) GetEnvoyConfigDump ¶
func (t *Troubleshoot) GetEnvoyConfigDump() error
func (*Troubleshoot) GetUpstreams ¶
func (t *Troubleshoot) GetUpstreams() ([]string, []UpstreamIP, error)
func (*Troubleshoot) RunAllTests ¶
func (t *Troubleshoot) RunAllTests(upstreamEnvoyID, upstreamIP string) (validate.Messages, error)
type TroubleshootInfo ¶
type TroubleshootInfo struct {
// contains filtered or unexported fields
}
type UpstreamIP ¶
Click to show internal directories.
Click to hide internal directories.