GCSObjectReader defines the interface for reading GCS objects to allow mocking in tests.
| 16 | |
| 17 | // GCSObjectReader defines the interface for reading GCS objects to allow mocking in tests. |
| 18 | type GCSObjectReader interface { |
| 19 | GetObject(ctx context.Context, bucket string, object string) (io.ReadCloser, error) |
| 20 | DeleteObject(ctx context.Context, bucket string, object string) error |
| 21 | } |
| 22 | |
| 23 | // GCSClient implements GCSObjectReader using the real GCS SDK. |
| 24 | type GCSClient struct { |
no outgoing calls
no test coverage detected