Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetServiceMatches (0.15 sec)

  1. pkg/test/framework/components/echo/match/matcher.go

    	out := make(echo.Instances, 0)
    	for _, i := range i {
    		if m(i) {
    			out = append(out, i)
    		}
    	}
    	return out
    }
    
    // GetServiceMatches returns the subset of echo.Services that match this Matcher.
    func (m Matcher) GetServiceMatches(services echo.Services) echo.Services {
    	out := make(echo.Services, 0)
    	for _, s := range services {
    		if len(s) > 0 && m(s[0]) {
    			out = append(out, s)
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 21 20:45:12 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. tests/integration/security/authz_test.go

    			allowed := apps.Ns1.A
    			denied := apps.Ns2.A
    
    			from := allowed.Append(denied)
    			fromMatch := match.AnyServiceName(from.NamespacedNames())
    			toMatch := match.Not(fromMatch)
    			to := toMatch.GetServiceMatches(apps.Ns1.All)
    			fromAndTo := to.Instances().Append(from)
    
    			config.New(t).
    				Source(config.File("testdata/authz/mtls.yaml.tmpl")).
    				Source(config.File("testdata/authz/allow-principal.yaml.tmpl").WithParams(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
Back to top