Crates.io | libstorage |
lib.rs | libstorage |
version | 0.4.8 |
source | src |
created_at | 2019-02-08 22:42:35.196057 |
updated_at | 2021-10-12 17:56:34.500435 |
description | Storage helper functions |
homepage | https://github.com/Comcast/libstorage |
repository | |
max_upload_size | |
id | 113611 |
size | 967,630 |
libstorage is a collection of helper functions written in RUST to make interfacing with storage servers easier. Under the src/ directory there is a module for each storage system the library supports.
libstorage is easy to use in your project. Just include the dependency in your Cargo.toml and you're ready to roll. The isilon library has been put behind a cargo feature flag because it's so large and the feature has to be enabled during the build.
The following example shows a sample use of the hitachi module:
use libstorage::hitachi::HitachiConfig;
use reqwest::Client;
fn main() -> Result<(), libstorage::Error>> {
let web_client = reqwest::Client::new();
let hitachi_config = HitachiConfig {
endpoint: "server".into(),
user: "username".into(),
password: "password".into(),
region: "region".into(),
};
// 1. Get the host:instance list with /AgentForRAID
let agents = get_agent_for_raid(&web_client, &hitachi_config)?;
println!("items: {} {:?}", agents.items.len(), agents);
Ok(())
}
If you need support, start by checking the issues page. If that doesn't answer your questions, or if you think you found a bug, please file an issue.
That said, if you have questions, reach out to us communication.
Want to contribute to libstorage? Awesome! Check out the contributing guide.