Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for putObject (0.06 sec)

  1. cmd/object-api-putobject_test.go

    }
    
    // Wrapper for calling PutObject tests for both Erasure multiple disks and single node setup.
    func TestObjectAPIPutObjectSingle(t *testing.T) {
    	ExecExtendedObjectLayerTest(t, testObjectAPIPutObject)
    }
    
    // Tests validate correctness of PutObject.
    func testObjectAPIPutObject(obj ObjectLayer, instanceType string, t TestErrHandler) {
    	// Generating cases for which the PutObject fails.
    	bucket := "minio-bucket"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. cmd/erasure-object_test.go

    		t.Fatalf("Failed to putObject %v", err)
    	}
    
    	parts1, errs1 := readAllFileInfo(ctx, erasureDisks, "", bucket, object1, "", false, false)
    	parts1SC := globalStorageClass
    
    	// Object for test case 2 - No StorageClass defined, MetaData in PutObject requesting RRS Class
    	object2 := "object2"
    	metadata2 := make(map[string]string)
    	metadata2["x-amz-storage-class"] = storageclass.RRS
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  3. cmd/object_api_suite_test.go

    		}
    	}
    	// check paging with prefix at end returns less objects.
    	{
    		_, err = obj.PutObject(context.Background(), "bucket", "newPrefix", mustGetPutObjReader(t, bytes.NewBufferString(uploadContent), int64(len(uploadContent)), "", ""), opts)
    		if err != nil {
    			t.Fatalf("%s: <ERROR> %s", instanceType, err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 02 15:13:05 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  4. cmd/benchmark-utils_test.go

    	md5hex := getMD5Hash(textData)
    	sha256hex := ""
    
    	// benchmark utility which helps obtain number of allocations and bytes allocated per ops.
    	b.ReportAllocs()
    	// the actual benchmark for PutObject starts here. Reset the benchmark timer.
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		// insert the object.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  5. docs/iam/policies/pbac-tests.sh

    mc cp /etc/issue myminio1/test-bucket
    ret=$?
    if [ $ret -ne 0 ]; then
    	echo "BUG: PutObject to bucket: test-bucket should succeed. Failed"
    	exit 1
    fi
    
    mc cp /etc/issue myminio1/multi-key-poc | grep -q "Insufficient permissions to access this path"
    ret=$?
    if [ $ret -eq 0 ]; then
    	echo "BUG: PutObject to bucket: multi-key-poc without sse-kms should fail. Succedded"
    	exit 1
    fi
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 25 01:15:27 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. cmd/untar.go

    	}
    	return 0, errors.New("reader closed")
    }
    
    func (d *disconnectReader) Close() error {
    	d.mu.Lock()
    	d.r = nil
    	d.mu.Unlock()
    	return nil
    }
    
    func untar(ctx context.Context, r io.Reader, putObject func(reader io.Reader, info os.FileInfo, name string) error, o untarOptions) error {
    	bf := bufio.NewReader(r)
    	switch f := detect(bf); f {
    	case formatGzip:
    		gz, err := gzip.NewReader(bf)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 6K bytes
    - Viewed (2)
  7. cmd/admin-handlers-users_test.go

    	c.Helper()
    	_, err := client.PutObject(ctx, bucket, "some-object", bytes.NewBuffer([]byte("stuff")), 5, minio.PutObjectOptions{})
    	if err != nil {
    		c.Fatalf("upload did not succeed got %#v", err)
    	}
    }
    
    func (c *check) mustNotUpload(ctx context.Context, client *minio.Client, bucket string) {
    	c.Helper()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  8. docs/iam/policies/deny-non-sse-kms-objects.json

    {
       "Version":"2012-10-17",
       "Id":"PutObjectPolicy",
       "Statement":[{
             "Sid":"DenyObjectsThatAreNotSSEKMS",
             "Effect":"Deny",
             "Principal":"*",
             "Action":"s3:PutObject",
             "Resource":"arn:aws:s3:::multi-key-poc/*",
             "Condition":{
                "Null":{
                   "s3:x-amz-server-side-encryption-aws-kms-key-id":"true"
                }
             }
          }
       ]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 14 15:43:07 UTC 2024
    - 413 bytes
    - Viewed (0)
  9. cmd/object-api-getobjectinfo_test.go

    	}
    	opts := ObjectOptions{}
    	_, err = obj.PutObject(context.Background(), "test-getobjectinfo", "Asia/asiapics.jpg", mustGetPutObjReader(t, bytes.NewBufferString("asiapics"), int64(len("asiapics")), "", ""), opts)
    	if err != nil {
    		t.Fatalf("%s : %s", instanceType, err.Error())
    	}
    
    	// Put an empty directory
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  10. docs/erasure/storage-class/README.md

    apply `STANDARD` storage class to the object. This means the data and parity drives will be used as set in `STANDARD` storage class.
    
    - If storage class is not defined before starting MinIO server, and subsequent PutObject metadata field has `x-amz-storage-class` present
    with values `REDUCED_REDUNDANCY` or `STANDARD`, MinIO server uses default parity values.
    
    ### Set metadata
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top