istio: istio.io/istio/pilot/test/xdstest Index | Files

package xdstest

import "istio.io/istio/pilot/test/xdstest"

Index

Package Files

extract.go test.go validate.go

func Dump Uses

func Dump(t test.Failer, p proto.Message) string

func DumpList Uses

func DumpList(t test.Failer, protoList []interface{}) []string

DumpList will dump a list of protos. To workaround go type issues, call DumpList(t, InterfaceSlice([]proto.Message))

func EvaluateListenerFilterPredicates Uses

func EvaluateListenerFilterPredicates(predicate *listener.ListenerFilterChainMatchPredicate, invertMatch bool, port int) bool

EvaluateListenerFilterPredicates runs through the ListenerFilterChainMatchPredicate logic This is exposed for testing only, and should not be used in XDS generation code

func ExtractCluster Uses

func ExtractCluster(name string, cc []*cluster.Cluster) *cluster.Cluster

func ExtractClusterEndpoints Uses

func ExtractClusterEndpoints(clusters []*cluster.Cluster) map[string][]string

func ExtractClusters Uses

func ExtractClusters(cc []*cluster.Cluster) map[string]*cluster.Cluster

func ExtractEdsClusterNames Uses

func ExtractEdsClusterNames(cl []*cluster.Cluster) []string

func ExtractEndpoints Uses

func ExtractEndpoints(cla *endpoint.ClusterLoadAssignment) []string

func ExtractHTTPConnectionManager Uses

func ExtractHTTPConnectionManager(t test.Failer, fcs *listener.FilterChain) *hcm.HttpConnectionManager

func ExtractListener Uses

func ExtractListener(name string, ll []*listener.Listener) *listener.Listener

func ExtractListenerFilters Uses

func ExtractListenerFilters(l *listener.Listener) map[string]*listener.ListenerFilter

func ExtractListenerNames Uses

func ExtractListenerNames(ll []*listener.Listener) []string

func ExtractLoadAssignments Uses

func ExtractLoadAssignments(cla []*endpoint.ClusterLoadAssignment) map[string][]string

func ExtractRouteConfigurations Uses

func ExtractRouteConfigurations(rc []*route.RouteConfiguration) map[string]*route.RouteConfiguration

func ExtractRoutesFromListeners Uses

func ExtractRoutesFromListeners(ll []*listener.Listener) []string

func ExtractSecretResources Uses

func ExtractSecretResources(t test.Failer, rs []*any.Any) []string

ExtractSecretResources fetches all referenced SDS resource names from a list of clusters and listeners

func ExtractTCPProxy Uses

func ExtractTCPProxy(t test.Failer, fcs *listener.FilterChain) *tcpproxy.TcpProxy

func ExtractTLSSecrets Uses

func ExtractTLSSecrets(t test.Failer, secrets []*any.Any) map[string]*tls.Secret

func FilterClusters Uses

func FilterClusters(cl []*cluster.Cluster, f func(c *cluster.Cluster) bool) []*cluster.Cluster

func InterfaceSlice Uses

func InterfaceSlice(slice interface{}) []interface{}

func MapKeys Uses

func MapKeys(mp interface{}) []string

func ToDiscoveryResponse Uses

func ToDiscoveryResponse(p interface{}) *discovery.DiscoveryResponse

func UnmarshalClusterLoadAssignment Uses

func UnmarshalClusterLoadAssignment(t test.Failer, resp []*any.Any) []*endpoint.ClusterLoadAssignment

func UnmarshalRouteConfiguration Uses

func UnmarshalRouteConfiguration(t test.Failer, resp []*any.Any) []*route.RouteConfiguration

func ValidateCluster Uses

func ValidateCluster(t testing.TB, c *cluster.Cluster)

func ValidateClusterLoadAssignment Uses

func ValidateClusterLoadAssignment(t testing.TB, l *endpoint.ClusterLoadAssignment)

func ValidateClusterLoadAssignments Uses

func ValidateClusterLoadAssignments(t testing.TB, ls []*endpoint.ClusterLoadAssignment)

func ValidateClusters Uses

func ValidateClusters(t testing.TB, ls []*cluster.Cluster)

func ValidateListener Uses

func ValidateListener(t testing.TB, l *listener.Listener)

func ValidateListeners Uses

func ValidateListeners(t testing.TB, ls []*listener.Listener)

func ValidateRoute Uses

func ValidateRoute(t testing.TB, r *route.Route)

func ValidateRouteConfiguration Uses

func ValidateRouteConfiguration(t testing.TB, l *route.RouteConfiguration)

func ValidateRouteConfigurations Uses

func ValidateRouteConfigurations(t testing.TB, ls []*route.RouteConfiguration)

func ValidateRoutes Uses

func ValidateRoutes(t testing.TB, ls []*route.Route)

Package xdstest imports 27 packages (graph) and is imported by 6 packages. Updated 2021-01-09. Refresh now. Tools for package owners.