opendal Plugin

OpenDAL offers a unified data access layer, empowering users to seamlessly and efficiently retrieve data from diverse storage services.

OpenDAL

crates.io Documentation

Dependencies

spring-opendal = { version = "<version>" }

Configuration items

[opendal]
scheme = "fs"                # service that OpenDAL supports
options = { root = "/tmp" }  # service options. Different options for different scheme
layers = []                  # Layer is the mechanism to intercept operations.

For Layer configuration, see this document

Components

After configuring the above configuration items, the plugin will automatically register a Op client. This object is an alias of opendal::Operator.

pub type Op = Operator;

For the complete code, please refer to spring-opendal-example