Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for oi (0.02 sec)

  1. cmd/bucket-object-lock.go

    			if objRetention.Mode != objectlock.RetCompliance || objRetention.RetainUntilDate.Before((ret.RetainUntilDate.Time)) {
    				return ObjectLocked{Bucket: oi.Bucket, Object: oi.Name, VersionID: oi.VersionID}
    			}
    			apiErr := isPutRetentionAllowed(oi.Bucket, oi.Name,
    				days, objRetention.RetainUntilDate.Time, objRetention.Mode,
    				false, r, cred, owner)
    			if apiErr == ErrAccessDenied {
    				return errAuthentication
    			}
    			return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    		partFile = match
    		break
    	}
    	return partFile
    }
    
    func partNumberToRangeSpec(oi ObjectInfo, partNumber int) *HTTPRangeSpec {
    	if oi.Size == 0 || len(oi.Parts) == 0 {
    		return nil
    	}
    
    	var start int64
    	end := int64(-1)
    	for i := 0; i < len(oi.Parts) && i < partNumber; i++ {
    		start = end + 1
    		end = start + oi.Parts[i].ActualSize - 1
    	}
    
    	return &HTTPRangeSpec{Start: start, End: end}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  3. 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)
  4. cmd/bucket-replication-utils.go

    	if oi.DeleteMarker || !oi.VersionPurgeStatus.Empty() {
    		dsc = checkReplicateDelete(GlobalContext, oi.Bucket, ObjectToDelete{
    			ObjectV: ObjectV{
    				ObjectName: oi.Name,
    				VersionID:  oi.VersionID,
    			},
    		}, oi, ObjectOptions{
    			Versioned:        globalBucketVersioningSys.PrefixEnabled(oi.Bucket, oi.Name),
    			VersionSuspended: globalBucketVersioningSys.PrefixSuspended(oi.Bucket, oi.Name),
    		}, nil)
    	} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top