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

lrzcc

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

8 stable releases

1.6.0 Dec 29, 2024
1.5.0 Dec 11, 2024
1.4.0 Nov 22, 2024
1.3.0 Oct 9, 2024
1.0.0 Aug 16, 2024

#1658 in Web programming

Download history 143/week @ 2024-09-18 262/week @ 2024-09-25 51/week @ 2024-10-02 195/week @ 2024-10-09 16/week @ 2024-10-16 1/week @ 2024-10-30 2/week @ 2024-11-06 1/week @ 2024-11-13 142/week @ 2024-11-20 9/week @ 2024-11-27 2/week @ 2024-12-04 145/week @ 2024-12-11 3/week @ 2024-12-18 115/week @ 2024-12-25 13/week @ 2025-01-01

278 downloads per month
Used in lrzcc-cli

MIT license

145KB
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

~18–33MB
~551K SLoC