Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for bucketNames (0.26 sec)

  1. cmd/object-api-multipart_test.go

    		{bucketNames[0], "", "", "", "", 100, listMultipartResults[0], nil, true},
    		// Test with a KeyMarker (Test number 14-17).
    		{bucketNames[0], "", "minio-object-1.txt", "", "", 100, listMultipartResults[1], nil, true},
    		{bucketNames[0], "", "orange", "", "", 100, listMultipartResults[2], nil, true},
    		{bucketNames[0], "", "orange", "", "", 1, listMultipartResults[3], nil, true},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  2. docs/sts/web-identity.go

    			return
    		}
    		creds, _ := sts.Get()
    
    		bucketNames := []string{}
    
    		for _, bucket := range buckets {
    			log.Println(fmt.Sprintf("Bucket discovered: %s", bucket.Name))
    			bucketNames = append(bucketNames, bucket.Name)
    		}
    		response := make(map[string]interface{})
    		response["credentials"] = creds
    		response["buckets"] = bucketNames
    		c, err := json.MarshalIndent(response, "", "\t")
    		if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri May 19 09:13:33 GMT 2023
    - 7.8K bytes
    - Viewed (3)
  3. cmd/post-policy_test.go

    	// Create a new post policy.
    	policy := newPostPolicyBytesV4(credStr, bucketName, objectName, expirationTime)
    	if contentLengthRange {
    		policy = newPostPolicyBytesV4WithContentRange(credStr, bucketName, objectName, expirationTime)
    	}
    	return policy
    }
    
    func newPostRequestV4Generic(endPoint, bucketName, objectName string, objData []byte, accessKey, secretKey string, region string,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  4. cmd/bucket-policy-handlers_test.go

    		// checkBucketPolicyResources should fail.
    		{
    			bucketName:         bucketName1,
    			bucketPolicyReader: bytes.NewReader([]byte(fmt.Sprintf(bucketPolicyTemplate, bucketName, bucketName))),
    
    			policyLen:          len(fmt.Sprintf(bucketPolicyTemplate, bucketName, bucketName)),
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  5. cmd/object-handlers_test.go

    		{
    			bucketName:       bucketName,
    			uploadID:         "-1",
    			copySourceHeader: url.QueryEscape(SlashSeparator + bucketName + SlashSeparator + objectName),
    			accessKey:        credentials.AccessKey,
    			secretKey:        credentials.SecretKey,
    
    			expectedRespStatus: http.StatusNotFound,
    		},
    		// Test case - 12.
    		// invalid part number.
    		{
    			bucketName:         bucketName,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 160K bytes
    - Viewed (0)
  6. cmd/bucket-handlers_test.go

    	credentials auth.Credentials, t *testing.T,
    ) {
    	testCases := []struct {
    		bucketName         string
    		accessKey          string
    		secretKey          string
    		expectedRespStatus int
    	}{
    		// Test case - 1.
    		// Validate a good case request succeeds.
    		{
    			bucketName:         bucketName,
    			accessKey:          credentials.AccessKey,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 39.5K bytes
    - Viewed (2)
  7. cmd/object-api-putobject_test.go

    		1: {bucketName: "------", objName: "obj", inputData: []byte(""), expectedError: BucketNameInvalid{Bucket: "------"}},
    		2: {
    			bucketName: "$this-is-not-valid-too", objName: "obj", inputData: []byte(""),
    			expectedError: BucketNameInvalid{Bucket: "$this-is-not-valid-too"},
    		},
    		3: {bucketName: "a", objName: "obj", inputData: []byte(""), expectedError: BucketNameInvalid{Bucket: "a"}},
    
    		// Case with invalid object names.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  8. cmd/policy_test.go

    		AccountName:     "Q3AM3UQ867SPQQA43P2F",
    		Action:          policy.GetBucketLocationAction,
    		BucketName:      "mybucket",
    		ConditionValues: map[string][]string{},
    	}
    
    	anonPutObjectActionArgs := policy.BucketPolicyArgs{
    		AccountName: "Q3AM3UQ867SPQQA43P2F",
    		Action:      policy.PutObjectAction,
    		BucketName:  "mybucket",
    		ConditionValues: map[string][]string{
    			"x-amz-copy-source": {"mybucket/myobject"},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  9. cmd/bucket-notification-handlers.go

    		return
    	}
    
    	vars := mux.Vars(r)
    	bucketName := vars["bucket"]
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutBucketNotificationAction, bucketName, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	_, err := objectAPI.GetBucketInfo(ctx, bucketName, BucketOptions{})
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  10. cmd/bucket-lifecycle-handlers_test.go

    		shouldPass         bool
    	}{
    		// GET empty credentials
    		{
    			method: http.MethodGet, bucketName: bucketName,
    			accessKey:          "",
    			secretKey:          "",
    			expectedRespStatus: http.StatusForbidden,
    			lifecycleResponse:  []byte(""),
    			errorResponse: APIErrorResponse{
    				Resource: SlashSeparator + bucketName + SlashSeparator,
    				Code:     "AccessDenied",
    				Message:  "Access Denied.",
    			},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
Back to top