Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DeleteBucketPolicyHandler (0.2 sec)

  1. cmd/bucket-policy-handlers.go

    		Bucket:    bucket,
    		Policy:    bucketPolicyBytes,
    		UpdatedAt: updatedAt,
    	}))
    
    	// Success.
    	writeSuccessNoContent(w)
    }
    
    // DeleteBucketPolicyHandler - This HTTP handler removes bucket policy configuration.
    func (api objectAPIHandlers) DeleteBucketPolicyHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "DeleteBucketPolicy")
    
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. cmd/bucket-policy-handlers_test.go

    			t.Fatalf("Case %d: Expected the response status to be `%d`, but instead found `%d`", i+1, testPolicy.expectedRespStatus, recV4.Code)
    		}
    	}
    
    	// testcases with input and expected output for DeleteBucketPolicyHandler.
    	testCases := []struct {
    		bucketName string
    		accessKey  string
    		secretKey  string
    		// expected response.
    		expectedRespStatus int
    	}{
    		// Test case - 1.
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  3. cmd/api-router.go

    			HandlerFunc(s3APIMiddleware(api.DeleteMultipleObjectsHandler)).
    			Queries("delete", "")
    		// DeleteBucketPolicy
    		router.Methods(http.MethodDelete).
    			HandlerFunc(s3APIMiddleware(api.DeleteBucketPolicyHandler)).
    			Queries("policy", "")
    		// DeleteBucketReplication
    		router.Methods(http.MethodDelete).
    			HandlerFunc(s3APIMiddleware(api.DeleteBucketReplicationConfigHandler)).
    			Queries("replication", "")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 15:25:16 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. 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", "")
    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