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

lrzcc

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

2 stable releases

new 1.1.0 Sep 15, 2024
1.0.0 Aug 16, 2024

#1433 in Web programming

Download history 139/week @ 2024-08-11 26/week @ 2024-08-18 1/week @ 2024-08-25 94/week @ 2024-09-01 33/week @ 2024-09-08

180 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

~6–19MB
~315K SLoC