lrzcc

Crates.iolrzcc
lib.rslrzcc
version1.3.0
sourcesrc
created_at2024-08-16 13:12:15.333748
updated_at2024-10-09 20:19:29.934351
descriptionRust client library for the LRZ-specific features of the Openstack-based LRZ Compute Cloud.
homepagehttps://github.com/LRZ-BADW/lrzcc
repositoryhttps://github.com/LRZ-BADW/lrzcc
max_upload_size
id1340343
size103,640
Sandro-Alessio Gierens (gierens)

documentation

README

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());
Commit count: 989

cargo fmt