[PR #1158] [MERGED] fakestorage: don't expose the Backend field #1245

Closed
opened 2026-03-03 12:33:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/1158
Author: @fsouza
Created: 5/10/2023
Status: Merged
Merged: 5/10/2023
Merged by: @fsouza

Base: mainHead: dont-modify-backend


📝 Commits (1)

  • a900963 fakestorage: don't expose the Backend field

📊 Changes

6 files changed (+31 additions, -27 deletions)

View changed files

📝 fakestorage/bucket.go (+8 -8)
📝 fakestorage/object.go (+11 -11)
📝 fakestorage/server.go (+8 -4)
📝 fakestorage/server_test.go (+2 -2)
📝 fakestorage/upload.go (+1 -1)
📝 main.go (+1 -1)

📄 Description

Make it available via a method instead. This way at least the reference is readonly.

Technically a breaking change, but it's short-lived :)


🔄 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/1158 **Author:** [@fsouza](https://github.com/fsouza) **Created:** 5/10/2023 **Status:** ✅ Merged **Merged:** 5/10/2023 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `main` ← **Head:** `dont-modify-backend` --- ### 📝 Commits (1) - [`a900963`](https://github.com/fsouza/fake-gcs-server/commit/a90096332c813848ebdabccdefd255ba0917cff5) fakestorage: don't expose the Backend field ### 📊 Changes **6 files changed** (+31 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `fakestorage/bucket.go` (+8 -8) 📝 `fakestorage/object.go` (+11 -11) 📝 `fakestorage/server.go` (+8 -4) 📝 `fakestorage/server_test.go` (+2 -2) 📝 `fakestorage/upload.go` (+1 -1) 📝 `main.go` (+1 -1) </details> ### 📄 Description Make it available via a method instead. This way at least the reference is readonly. Technically a breaking change, but it's short-lived :) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:33:43 +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#1245
No description provided.