Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 66 for bucketNames (0.22 sec)

  1. cmd/object-api-utils_test.go

    		isValidBucketName := IsValidBucketName(testCase.bucketName)
    		if testCase.shouldPass && !isValidBucketName {
    			t.Errorf("Test case %d: Expected \"%s\" to be a valid bucket name", i+1, testCase.bucketName)
    		}
    		if !testCase.shouldPass && isValidBucketName {
    			t.Errorf("Test case %d: Expected bucket name \"%s\" to be invalid", i+1, testCase.bucketName)
    		}
    	}
    }
    
    // Tests for validate object name.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  2. internal/logger/reqinfo.go

    	DeploymentID string           // x-minio-deployment-id
    	RequestID    string           // x-amz-request-id
    	API          string           // API name - GetObject PutObject NewMultipartUpload etc.
    	BucketName   string           `json:",omitempty"` // Bucket name
    	ObjectName   string           `json:",omitempty"` // Object name
    	VersionID    string           `json:",omitempty"` // corresponding versionID for the object
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  3. cmd/generic-handlers.go

    			atomic.AddUint64(&globalHTTPStats.rejectedRequestsInvalid, 1)
    			return
    		}
    		// For all other requests reject access to reserved buckets
    		bucketName, _ := request2BucketObjectName(r)
    		if isMinioReservedBucket(bucketName) || isMinioMetaBucket(bucketName) {
    			if !guessIsRPCReq(r) && !guessIsBrowserReq(r) && !guessIsHealthCheckReq(r) && !guessIsMetricsReq(r) && !isAdminReq(r) && !isKMSReq(r) {
    				if ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  4. docs/multi-user/README.md

    Create new canned policy file `getonly.json`. This policy enables users to download all objects under `my-bucketname`.
    
    ```json
    cat > getonly.json << EOF
    {
      "Version": "2012-10-17",
      "Statement": [
    	{
    	  "Action": [
    		"s3:GetObject"
    	  ],
    	  "Effect": "Allow",
    	  "Resource": [
    		"arn:aws:s3:::my-bucketname/*"
    	  ],
    	  "Sid": ""
    	}
      ]
    }
    EOF
    ```
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 21 06:38:06 GMT 2023
    - 8K bytes
    - Viewed (0)
  5. cmd/utils_test.go

    	// Validate all test cases.
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			bucketName, objectName := path2BucketObject(testCase.path)
    			if bucketName != testCase.bucket {
    				t.Errorf("failed expected bucket name \"%s\", got \"%s\"", testCase.bucket, bucketName)
    			}
    			if objectName != testCase.object {
    				t.Errorf("failed expected bucket name \"%s\", got \"%s\"", testCase.object, objectName)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 23 21:28:14 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  6. cmd/object-api-getobjectinfo_test.go

    		{Bucket: "test-getobjectinfo", Name: "Asia/empty-dir/", ContentType: "application/octet-stream", IsDir: true},
    	}
    	testCases := []struct {
    		bucketName string
    		objectName string
    
    		// Expected output of GetObjectInfo.
    		result ObjectInfo
    		err    error
    		// Flag indicating whether the test is expected to pass or not.
    		shouldPass bool
    	}{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  7. cmd/object-api-listobjects_test.go

    			var resultV ListObjectVersionsInfo
    			if testCase.versioned {
    				t.Log("ListObjectVersions, bucket:", testCase.bucketName, "prefix:",
    					testCase.prefix, "marker:", testCase.marker, "delimiter:",
    					testCase.delimiter, "maxkeys:", testCase.maxKeys)
    
    				resultV, err = obj.ListObjectVersions(context.Background(), testCase.bucketName,
    					testCase.prefix, testCase.marker, "", testCase.delimiter, testCase.maxKeys)
    			} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  8. cmd/object_api_suite_test.go

    }
    
    // Tests validate that GetObject on an existing directory fails as expected.
    func testGetDirectoryReturnsObjectNotFound(obj ObjectLayer, instanceType string, t TestErrHandler) {
    	bucketName := "bucket"
    	err := obj.MakeBucket(context.Background(), bucketName, MakeBucketOptions{})
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  9. cmd/perf-tests.go

    				t := time.Now()
    				reader := newRandomReader(opts.objectSize)
    				tmpObjName := pathJoin(objNamePrefix, fmt.Sprintf("%d/%d", i, objCountPerThread[i]))
    				info, err := globalMinioClient.PutObject(uploadsCtx, opts.bucketName, tmpObjName, reader, int64(opts.objectSize), popts)
    				if err != nil {
    					if !contextCanceled(uploadsCtx) && !errors.Is(err, context.Canceled) {
    						errOnce.Do(func() {
    							retError = err.Error()
    						})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  10. docs/sts/client-grants.go

    		log.Fatal(err)
    	}
    
    	clnt, err := minio.New(u.Host, opts)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	d := bytes.NewReader([]byte("Hello, World"))
    	n, err := clnt.PutObject(context.Background(), "my-bucketname", "my-objectname", d, d.Size(), minio.PutObjectOptions{})
    	if err != nil {
    		log.Fatalln(err)
    	}
    
    	log.Println("Uploaded", "my-objectname", " of size: ", n, "Successfully.")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 3.3K bytes
    - Viewed (0)
Back to top