rusty_weed
A client implementation in rust for SeaweedFS. Written with the help of reqwest as http client and serde for serialization/deserialization.
Examples
Upload bytes
let master = Master ;
let options: AssignKeyOptions = Defaultdefault;
let master_resp = master.assign_key.await;
let fid: FID;
let volume: Volume;
match master_resp
let data = from;
let resp = volume.upload_file_bytes.await;
Upload file with multipart/form-data
let master = Master ;
let options: AssignKeyOptions = Defaultdefault;
let master_resp = master.assign_key.await;
let fid: FID;
let volume: Volume;
match master_resp
let form = new.part;
let file_resp = volume.upload_file_form.await;
TODO
Master endpoints
- /vol/vacuum
- /vol/grow
- /col/delete
- /cluster/status
- /cluster/healthz
- /dir/status
- /vol/status
Volume endpoints
- /status
Filer endpoints
- all