- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for isAllowed (0.18 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) -
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) -
tensorflow/compiler/mlir/lite/stablehlo/tests/odml-to-stablehlo-smuggle-resize.mlir
// RUN: odml_to_stablehlo %s -skip-resize -smuggle-disallowed-ops -o - | FileCheck %s // RUN: odml-to-stablehlo-opt %s --smuggle-disallowed-ops-pass | FileCheck %s --check-prefix=CHECK-OPT // CHECK-LABEL: @main module attributes {tf.versions = {bad_consumers = [], min_consumer = 12 : i32, producer = 975 : i32}, tf_saved_model.semantics} {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 18:33:43 UTC 2024 - 1.4K bytes - Viewed (0) -
src/internal/dag/parse.go
g := newGraph() disallowed := []rule{} rules, err := parseRules(dag) if err != nil { return nil, err } // TODO: Add line numbers to errors. var errors []string errorf := func(format string, a ...any) { errors = append(errors, fmt.Sprintf(format, a...)) } for _, r := range rules { if r.op == "!<" { disallowed = append(disallowed, r) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.7K bytes - Viewed (0)