Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/comcast/libstorage
rust storage server helper utilities
https://github.com/comcast/libstorage
brocade hitachi isilon netapp openstack rust scaleio vmax vnx
Last synced: 1 day ago
JSON representation
rust storage server helper utilities
- Host: GitHub
- URL: https://github.com/comcast/libstorage
- Owner: Comcast
- License: apache-2.0
- Created: 2019-02-07T17:43:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T18:39:18.000Z (over 1 year ago)
- Last Synced: 2024-11-13T19:09:54.953Z (2 days ago)
- Topics: brocade, hitachi, isilon, netapp, openstack, rust, scaleio, vmax, vnx
- Language: Rust
- Homepage:
- Size: 409 KB
- Stars: 7
- Watchers: 6
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: Contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# libstorage
[![Build Status](https://travis-ci.org/Comcast/libstorage.svg?branch=master)](https://travis-ci.org/Comcast/libstorage)
[![crates.io](https://img.shields.io/crates/v/libstorage.svg)](https://crates.io/crates/libstorage)
[![Documentation](https://docs.rs/libstorage/badge.svg)](https://docs.rs/libstorage)
Library for all our storage systems
----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.----
## To start using libstorage
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.## Example
The following example shows a sample use of the hitachi module:
```rust
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(())
}
```## Support and Contributions
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](https://github.com/Comcast/libstorage/blob/master/Contributing.md) guide.
[communication]: https://github.com/Comcast/libstorage/issues/new
[community repository]: https://github.com/Comcast/libstorage
[file an issue]: https://github.com/Comcast/libstorage/issues/new
[issues]: https://github.com/Comcast/libstorage/issues