Skip to main content

Module mock

Module mock 

Source

Modules§

oio
oio provides OpenDAL’s raw traits and types that opendal returns as output.

Structs§

AppendWriter
AppendWriter will implements oio::Write based on append object.
BatchDeleteResult
BatchDeleteResult is the result of batch delete operation.
BatchDeleter
BatchDeleter is used to implement oio::Delete based on batch delete.
BlockCopier
BlockCopier implements oio::Copy based on block copy.
BlockWriter
BlockWriter will implement oio::Write based on block uploads.
Buffer
Buffer is a wrapper of contiguous Bytes and non-contiguous [Bytes].
Entry
Entry is returned by Page or BlockingPage during list operations.
Error
Error is the error struct returned by all opendal functions.
FlatLister
FlatLister will walk dir in bottom up way:
FlexBuf
FlexBuf is a buffer that support frozen bytes and reuse existing allocated memory.
HierarchyLister
ToHierarchyLister will convert a flat list to hierarchy by filter not needed entries.
Metadata
Metadata contains all the information related to a specific path.
MockDeleter
MockLayer
MockLayerBuilder
Builder for MockLayer.
MockLister
MockReader
MockService 🔒
MockWriter
MultipartCopier
MultipartCopier implements oio::Copy based on multipart copy.
MultipartPart
The result of MultipartWrite::write_part.
MultipartWriter
MultipartWriter will implement oio::Write based on multipart uploads.
OneShotCopier
OneShotCopier drives a single asynchronous copy step.
OneShotDeleter
OneShotDelete is used to implement oio::Delete based on one shot.
OneShotWriter
OneShotWrite is used to implement oio::Write based on one shot.
OpCopy
Arguments for copy operation.
OpDelete
Arguments for delete operation.
OpList
Arguments for list operation.
OpRead
Arguments for read operation.
OpWrite
Arguments for write operation.
OperationContext
Composed resources passed from operator to services and layers.
PageContext
PageContext is the context passing between PageList.
PageLister
PageLister implements oio::List based on PageList.
PooledBuf
PooledBuf is a buffer pool that designed for reusing already allocated bufs.
PositionReader
PositionReader implements oio::Read based on PositionRead.
PositionWriter
PositionWriter will implement oio::Write based on position write.
PrefixLister
PrefixLister is used to filter entries by prefix.
QueueBuf
QueueBuf is a queue of Buffer.
RpRead
Reply for read operation.
StreamReader
StreamReader implements oio::Read based on StreamRead.

Enums§

BytesRange
BytesRange carries a range of content.
ErrorKind
OpenDAL error categories.
MockLayerBuilderError
Error type for MockLayerBuilder

Traits§

AppendWrite
AppendWrite is used to implement oio::Write based on append object. By implementing AppendWrite, services don’t need to care about the details of buffering and uploading parts.
BatchDelete
BatchDelete is used to implement oio::Delete based on batch delete operation.
BlockCopy
BlockCopy is used to implement oio::Copy based on block copy.
BlockWrite
BlockWrite is used to implement oio::Write based on block uploads. By implementing BlockWrite, services don’t need to care about the details of uploading blocks.
Copy
Copy is the trait that OpenDAL returns for stateful copy operations.
CopyDyn
CopyDyn is the dyn version of Copy.
Delete
The Delete trait defines interfaces for performing deletion operations.
DeleteDyn
The dyn version of Delete.
IntoMultipartCopyContext
Build executor and capability inputs for MultipartCopier.
Layer
Layer intercepts an operator’s composed runtime resources.
List
List is returned by Service to stream entries for a list operation.
ListDyn
ListDyn is the dyn version of List.
MultipartCopy
MultipartCopy is used to implement oio::Copy based on multipart copy.
MultipartWrite
MultipartWrite is used to implement oio::Write based on multipart uploads. By implementing MultipartWrite, services don’t need to care about the details of uploading parts.
OneShotDelete
OneShotDelete is used to implement oio::Delete based on one shot operation.
OneShotWrite
OneShotWrite is used to implement oio::Write based on one shot operation. By implementing OneShotWrite, services don’t need to care about the details.
PageList
PageList is used to implement oio::List based on API supporting pagination. By implementing PageList, services don’t need to care about the details of page list.
PositionRead
PositionRead is used to implement oio::Read based on positioned reads.
PositionWrite
PositionWrite is used to implement oio::Write based on position write.
Read
Read is the internal trait used by OpenDAL to read ranges from storage.
ReadDyn
ReadDyn is the dyn-compatible adapter for Read.
ReadStream
ReadStream is the internal trait used by OpenDAL to stream data from storage.
ReadStreamDyn
ReadStreamDyn is the dyn-compatible adapter for ReadStream.
Service
Foundational trait for storage services.
StreamRead
StreamRead is used to implement oio::Read based on native range streams.
Write
Write is the async sink used by services and layers.
WriteDyn
WriteDyn is the object-safe version of Write used by Writer.

Type Aliases§

Copier
Copier is the type-erased Copy.
CopyInterceptor
Deleter
Deleter is a type erased Delete.
Lister
Lister is the type-erased List.
MockDeleterFactory
MockListerFactory
MockReaderFactory
MockWriterFactory
Reader
Reader is a type erased Read.
Result
A specialized std::result::Result whose default error type is Error.
Servicer
Type-erased service handle used by layer composition and operators.
Writer
Writer is a type-erased Write.