View source on GitHub |
Base class for defining how blobs are stored.
Inherits From: expected_type
This base class merely defines an interface that all stub blob-storage mechanisms must implement.
Methods
DeleteBlob
DeleteBlob(
blob_key
)
Delete blob data from storage.
Args | |
---|---|
blob_key
|
Blob-key of existing blob to delete. |
OpenBlob
OpenBlob(
blob_key
)
Open blob for streaming.
Args | |
---|---|
blob_key
|
Blob-key of existing blob to open for reading. |
Returns | |
---|---|
Open file stream for reading blob. Caller is responsible for closing file. |
StoreBlob
StoreBlob(
blob_key, blob_stream
)
Store blob stream.
Implement this method to persist blob data.
Args | |
---|---|
blob_key
|
Blob key of blob to store. |
blob_stream
|
Stream or stream-like object that will generate blob content. |