Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ParseBucketPolicyConfig (0.22 sec)

  1. cmd/bucket-policy-handlers_test.go

    			var expectedPolicy *policy.BucketPolicy
    			expectedPolicy, err = policy.ParseBucketPolicyConfig(strings.NewReader(expectedBucketPolicyStr), testCase.bucketName)
    			if err != nil {
    				t.Fatalf("unexpected error. %v", err)
    			}
    			var gotPolicy *policy.BucketPolicy
    			gotPolicy, err = policy.ParseBucketPolicyConfig(bytes.NewReader(bucketPolicyReadBuf), testCase.bucketName)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  2. cmd/bucket-metadata.go

    // The first error encountered is returned.
    func (b *BucketMetadata) parseAllConfigs(ctx context.Context, objectAPI ObjectLayer) (err error) {
    	if len(b.PolicyConfigJSON) != 0 {
    		b.policyConfig, err = policy.ParseBucketPolicyConfig(bytes.NewReader(b.PolicyConfigJSON), b.Name)
    		if err != nil {
    			return err
    		}
    	} else {
    		b.policyConfig = nil
    	}
    
    	if len(b.NotificationConfigXML) != 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. cmd/admin-bucket-handlers.go

    			}
    
    			bucketPolicyBytes, err := io.ReadAll(io.LimitReader(reader, sz))
    			if err != nil {
    				rpt.SetStatus(bucket, fileName, err)
    				continue
    			}
    
    			bucketPolicy, err := policy.ParseBucketPolicyConfig(bytes.NewReader(bucketPolicyBytes), bucket)
    			if err != nil {
    				rpt.SetStatus(bucket, fileName, err)
    				continue
    			}
    
    			// Version in policy must not be empty
    			if bucketPolicy.Version == "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  4. 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)
  5. 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