GCSClient implements GCSObjectReader using the real GCS SDK.
| 22 | |
| 23 | // GCSClient implements GCSObjectReader using the real GCS SDK. |
| 24 | type GCSClient struct { |
| 25 | client *storage.Client |
| 26 | } |
| 27 | |
| 28 | func (g *GCSClient) GetObject(ctx context.Context, bucket string, object string) (io.ReadCloser, error) { |
| 29 | return g.client.Bucket(bucket).Object(object).NewReader(ctx) |
nothing calls this directly
no outgoing calls
no test coverage detected