5 configuration options · available in Rust, Python, Node.js, Java
use opendal::Operator;
let op = Operator::via_iter("seafile", [
("repo_name".to_string(), "...".to_string()),
])?;
use opendal::Operator;
let op = Operator::via_iter("seafile", [
// root of this backend.
//
// All operations will happen under this root.
// ("root".to_string(), "...".to_string()),
// endpoint address of this backend.
// ("endpoint".to_string(), "...".to_string()),
// username of this backend.
// ("username".to_string(), "...".to_string()),
// password of this backend.
// ("password".to_string(), "...".to_string()),
// repo_name of this backend.
//
// required.
("repo_name".to_string(), "...".to_string()),
])?;
Every option is passed as a string key; OpenDAL parses it into the right type. Some services may require building the binding with the matching services-* feature enabled.
| Key | Type | Required | Description |
|---|---|---|---|
root | string | no | root of this backend. All operations will happen under this root. |
endpoint | string | no | endpoint address of this backend. |
username | string | no | username of this backend. |
password | string | no | password of this backend. |
repo_name | string | yes | repo_name of this backend. required. |