- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for parseLegalHoldStatus (0.09 sec)
-
internal/bucket/object/lock/lock.go
} return ObjectLegalHold{} } // ParseObjectLockLegalHoldHeaders parses request headers to construct ObjectLegalHold func ParseObjectLockLegalHoldHeaders(h http.Header) (lhold ObjectLegalHold, err error) { holdStatus, ok := h[AmzObjectLockLegalHold] if ok { lh := parseLegalHoldStatus(holdStatus[0]) if !lh.Valid() {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 17.9K bytes - Viewed (0) -
internal/bucket/object/lock/lock_test.go
}, { value: "Off", expectedStatus: LegalHoldOff, }, { value: "x", expectedStatus: "", }, } for _, tt := range tests { actualStatus := parseLegalHoldStatus(tt.value) if actualStatus != tt.expectedStatus { t.Errorf("Expected legal hold status %s, got %s", tt.expectedStatus, actualStatus) } } } // TestUnmarshalDefaultRetention checks if default retentionRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 18.4K bytes - Viewed (0)