- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for HasExpiry (0.16 sec)
-
internal/bucket/lifecycle/lifecycle.go
func (lc Lifecycle) HasTransition() bool { for _, rule := range lc.Rules { if rule.Transition.IsEnabled() { return true } } return false } // HasExpiry returns 'true' if lifecycle document has Expiry enabled. func (lc Lifecycle) HasExpiry() bool { for _, rule := range lc.Rules { if !rule.Expiration.IsNull() || !rule.NoncurrentVersionExpiration.IsNull() { return true } } return false }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 17.9K bytes - Viewed (0) -
cmd/bucket-lifecycle-handlers.go
(!ok || (updRule.Expiration.IsNull() && updRule.NoncurrentVersionExpiration.IsNull())) { expiryRuleRemoved = true } } } if bucketLifecycle.HasExpiry() || expiryRuleRemoved { currtime := time.Now() bucketLifecycle.ExpiryUpdatedAt = &currtime } configData, err := xml.Marshal(bucketLifecycle) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 7K bytes - Viewed (0) -
cmd/site-replication.go
}) if err != nil { return errSRBucketMetaError(err) } } // Replicate ILM expiry rules if needed if addOpts.ReplicateILMExpiry && (meta.lifecycleConfig != nil && meta.lifecycleConfig.HasExpiry()) { var expLclCfg lifecycle.Lifecycle expLclCfg.XMLName = meta.lifecycleConfig.XMLName for _, rule := range meta.lifecycleConfig.Rules {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 185.1K bytes - Viewed (0)