-
Notifications
You must be signed in to change notification settings - Fork 837
blob/gcsblob: add support for gRPC client #3615
Copy link
Copy link
Closed
Description
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
cloud.google.com/go/storage supports the Cloud Storage gRPC API (docs). A major advantage is that it can use Direct Connectivity.
I would like to have be able to use the blob abstraction while still being able to use the gRPC API. I am not sure what the best way to achieve this is. Some options include:
- Adding
UseGRPCClientto the Options which switches the client from HTTP to gRPC. This might be weird because the OpenBucket contains agcp.HTTPClient. - Adding an
OpenBucketUsingGrpcas an additional function ingocloud.dev/blob/gcsblob, which takes agrpc.ClientConn. Additionally add aDialfunction similar to the one in gcppubsub (see Dial).
Describe alternatives you've considered
I don't think there is any alternative except using cloud.google.com/go/storage directly (I might be mistaken).
Additional context
NA.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels