Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ToLifecycleOpts (0.17 sec)

  1. cmd/api-headers.go

    		w.Header()[xhttp.AmzStorageClass] = []string{filterStorageClass(ctx, objInfo.TransitionedObject.Tier)}
    	}
    
    	if lc, err := globalLifecycleSys.Get(objInfo.Bucket); err == nil {
    		lc.SetPredictionHeaders(w, objInfo.ToLifecycleOpts())
    	}
    
    	if v, ok := objInfo.UserDefined[ReservedMetadataPrefix+"compression"]; ok {
    		if i := strings.LastIndexByte(v, '/'); i >= 0 {
    			v = v[i+1:]
    		}
    		w.Header()[xhttp.MinIOCompressed] = []string{v}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 04:44:00 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle.go

    		if restoreStatus, err := parseRestoreObjStatus(restoreHdr); err == nil {
    			return restoreStatus.OnDisk()
    		}
    	}
    	return onDisk
    }
    
    // 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,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  3. cmd/object-handlers-common.go

    		}
    	}
    
    	if objInfo.Bucket != "" && objInfo.Name != "" {
    		if lc, err := globalLifecycleSys.Get(objInfo.Bucket); err == nil && !delete {
    			lc.SetPredictionHeaders(w, objInfo.ToLifecycleOpts())
    		}
    	}
    	hash.AddChecksumHeader(w, objInfo.decryptChecksums(0, h))
    }
    
    func deleteObjectVersions(ctx context.Context, o ObjectLayer, bucket string, toDel []ObjectToDelete, lcEvent lifecycle.Event) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. cmd/data-scanner.go

    	}
    	return false, size
    }
    
    func evalActionFromLifecycle(ctx context.Context, lc lifecycle.Lifecycle, lr lock.Retention, rcfg *replication.Config, obj ObjectInfo) lifecycle.Event {
    	event := lc.Eval(obj.ToLifecycleOpts())
    	if serverDebugLog {
    		console.Debugf(applyActionsLogPrefix+" lifecycle: Secondary scan: %v\n", event.Action)
    	}
    
    	switch event.Action {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top