Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 34 for IsLatest (0.04 seconds)

  1. cmd/metacache-entries.go

    	if e.cached != nil {
    		if len(e.cached.versions) == 0 {
    			// This special case is needed to handle xlMeta.versions == 0
    			return FileInfo{
    				Volume:   bucket,
    				Name:     e.name,
    				Deleted:  true,
    				IsLatest: true,
    				ModTime:  timeSentinel1970,
    			}, nil
    		}
    		return e.cached.ToFileInfo(bucket, e.name, "", false, true)
    	}
    	return getFileInfo(e.metadata, bucket, e.name, "", fileInfoOpts{})
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Aug 08 15:29:58 GMT 2024
    - 24.1K bytes
    - Click Count (0)
  2. cmd/batch-handlers.go

    		ModTime:                   objInfo.LastModified,
    		Size:                      objInfo.Size,
    		ETag:                      objInfo.ETag,
    		VersionID:                 objInfo.VersionID,
    		IsLatest:                  objInfo.IsLatest,
    		DeleteMarker:              objInfo.IsDeleteMarker,
    		ContentType:               objInfo.ContentType,
    		Expires:                   objInfo.Expires,
    		StorageClass:              objInfo.StorageClass,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 63.5K bytes
    - Click Count (1)
  3. internal/bucket/lifecycle/evaluator_test.go

    			VersionID:   verIDs[i],
    			ModTime:     curModTime.Add(time.Duration(-i) * time.Second),
    			UserTags:    fmt.Sprintf("%s=minio", tagKeys[i]),
    			NumVersions: len(verIDs),
    		}
    		if i == 0 {
    			obj.IsLatest = true
    		} else {
    			obj.SuccessorModTime = curModTime.Add(time.Duration(-i+1) * time.Second)
    		}
    		objs = append(objs, obj)
    	}
    	now := time.Date(2025, time.February, 10, 23, 0, 0, 0, time.UTC)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Apr 08 15:41:24 GMT 2025
    - 5K bytes
    - Click Count (0)
  4. cmd/storage-datatypes_gen.go

    		return
    	}
    	z.VersionID, err = dc.ReadString()
    	if err != nil {
    		err = msgp.WrapError(err, "VersionID")
    		return
    	}
    	z.IsLatest, err = dc.ReadBool()
    	if err != nil {
    		err = msgp.WrapError(err, "IsLatest")
    		return
    	}
    	z.Deleted, err = dc.ReadBool()
    	if err != nil {
    		err = msgp.WrapError(err, "Deleted")
    		return
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 151.7K bytes
    - Click Count (0)
  5. internal/bucket/lifecycle/delmarker-expiration.go

    }
    
    // NextDue returns upcoming DelMarkerExpiration date for obj if
    // applicable, returns false otherwise.
    func (de DelMarkerExpiration) NextDue(obj ObjectOpts) (time.Time, bool) {
    	if !obj.IsLatest || !obj.DeleteMarker {
    		return time.Time{}, false
    	}
    
    	return ExpectedExpiryTime(obj.ModTime, de.Days), true
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  6. internal/bucket/lifecycle/evaluator.go

    				event.Action = NoneAction
    			}
    			if e.IsObjectLocked(obj) {
    				event = Event{}
    			}
    
    			if e.IsPendingReplication(obj) {
    				event = Event{}
    			}
    		}
    		if !obj.IsLatest {
    			switch event.Action {
    			case DeleteVersionAction:
    				// this noncurrent version will be expired, nothing to add
    			default:
    				// this noncurrent version will be spared
    				newerNoncurrentVersions++
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Apr 08 15:41:24 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  7. internal/bucket/lifecycle/transition.go

    	return t.StorageClass == ""
    }
    
    // NextDue returns upcoming transition date for obj and true if applicable,
    // returns false otherwise.
    func (t Transition) NextDue(obj ObjectOpts) (time.Time, bool) {
    	if !obj.IsLatest || t.IsNull() {
    		return time.Time{}, false
    	}
    
    	if !t.IsDateNull() {
    		return t.Date.Time, true
    	}
    
    	// Days == 0 indicates immediate tiering, i.e object is eligible for tiering since its creation.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  8. internal/bucket/lifecycle/noncurrentversion.go

    	return nil
    }
    
    // NextDue returns upcoming NoncurrentVersionTransition date for obj if
    // applicable, returns false otherwise.
    func (n NoncurrentVersionTransition) NextDue(obj ObjectOpts) (time.Time, bool) {
    	if obj.IsLatest || n.StorageClass == "" {
    		return time.Time{}, false
    	}
    	// Days == 0 indicates immediate tiering, i.e object is eligible for tiering since it became noncurrent.
    	if n.NoncurrentDays == 0 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Dec 14 17:41:44 GMT 2021
    - 5.3K bytes
    - Click Count (0)
  9. cmd/bucket-replication.go

    			ModTime:                   objInfo.LastModified,
    			Size:                      objInfo.Size,
    			ETag:                      objInfo.ETag,
    			VersionID:                 objInfo.VersionID,
    			IsLatest:                  objInfo.IsLatest,
    			DeleteMarker:              objInfo.IsDeleteMarker,
    			ContentType:               objInfo.ContentType,
    			Expires:                   objInfo.Expires,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 118.2K bytes
    - Click Count (0)
  10. cmd/batch-expire.go

    			if result.Item.DeleteMarker {
    				deleteMarkerCountMap[result.Item.Name]++
    			}
    			// Apply filter to find the matching rule to apply expiry
    			// actions accordingly.
    			// nolint:gocritic
    			if result.Item.IsLatest {
    				var match BatchJobExpireFilter
    				var found bool
    				for _, rule := range r.Rules {
    					if rule.Matches(result.Item, now) {
    						match = rule
    						found = true
    						break
    					}
    				}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Apr 22 11:16:32 GMT 2025
    - 23K bytes
    - Click Count (0)
Back to Top