Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetPathSpecifier (0.2 sec)

  1. pilot/pkg/simulation/traffic.go

    		return false
    	}
    	return true
    }
    
    func (sim *Simulation) matchRoute(vh *route.VirtualHost, input Call) *route.Route {
    	for _, r := range vh.Routes {
    		// check path
    		switch pt := r.Match.GetPathSpecifier().(type) {
    		case *route.RouteMatch_Prefix:
    			if !strings.HasPrefix(input.Path, pt.Prefix) {
    				continue
    			}
    		case *route.RouteMatch_PathSeparatedPrefix:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/route/route.go

    	return &out
    }
    
    // GetRouteOperation returns readable route description for trace.
    func GetRouteOperation(in *route.Route, vsName string, port int) string {
    	path := "/*"
    	m := in.GetMatch()
    	ps := m.GetPathSpecifier()
    	if ps != nil {
    		switch ps.(type) {
    		case *route.RouteMatch_Prefix:
    			path = m.GetPrefix() + "*"
    		case *route.RouteMatch_Path:
    			path = m.GetPath()
    		case *route.RouteMatch_SafeRegex:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
Back to top