Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for isAllowed (0.17 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/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)
  6. 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)
  7. 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)
Back to top