troubleshoot

package
v0.3.0-rc1.0...-9dd6c97 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 381 Imported by: 0

Documentation

Index

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

type UpstreamIP struct {
	IPs          []string
	IsVirtual    bool
	ClusterNames map[string]struct{}
}

Jump to

Keyboard shortcuts

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