Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for isAllowed (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. doc/next/5-toolchain.md

    code.
    For backward compatibility, existing usages of `//go:linkname` found in
    a large open-source code corpus remain supported.
    Any new references to standard library internal symbols will be disallowed.
    
    A linker command line flag `-checklinkname=0` can be used to disable
    this check, for debugging and experimenting purposes.
    
    <!-- CL 473495 -->
    When building a dynamically linked ELF binary (including PIE binary), the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:18:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/cmd/internal/objabi/pkgspecial.go

    // package.
    type PkgSpecial struct {
    	// Runtime indicates that this package is "runtime" or imported by
    	// "runtime". This has several effects (which maybe should be split out):
    	//
    	// - Implicit allocation is disallowed.
    	//
    	// - Various runtime pragmas are enabled.
    	//
    	// - Optimizations are always enabled.
    	//
    	// This should be set for runtime and all packages it imports, and may be
    	// set for additional packages.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 02:32:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc

      AddLegalizeTFToStablehloPasses(pm, /*skip_quantization_ops=*/false,
                                     skip_resize,
                                     /*skip_partitioned_calls=*/false);
    
      // Wrap disallowed ops in stablehlo.custom_call ops.
      if (smuggle_disallowed_ops) {
        pm.addNestedPass<func::FuncOp>(CreateSmuggleDisallowedOpsPass());
        pm.addPass(mlir::createCanonicalizerPass());
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 04:34:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top