[PR #538] [MERGED] Add compose function support #695

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

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/538
Author: @nmbryant
Created: 7/20/2021
Status: Merged
Merged: 7/21/2021
Merged by: @fsouza

Base: mainHead: compose-object


📝 Commits (4)

  • 18a9e50 Adds endpoint to support compose on objects
  • ef7de8f Fixes typo in test, removes unnecessary slice from ComposeObject
  • ddfffb4 Fixes linter errors
  • cc078bf Uses an anonymous struct in composeObject, changes error code if compose fails

📊 Changes

6 files changed (+261 additions, -0 deletions)

View changed files

📝 fakestorage/object.go (+43 -0)
📝 fakestorage/object_test.go (+146 -0)
📝 fakestorage/server.go (+1 -0)
📝 internal/backend/fs.go (+35 -0)
📝 internal/backend/memory.go (+35 -0)
📝 internal/backend/storage.go (+1 -0)

📄 Description

Adds a compose endpoint to merge the content of source objects into the destination object.

Closes: #527


🔄 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/538 **Author:** [@nmbryant](https://github.com/nmbryant) **Created:** 7/20/2021 **Status:** ✅ Merged **Merged:** 7/21/2021 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `main` ← **Head:** `compose-object` --- ### 📝 Commits (4) - [`18a9e50`](https://github.com/fsouza/fake-gcs-server/commit/18a9e501d28d96785b6b52f580de2fa2b878dbb5) Adds endpoint to support compose on objects - [`ef7de8f`](https://github.com/fsouza/fake-gcs-server/commit/ef7de8f902049d161b270f9a47971a41c613b17d) Fixes typo in test, removes unnecessary slice from ComposeObject - [`ddfffb4`](https://github.com/fsouza/fake-gcs-server/commit/ddfffb43d85a21d4fe01fc1417f47ebde6a7257a) Fixes linter errors - [`cc078bf`](https://github.com/fsouza/fake-gcs-server/commit/cc078bfba3b3942f1997fc492b84b082e4de0253) Uses an anonymous struct in composeObject, changes error code if compose fails ### 📊 Changes **6 files changed** (+261 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `fakestorage/object.go` (+43 -0) 📝 `fakestorage/object_test.go` (+146 -0) 📝 `fakestorage/server.go` (+1 -0) 📝 `internal/backend/fs.go` (+35 -0) 📝 `internal/backend/memory.go` (+35 -0) 📝 `internal/backend/storage.go` (+1 -0) </details> ### 📄 Description Adds a [compose](https://cloud.google.com/storage/docs/json_api/v1/objects/compose) endpoint to merge the content of source objects into the destination object. Closes: #527 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:31:12 +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#695
No description provided.