Coder Social home page Coder Social logo

libstorage's Introduction

libstorage

Build Status crates.io Documentation 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:

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 guide.

libstorage's People

Contributors

cholcombe973 avatar comcastrp avatar kristakhare avatar mzhong1 avatar rpowerscc avatar sdandam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

libstorage's Issues

Rust 1.33 warnings

Just making a note of this so i don't forget.

   --> src/error.rs:116:48
    |
116 |             StorageError::CsvError(ref e) => e.cause(),
    |                                                ^^^^^

warning: use of deprecated item 'core::str::<impl str>::trim_left': superseded by `trim_start`
  --> src/telegraf.rs:98:68
   |
98 |                 let counter_value = line[end_index.unwrap() + 1..].trim_left();
   |                                                                    ^^^^^^^^^

warning: use of deprecated item 'core::str::<impl str>::trim_left': superseded by `trim_start`
  --> src/telegraf.rs:98:68
   |
98 |                 let counter_value = line[end_index.unwrap() + 1..].trim_left();
   |                                                                    ^^^^^^^^^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.