[PR #2026] [MERGED] implement retention CRUD #2031

Closed
opened 2026-03-03 12:37:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/2026
Author: @motiejus
Created: 9/12/2025
Status: Merged
Merged: 1/31/2026
Merged by: @fsouza

Base: mainHead: retention


📝 Commits (2)

  • 91a47c7 implement retention CRUD
  • 85d717b Expose Retention to objectResponse

📊 Changes

5 files changed (+363 additions, -52 deletions)

View changed files

📝 fakestorage/object.go (+131 -33)
📝 fakestorage/object_test.go (+183 -0)
📝 fakestorage/response.go (+15 -0)
📝 fakestorage/upload.go (+13 -0)
📝 internal/backend/object.go (+21 -19)

📄 Description

The simplest thing that can possibly set/get retention configuration.

It will honor Locked/Unlocked. It will not actually remove objects that are out of retention.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fsouza/fake-gcs-server/pull/2026 **Author:** [@motiejus](https://github.com/motiejus) **Created:** 9/12/2025 **Status:** ✅ Merged **Merged:** 1/31/2026 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `main` ← **Head:** `retention` --- ### 📝 Commits (2) - [`91a47c7`](https://github.com/fsouza/fake-gcs-server/commit/91a47c72752c310d683886fb84aba647a3d890f0) implement retention CRUD - [`85d717b`](https://github.com/fsouza/fake-gcs-server/commit/85d717b8e9480da67846ba427a40a2a7bb14ce8b) Expose Retention to objectResponse ### 📊 Changes **5 files changed** (+363 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `fakestorage/object.go` (+131 -33) 📝 `fakestorage/object_test.go` (+183 -0) 📝 `fakestorage/response.go` (+15 -0) 📝 `fakestorage/upload.go` (+13 -0) 📝 `internal/backend/object.go` (+21 -19) </details> ### 📄 Description The simplest thing that can possibly set/get retention configuration. It will honor Locked/Unlocked. It will not actually remove objects that are out of retention. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:37:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#2031
No description provided.