Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ParseBucketPolicyConfig (0.12 sec)

  1. cmd/server_test.go

    	c.Assert(err, nil)
    	// Verify if downloaded policy matches with previously uploaded.
    	expectedPolicy, err := policy.ParseBucketPolicyConfig(strings.NewReader(bucketPolicyStr), bucketName)
    	c.Assert(err, nil)
    	gotPolicy, err := policy.ParseBucketPolicyConfig(bytes.NewReader(bucketPolicyReadBuf), bucketName)
    	c.Assert(err, nil)
    	c.Assert(reflect.DeepEqual(expectedPolicy, gotPolicy), true)
    
    	// Delete policy.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
  2. cmd/site-replication.go

    						continue
    					}
    					tagCount++
    					if !tagSet.Contains(string(tagBytes)) {
    						tagSet.Add(string(tagBytes))
    					}
    				}
    				if len(s.Policy) > 0 {
    					plcy, err := policy.ParseBucketPolicyConfig(bytes.NewReader(s.Policy), b)
    					if err != nil {
    						continue
    					}
    					policies[i] = plcy
    				}
    				if s.ObjectLockConfig != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top