Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetBucketPolicy (0.17 sec)

  1. cmd/bucket-metadata-sys.go

    	}
    	return meta.versioningConfig, meta.VersioningConfigUpdatedAt, nil
    }
    
    // GetBucketPolicy returns configured bucket policy
    func (sys *BucketMetadataSys) GetBucketPolicy(bucket string) (*policy.BucketPolicy, time.Time, error) {
    	meta, _, err := sys.GetConfig(GlobalContext, bucket)
    	if err != nil {
    		if errors.Is(err, errConfigNotFound) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. cmd/admin-bucket-handlers.go

    		for _, cfgFile := range cfgFiles {
    			cfgPath := pathJoin(bi.Name, cfgFile)
    			bucket := bi.Name
    			switch cfgFile {
    			case bucketPolicyConfig:
    				config, _, err := globalBucketMetadataSys.GetBucketPolicy(bucket)
    				if err != nil {
    					if errors.Is(err, BucketPolicyNotFound{Bucket: bucket}) {
    						continue
    					}
    					writeErrorResponse(ctx, w, exportError(ctx, err, cfgFile, bucket), r.URL)
    					return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    		case "DeleteBucketPolicy":
    			// Register Delete bucket HTTP policy handler.
    			bucket.Methods(http.MethodDelete).HandlerFunc(api.DeleteBucketPolicyHandler).Queries("policy", "")
    		case "GetBucketPolicy":
    			// Register Get Bucket policy HTTP Handler.
    			bucket.Methods(http.MethodGet).HandlerFunc(api.GetBucketPolicyHandler).Queries("policy", "")
    		case "GetBucketLifecycle":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top