Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for PathTemplateMatcher (0.26 sec)

  1. pilot/pkg/security/authz/matcher/template.go

    	"istio.io/istio/pkg/config/security"
    )
    
    var replacer = strings.NewReplacer(security.MatchOneTemplate, "*", security.MatchAnyTemplate, "**")
    
    // PatherTemplateMatcher creates a URI template matcher for path.
    func PathTemplateMatcher(path string) *uri_template.UriTemplateMatchConfig {
    	return &uri_template.UriTemplateMatchConfig{
    		PathTemplate: sanitizePathTemplate(path),
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. pilot/pkg/security/authz/matcher/template_test.go

    			want: &uri_template.UriTemplateMatchConfig{
    				PathTemplate: "/*/*/foo/**/bar",
    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			got := PathTemplateMatcher(tc.path)
    			if !cmp.Equal(got, tc.want, protocmp.Transform()) {
    				t.Errorf("want %v but got %v", tc.want, got)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. pilot/pkg/security/authz/model/generator.go

    	if forTCP {
    		return nil, fmt.Errorf("%q is HTTP only", key)
    	}
    
    	if security.ContainsPathTemplate(value) {
    		m := matcher.PathTemplateMatcher(value)
    		return permissionPathTemplate(m), nil
    	}
    
    	m := matcher.PathMatcher(value)
    	return permissionPath(m), nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 18:02:42 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top