- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ParseLifecycleConfigWithID (0.25 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 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
// 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(io.LimitReader(r.Body, r.ContentLength)) if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } // Validate the received bucket policy document
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 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 Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 55.1K bytes - Viewed (0)