#cloud #api-bindings #compute #lrz #client #cc #budgeting

lrzcc

Rust client library for the LRZ-specific features of the Openstack-based LRZ Compute Cloud

5 stable releases

new 1.3.0 Oct 9, 2024
1.2.0 Sep 30, 2024
1.1.1 Sep 24, 2024
1.1.0 Sep 15, 2024
1.0.0 Aug 16, 2024

#1740 in Web programming

Download history 157/week @ 2024-08-12 9/week @ 2024-08-19 100/week @ 2024-09-02 165/week @ 2024-09-09 82/week @ 2024-09-16 201/week @ 2024-09-23 221/week @ 2024-09-30

675 downloads per month
Used in lrzcc-cli

MIT license

140KB
4.5K SLoC

lrzcc-lib

API bindings written in Rust for LRZ-specific features of the Openstack-based LRZ Compute Cloud, https://cc.lrz.de, first and foremost the budgeting system.

Usage

To use the library add the following to your Cargo.toml under [dependencies]:

lrzcc = 1

After that you create a Token and Api object to interact with the API:

use lrzcc::{Token, Api};

// let token = Token::from_str("abcdefg...").unwrap();
let token = Token::new(
                auth_url.as_str(),
                username.as_str(),
                password.as_str(),
                project_name.as_str(),
                user_domain_name.as_str(),
                project_domain_id.as_str(),
            ).unwrap();
let api = Api::new("https://cc.lrz.de:1337/api", token, None, None).unwrap();
println!("{:?}", api.user.me());

Dependencies

~13–27MB
~427K SLoC