5 configuration options · available in Rust, Python
use opendal::Operator;
let op = Operator::via_iter("cloudflare-kv", [
])?;
use opendal::Operator;
let op = Operator::via_iter("cloudflare-kv", [
// The token used to authenticate with CloudFlare.
// ("api_token".to_string(), "...".to_string()),
// The account ID used to authenticate with CloudFlare. Used as URI path parameter.
// ("account_id".to_string(), "...".to_string()),
// The namespace ID. Used as URI path parameter.
// ("namespace_id".to_string(), "...".to_string()),
// The default ttl for write operations.
// ("default_ttl".to_string(), "10s".to_string()),
// Root within this backend.
// ("root".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 |
|---|---|---|---|
api_token | string | no | The token used to authenticate with CloudFlare. |
account_id | string | no | The account ID used to authenticate with CloudFlare. Used as URI path parameter. |
namespace_id | string | no | The namespace ID. Used as URI path parameter. |
default_ttl | duration | no | The default ttl for write operations. |
root | string | no | Root within this backend. |