istio: istio.io/istio/pkg/test/framework/components/echo/common Index | Files

package common

import "istio.io/istio/pkg/test/framework/components/echo/common"

Index

Package Files

call.go config.go envoy.go portgen.go

func AddPortIfMissing Uses

func AddPortIfMissing(c *echo.Config, protocol protocol.Instance)

AddPortIfMissing adds a port for the given protocol if none was found.

func CallEcho Uses

func CallEcho(opts *echo.CallOptions, retry bool, retryOptions ...retry.Option) (client.ParsedResponses, error)

func FillInDefaults Uses

func FillInDefaults(ctx resource.Context, defaultDomain string, c *echo.Config) (err error)

func ForwardEcho Uses

func ForwardEcho(srcName string, c *client.Instance, opts *echo.CallOptions,
    retry bool, retryOptions ...retry.Option) (client.ParsedResponses, error)

func GetPortForProtocol Uses

func GetPortForProtocol(c *echo.Config, protocol protocol.Instance) *echo.Port

GetPortForProtocol returns the first port found with the given protocol, or nil if none was found.

func WaitForConfig Uses

func WaitForConfig(fetch ConfigFetchFunc, accept ConfigAcceptFunc, options ...retry.Option) error

type ConfigAcceptFunc Uses

type ConfigAcceptFunc func(*envoyAdmin.ConfigDump) (bool, error)

ConfigAcceptFunc evaluates the Envoy config dump and either accept/reject it. This is used by WaitForConfig to control the retry loop. If an error is returned, a retry will be attempted. Otherwise the loop is immediately terminated with an error if rejected or none if accepted.

type ConfigFetchFunc Uses

type ConfigFetchFunc func() (*envoyAdmin.ConfigDump, error)

ConfigFetchFunc retrieves the config dump from Envoy.

Package common imports 23 packages (graph) and is imported by 4 packages. Updated 2021-01-02. Refresh now. Tools for package owners.