tapis-sk 0.3.1

The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use tapis_sk::TapisSk;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let jwt_token = std::env::var("TAPIS_TOKEN").ok();
    let base_url = std::env::var("TAPIS_BASE_URL")
        .unwrap_or_else(|_| "https://dev.develop.tapis.io/v3".to_string());

    let client = TapisSk::new(&base_url, jwt_token.as_deref())?;
    println!("Initialized TapisSk against {}", client.config().base_path);

    Ok(())
}