Capabilities

This service can be used to:

  • [ ] create_dir
  • [x] stat
  • [x] read
  • [x] write
  • [x] delete
  • [ ] list
  • [ ] copy
  • [ ] rename
  • [ ] presign

Configuration

  • endpoints: Set the endpoints to the tikv cluster
  • insecure: Set the insecure flag to the tikv cluster
  • ca_path: Set the ca path to the tikv connection
  • cert_path: Set the cert path to the tikv connection
  • key_path: Set the key path to the tikv connection

You can refer to [TikvBuilder]'s docs for more information

Example

Via Builder

use opendal_core::Operator;
use opendal_core::Result;
use opendal_service_tikv::Tikv;

#[tokio::main]
async fn main() -> Result<()> {
    let mut builder = Tikv::default()
        .endpoints(vec!["127.0.0.1:2379".to_string()]);

    let op: Operator = Operator::new(builder)?.finish();
    Ok(())
}