- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ParseLifecycleConfigWithID (0.09 sec)
-
internal/bucket/lifecycle/lifecycle.go
} if !rule.Transition.IsNull() { // this allows for Transition.Days to be zero. return true } } return false } // ParseLifecycleConfigWithID - parses for a Lifecycle config and assigns // unique id to rules with empty ID. func ParseLifecycleConfigWithID(r io.Reader) (*Lifecycle, error) { var lc Lifecycle if err := xml.NewDecoder(r).Decode(&lc); err != nil { return nil, err }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Apr 03 06:45:06 UTC 2025 - 18.2K bytes - Viewed (0) -
cmd/bucket-lifecycle-handlers.go
// Check if bucket exists. rcfg, err := globalBucketObjectLockSys.Get(bucket) if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } bucketLifecycle, err := lifecycle.ParseLifecycleConfigWithID(r.Body) if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } // Validate the received bucket policy document if err = bucketLifecycle.Validate(rcfg); err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Jan 20 14:49:07 UTC 2025 - 7K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle_test.go
<Expiration><Days>3</Days></Expiration> </Rule> </LifecycleConfiguration>`)) lc, err := ParseLifecycleConfigWithID(r) if err != nil { t.Fatalf("Expected parsing to succeed but failed with %v", err) } for _, rule := range lc.Rules { if rule.ID == "" {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 55.5K bytes - Viewed (0)