This interface defines virtual methods for each of the user-facing overload sets in AsyncClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type AsyncClient.
To create a concrete instance, see MakeAsyncConnection().
For mocking, see storage_mocks::MockAsyncConnection.
Functions
options() const
Returns
Type
Description
Options
AsyncInsertObject(InsertObjectParams)
Insert a new object.
Parameter
Name
Description
p
InsertObjectParams
Returns
Type
Description
future< StatusOr< storage::ObjectMetadata > >
AsyncReadObject(ReadObjectParams)
Asynchronously create a stream to read object contents.