Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for PutObject (0.09 sec)

  1. cmd/sts-handlers_test.go

    	policy := "mypolicy"
    	policyBytes := []byte(fmt.Sprintf(`{
      "Version": "2012-10-17",
      "Statement": [
       {
        "Sid": "ObjectActionsRW",
        "Effect": "Allow",
        "Action": [
         "s3:PutObject",
         "s3:PutObjectTagging",
         "s3:AbortMultipartUpload",
         "s3:DeleteObject",
         "s3:GetObject",
         "s3:GetObjectTagging",
         "s3:GetObjectVersion",
         "s3:ListMultipartUploadParts"
        ],
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  2. cmd/erasure-healing_test.go

    	_, err = rand.Read(data)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	oi1, err := obj.PutObject(ctx, bucket, object, mustGetPutObjReader(t, bytes.NewReader(data), length, "", ""), ObjectOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	// 2nd version.
    	_, _ = rand.Read(data)
    	oi2, err := obj.PutObject(ctx, bucket, object, mustGetPutObjReader(t, bytes.NewReader(data), length, "", ""), ObjectOptions{})
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    	return er.putObject(ctx, bucket, object, data, opts)
    }
    
    // putObject wrapper for erasureObjects PutObject
    func (er erasureObjects) putObject(ctx context.Context, bucket string, object string, r *PutObjReader, opts ObjectOptions) (objInfo ObjectInfo, err error) {
    	if !opts.NoAuditLog {
    		auditObjectErasureSet(ctx, "PutObject", object, &er)
    	}
    
    	data := r.Reader
    
    	if opts.CheckPrecondFn != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  4. cmd/object-api-listobjects_test.go

    		{testBuckets[1], "unique/folder/1.txt", "content", nil, true},
    	}
    	for _, object := range testObjects {
    		md5Bytes := md5.Sum([]byte(object.content))
    		_, err = obj.PutObject(context.Background(), object.parentBucket, object.name, mustGetPutObjReader(t, bytes.NewBufferString(object.content),
    			int64(len(object.content)), hex.EncodeToString(md5Bytes[:]), ""), ObjectOptions{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    		defer lk.RUnlock(lkctx)
    	}
    
    	objInfo, _, err = z.getLatestObjectInfoWithIdx(ctx, bucket, object, opts)
    	return objInfo, err
    }
    
    // PutObject - writes an object to least used erasure pool.
    func (z *erasureServerPools) PutObject(ctx context.Context, bucket string, object string, data *PutObjReader, opts ObjectOptions) (ObjectInfo, error) {
    	// Validate put object input args.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  6. cmd/batch-handlers.go

    	}
    	defer rd.Close()
    
    	hr, err := hash.NewReader(ctx, rd, objInfo.Size, "", "", objInfo.Size)
    	if err != nil {
    		return err
    	}
    	pReader := NewPutObjReader(hr)
    	_, err = api.PutObject(ctx, tgtBucket, tgtObject, pReader, opts)
    	return err
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    			// that for fresh PutObject() call dstDataPath can never exist.
    			// if its an overwrite then the caller deletes the DataDir
    			// in a separate RPC call.
    			s.moveToTrash(dstDataPath, true, false)
    
    			// If we are healing we should purge any legacyDataPath content,
    			// that was previously preserved during PutObject() call
    			// on a versioned bucket.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  8. cmd/test-utils_test.go

    		case "GetObject":
    			// Register GetObject handler.
    			bucket.Methods(http.MethodGet).Path("/{object:.+}").HandlerFunc(api.GetObjectHandler)
    		case "PutObject":
    			// Register PutObject handler.
    			bucket.Methods(http.MethodPut).Path("/{object:.+}").HandlerFunc(api.PutObjectHandler)
    		case "DeleteObject":
    			// Register Delete Object handler.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  9. cmd/bucket-handlers.go

    		opts.UserDefined[xhttp.AmzObjectTagging] = tagsStr
    	} else {
    		// avoid user set an invalid tag using `X-Amz-Tagging`
    		delete(opts.UserDefined, xhttp.AmzObjectTagging)
    	}
    
    	objInfo, err := objectAPI.PutObject(ctx, bucket, object, pReader, opts)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	etag := getDecryptedETag(formValues, objInfo, false)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2.go

    }
    
    // The []journal contains all the different versions of the object.
    //
    // This array can have 3 kinds of objects:
    //
    // ``object``: If the object is uploaded the usual way: putobject, multipart-put, copyobject
    //
    // ``delete``: This is the delete-marker
    //
    // ``legacyObject``: This is the legacy object in xlV1 format, preserved until its overwritten
    //
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
Back to top