Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for handleRule (0.08 sec)

  1. pilot/pkg/serviceregistry/kube/controller/ambient/authorization.go

    	opol := &security.Authorization{
    		Name:      obj.Name,
    		Namespace: obj.Namespace,
    		Scope:     scope,
    		Action:    action,
    		Groups:    nil,
    	}
    
    	for _, rule := range pol.Rules {
    		rules := handleRule(action, rule)
    		if rules != nil {
    			rg := &security.Group{
    				Rules: rules,
    			}
    			opol.Groups = append(opol.Groups, rg)
    		}
    	}
    
    	return opol
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 16:23:36 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. src/cmd/gofmt/long_test.go

    		for _, filename := range strings.Split(*files, ",") {
    			fi, err := os.Stat(filename)
    			handleFile(filename, fs.FileInfoToDirEntry(fi), err)
    		}
    		return // ignore files under -root
    	}
    
    	// otherwise, test all Go files under *root
    	goroot := *root
    	if goroot == "" {
    		goroot = testenv.GOROOT(t)
    	}
    	filepath.WalkDir(goroot, handleFile)
    }
    
    func TestAll(t *testing.T) {
    	if testing.Short() {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 20:27:28 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top