mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[PR #1138] [MERGED] Add GRPC Api #1227
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#1227
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/1138
Author: @RachitSharma2001
Created: 4/22/2023
Status: ✅ Merged
Merged: 5/9/2023
Merged by: @fsouza
Base:
main← Head:main📝 Commits (6)
ed50c5cAdd GRPC Api044df61Fix Server errorddefedfRemove duplication in NewServerWithOptionsa78d9c2Add code format fixf2e0725Merge branch 'main' into main5c70f9cUpdate go mod📊 Changes
13 files changed (+14528 additions, -38 deletions)
View changed files
📝
fakestorage/bucket.go(+8 -8)📝
fakestorage/object.go(+11 -11)📝
fakestorage/server.go(+10 -5)📝
fakestorage/server_test.go(+20 -2)📝
fakestorage/upload.go(+1 -1)➕
genproto/googleapis/storage/v1/storage.pb.go(+9341 -0)➕
genproto/googleapis/storage/v1/storage_resources.pb.go(+4610 -0)📝
go.mod(+6 -5)📝
go.sum(+3 -0)➕
grpc/server.go(+178 -0)➕
grpc/server_test.go(+314 -0)📝
internal/config/config.go(+1 -0)📝
main.go(+25 -6)📄 Description
Addresses issue #146
Here are the list of changes made:
server.go, the methodNewServerWithOptionsOnCmuxis invoked bymain.go, in order to set up an HTTP serverinternal/backend/storage.gostorage.pb.goandstorage_resources.pb.gofiles.Let me know if there is anything concerning or anything that should change. It seems like all the unit and end to end tests succeed, so it looks like both Http and Grpc requests can now be made.
I also had created a script that makes GRPC requests to the server using GRPCurl:
The output:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.