Functions
options() const
The options used to configure this connection, with any defaults applied.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Returns | |
---|---|
Type | Description |
Options |
InsertObject(InsertObjectParams)
Insert a new object.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
InsertObjectParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::storage::v2::Object > > |
ReadObject(ReadObjectParams)
Asynchronously create a stream to read object contents.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
ReadObjectParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< std::unique_ptr< AsyncReaderConnection > > > |
ReadObjectRange(ReadObjectParams)
Read a range from an object returning all the contents.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
ReadObjectParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< ReadPayload > > |
StartUnbufferedUpload(UploadParams)
Start (or resume) an upload configured for persistent sources.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
UploadParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< std::unique_ptr< storage_experimental::AsyncWriterConnection > > > |
StartBufferedUpload(UploadParams)
Start (or resume) an upload configured for streaming sources.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
UploadParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< std::unique_ptr< storage_experimental::AsyncWriterConnection > > > |
ResumeUnbufferedUpload(ResumeUploadParams)
Resume an upload configured for persistent sources.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
ResumeUploadParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< std::unique_ptr< storage_experimental::AsyncWriterConnection > > > |
ResumeBufferedUpload(ResumeUploadParams)
Resume an upload configured for streaming sources.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
ResumeUploadParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< std::unique_ptr< storage_experimental::AsyncWriterConnection > > > |
ComposeObject(ComposeObjectParams)
Create a new object by composing (concatenating) the contents of existing objects.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
ComposeObjectParams
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::storage::v2::Object > > |
DeleteObject(DeleteObjectParams)
Delete an object.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
DeleteObjectParams
|
Returns | |
---|---|
Type | Description |
future< Status > |
RewriteObject(RewriteObjectParams)
Start an object rewrite.
This function is implemented using gMock's MOCK_METHOD()
.
Consult the gMock documentation to use this mock in your tests.
Parameter | |
---|---|
Name | Description |
p |
RewriteObjectParams
|
Returns | |
---|---|
Type | Description |
std::shared_ptr< AsyncRewriterConnection > |