- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for isAllowed (0.16 sec)
-
src/go/build/vendor_test.go
_, pkg, found = strings.Cut(fullPkg, "/vendor/") if !found { continue } } if !isAllowed(pkg) { t.Errorf(` Package %q should not be vendored into this repo. After getting approval from the Go team, add it to allowedPackagePrefixes in %s.`, pkg, thisFile) } } } func isAllowed(pkg string) bool { for _, pre := range allowedPackagePrefixes {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 28 16:29:14 UTC 2024 - 1.9K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DirectoryFileTree.java
} /** * Process the specified file or directory. If it is a directory, then its contents * (but not the directory itself) will be checked with {@link #isAllowed(FileTreeElement, Spec)} and notified to * the listener. If it is a file, the file will be checked and notified. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 15 21:33:45 UTC 2024 - 6.6K bytes - Viewed (0) -
cmd/bucket-policy.go
policy, _, err := globalBucketMetadataSys.GetPolicyConfig(bucket) return policy, err } // IsAllowed - checks given policy args is allowed to continue the Rest API. func (sys *PolicySys) IsAllowed(args policy.BucketPolicyArgs) bool { p, err := sys.Get(args.BucketName) if err == nil { return p.IsAllowed(args) } // Log unhandled errors. if _, ok := err.(BucketPolicyNotFound); !ok {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8K bytes - Viewed (0) -
internal/config/policy/opa/config.go
return nil } return &Opa{ args: args, client: &http.Client{Transport: args.Transport}, } } // IsAllowed - checks given policy args is allowed to continue the REST API. func (o *Opa) IsAllowed(args policy.Args) (bool, error) { if o == nil { return false, nil } // OPA input body := make(map[string]interface{}) body["input"] = args
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.2K bytes - Viewed (0) -
internal/config/policy/plugin/config.go
return nil } return &AuthZPlugin{ args: args, client: &http.Client{Transport: args.Transport}, } } // IsAllowed - checks given policy args is allowed to continue the REST API. func (o *AuthZPlugin) IsAllowed(args policy.Args) (bool, error) { if o == nil { return false, nil } // Access Management Plugin Input body := make(map[string]interface{})
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0) -
cmd/policy_test.go
{putObjectActionArgs, true}, {getObjectActionArgs, true}, {yourbucketAnonGetObjectActionArgs, false}, {yourbucketGetObjectActionArgs, true}, } for i, testCase := range testCases { result := p.IsAllowed(testCase.args) if result != testCase.expectedResult { t.Fatalf("case %v: expected: %v, got: %v\n", i+1, testCase.expectedResult, result) } } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.9K bytes - Viewed (0) -
platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/HierarchicalClassLoaderStructureSerializerTest.groovy
def classNames = [ 'allowed.Class1', 'allowed.Class2' ] def disallowedClassNames = [ 'disallowed.Class1', 'disallowed.Class2' ] def packagePrefixes = [ 'allowed.pkgprefix1.', 'allowed.pkgprefix2' ] def disallowedPackagePrefixes = [ 'disallowed.pkgprefix1.', 'disallowed.pkgprefix2.' ] def packageNames = [ 'allowed.pkg1', 'allowed.pkg2' ]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:36:27 UTC 2023 - 2.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/toonew.go
if t := pkg.Scope().Lookup(typename); t != nil && disallowed[t] == "" { obj, _, _ = types.LookupFieldOrMethod(t.Type(), false, pkg, name) } case stdlib.Method: ptr, recvname, name := sym.SplitMethod() if t := pkg.Scope().Lookup(recvname); t != nil && disallowed[t] == "" { obj, _, _ = types.LookupFieldOrMethod(t.Type(), ptr, pkg, name) } } if obj != nil { disallowed[obj] = symVersion } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go
// in a given package that are disallowed at the specified Go version. type key struct { pkg *types.Package version string } memo := make(map[key]map[types.Object]string) // records symbol's minimum Go version disallowedSymbols := func(pkg *types.Package, version string) map[types.Object]string { k := key{pkg, version} disallowed, ok := memo[k] if !ok { disallowed = typesinternal.TooNewStdSymbols(pkg, version)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 4.8K bytes - Viewed (0) -
platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/FilteringClassLoaderSpecSerializerTest.groovy
def classNames = [ 'allowed.Class1', 'allowed.Class2' ] def disallowedClassNames = [ 'disallowed.Class1', 'disallowed.Class2' ] def packagePrefixes = [ 'allowed.pkgprefix1.', 'allowed.pkgprefix2' ] def disallowedPackagePrefixes = [ 'disallowed.pkgprefix1.', 'disallowed.pkgprefix2.' ] def packageNames = [ 'allowed.pkg1', 'allowed.pkg2' ]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:36:27 UTC 2023 - 2.1K bytes - Viewed (0)