Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for oi (0.04 sec)

  1. cmd/batch-rotate.go

    	if err = rotateKey(ctx, []byte{}, newKeyID, []byte{}, r.Bucket, oi.Name, encMetadata, newKeyContext); err != nil {
    		return err
    	}
    
    	// Since we are rotating the keys, make sure to update the metadata.
    	oi.metadataOnly = true
    	oi.keyRotation = true
    	for k, v := range encMetadata {
    		oi.UserDefined[k] = v
    	}
    	if _, err := api.CopyObject(ctx, r.Bucket, oi.Name, r.Bucket, oi.Name, oi, ObjectOptions{
    		VersionID: oi.VersionID,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. cmd/batch-handlers.go

    	}
    
    	oi.UserDefined = make(map[string]string, len(objInfo.Metadata))
    	for k, v := range objInfo.Metadata {
    		oi.UserDefined[k] = v[0]
    	}
    
    	ce, ok := oi.UserDefined[xhttp.ContentEncoding]
    	if !ok {
    		ce, ok = oi.UserDefined[strings.ToLower(xhttp.ContentEncoding)]
    	}
    	if ok {
    		oi.ContentEncoding = ce
    	}
    
    	_, ok = oi.UserDefined[xhttp.AmzStorageClass]
    	if !ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  3. cmd/bucket-lifecycle.go

    // ToLifecycleOpts returns lifecycle.ObjectOpts value for oi.
    func (oi ObjectInfo) ToLifecycleOpts() lifecycle.ObjectOpts {
    	return lifecycle.ObjectOpts{
    		Name:             oi.Name,
    		UserTags:         oi.UserTags,
    		VersionID:        oi.VersionID,
    		ModTime:          oi.ModTime,
    		Size:             oi.Size,
    		IsLatest:         oi.IsLatest,
    		NumVersions:      oi.NumVersions,
    		DeleteMarker:     oi.DeleteMarker,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  4. cmd/data-scanner.go

    func (i *scannerItem) healReplication(ctx context.Context, o ObjectLayer, oi ObjectInfo, sizeS *sizeSummary) {
    	if oi.VersionID == "" {
    		return
    	}
    	if i.replication.Config == nil {
    		return
    	}
    	roi := queueReplicationHeal(ctx, oi.Bucket, oi, i.replication, 0)
    	if oi.DeleteMarker || !oi.VersionPurgeStatus.Empty() {
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  5. cmd/bucket-replication.go

    	ri := ReplicateObjectInfo{
    		Name:                       oi.Name,
    		Size:                       oi.Size,
    		ActualSize:                 asz,
    		Bucket:                     oi.Bucket,
    		VersionID:                  oi.VersionID,
    		ETag:                       oi.ETag,
    		ModTime:                    oi.ModTime,
    		ReplicationStatus:          oi.ReplicationStatus,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  6. cmd/object-api-deleteobject_test.go

    			md5Bytes := md5.Sum([]byte(object.content))
    			oi, err := obj.PutObject(context.Background(), testCase.bucketName, object.name, mustGetPutObjReader(t, strings.NewReader(object.content),
    				int64(len(object.content)), hex.EncodeToString(md5Bytes[:]), ""), ObjectOptions{})
    			if err != nil {
    				t.Log(oi)
    				t.Fatalf("%s : %s", instanceType, err.Error())
    			}
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool-rebalance.go

    	oi := gr.ObjInfo
    
    	defer func() {
    		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,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  8. cmd/erasure-multipart.go

    		if checksumType.IsSet() {
    			if opts.EncryptFn == nil {
    				return oi, crypto.ErrMissingCustomerKey
    			}
    			baseKey := opts.EncryptFn("", nil)
    			if len(baseKey) != 32 {
    				return oi, crypto.ErrInvalidCustomerKey
    			}
    			objectEncryptionKey, err = decryptObjectMeta(baseKey, bucket, object, fi.Metadata)
    			if err != nil {
    				return oi, err
    			}
    		}
    	case crypto.S3, crypto.S3KMS:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    	oi := objInfo.Clone()
    	oi.metadataOnly = true // Perform only metadata updates.
    
    	// allow retry in the case of failure to restore
    	delete(oi.UserDefined, xhttp.AmzRestore)
    
    	if _, err := er.CopyObject(ctx, bucket, object, bucket, object, oi, ObjectOptions{
    		VersionID: oi.VersionID,
    	}, ObjectOptions{
    		VersionID: oi.VersionID,
    	}); err != 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)
  10. cmd/object-handlers.go

    			return
    		}
    	}
    
    	// Validate pre-conditions if any.
    	opts.CheckPrecondFn = func(oi ObjectInfo) bool {
    		if _, err := DecryptObjectInfo(&oi, r); err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return true
    		}
    
    		if oi.UserTags != "" {
    			r.Header.Set(xhttp.AmzObjectTagging, oi.UserTags)
    		}
    
    		if s3Error := authorizeRequest(ctx, r, policy.GetObjectAction); s3Error != ErrNone {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top