Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for isMultipart (0.06 sec)

  1. internal/etag/etag.go

    	// as non-encrypted.
    
    	return len(e) >= 32 // We consider all ETags longer than 32 bytes as encrypted
    }
    
    // IsMultipart reports whether the ETag belongs to an
    // object that has been uploaded using the S3 multipart
    // API.
    // An S3 multipart ETag has a -<part-number> suffix.
    func (e ETag) IsMultipart() bool {
    	return len(e) > 16 && !e.IsEncrypted() && bytes.ContainsRune(e, '-')
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. cmd/encryption-v1.go

    			}
    		}
    		objects = objects[N:]
    	}
    	return nil
    }
    
    // isMultipart returns true if the current object is
    // uploaded by the user using multipart mechanism:
    // initiate new multipart, upload part, complete upload
    func (o *ObjectInfo) isMultipart() bool {
    	_, encrypted := crypto.IsEncrypted(o.UserDefined)
    	if encrypted {
    		if !crypto.IsMultiPart(o.UserDefined) {
    			return false
    		}
    		for _, part := range o.Parts {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:06:08 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  3. internal/crypto/metadata_test.go

    }
    
    func TestIsMultipart(t *testing.T) {
    	for i, test := range isMultipartTests {
    		if isMultipart := IsMultiPart(test.Metadata); isMultipart != test.Multipart {
    			t.Errorf("Test %d: got '%v' - want '%v'", i, isMultipart, test.Multipart)
    		}
    	}
    }
    
    var isEncryptedTests = []struct {
    	Metadata  map[string]string
    	Encrypted bool
    }{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-rebalance.go

    		gr.Close()
    		auditLogRebalance(ctx, "RebalanceCopyData", oi.Bucket, oi.Name, oi.VersionID, err)
    	}()
    
    	actualSize, err := oi.GetActualSize()
    	if err != nil {
    		return err
    	}
    
    	if oi.isMultipart() {
    		res, err := z.NewMultipartUpload(ctx, bucket, oi.Name, ObjectOptions{
    			VersionID:    oi.VersionID,
    			UserDefined:  oi.UserDefined,
    			NoAuditLog:   true,
    			DataMovement: true,
    			SrcPoolIdx:   poolIdx,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool-decom.go

    		auditLogDecom(ctx, "DecomCopyData", objInfo.Bucket, objInfo.Name, objInfo.VersionID, err)
    	}()
    
    	actualSize, err := objInfo.GetActualSize()
    	if err != nil {
    		return err
    	}
    
    	if objInfo.isMultipart() {
    		res, err := z.NewMultipartUpload(ctx, bucket, objInfo.Name, ObjectOptions{
    			VersionID:    objInfo.VersionID,
    			UserDefined:  objInfo.UserDefined,
    			NoAuditLog:   true,
    			SrcPoolIdx:   idx,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top