Documentation ¶
Index ¶
- func ConstructProxiedTestTarget(snap *cache.Snapshot) (string, error)
- func ConstructProxylessTestTarget(snap *cache.Snapshot) (string, error)
- func GenerateSnapshotFromConfigFiles(defaultConfigPath string, userSuppliedConfigPath string) (cache.Snapshot, error)
- func IncludeSocketListenerOnly(snap *cache.Snapshot) error
- func UpdateEndpoint(snap *cache.Snapshot, endpoints []TestEndpoint) error
- type TestEndpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructProxiedTestTarget ¶
ConstructProxiedTestTarget finds the target of the Proxyless test based on the configuration json file
func ConstructProxylessTestTarget ¶
ConstructProxylessTestTarget finds the target of the Proxyless test based on the configuration json file
func GenerateSnapshotFromConfigFiles ¶
func GenerateSnapshotFromConfigFiles(defaultConfigPath string, userSuppliedConfigPath string) (cache.Snapshot, error)
GenerateSnapshotFromConfigFiles takes a default configuration file and user supplied configuration to generate a snapshot
func IncludeSocketListenerOnly ¶
func IncludeSocketListenerOnly(snap *cache.Snapshot) error
IncludeSocketListenerOnly takes a pointer of a snapshot, and returns only the socket listeners. This function is used for Proxied test since api_listneners which are used for the non-proxed test can not be validated by Envoy causing the entire resources slices not to be registed.
func UpdateEndpoint ¶
func UpdateEndpoint(snap *cache.Snapshot, endpoints []TestEndpoint) error
UpdateEndpoint takes a list of endpoints to updated the Endpoint resources in the snapshot
Types ¶
type TestEndpoint ¶
type TestEndpoint struct { // TestUpstreamHost is upstream host address TestUpstreamHost string // TestUpstreamHost is upstream host port TestUpstreamPort uint32 }
TestEndpoint is the address and the port of the backends.