38 releases (4 breaking)

new 0.5.6 Jul 11, 2024
0.4.16 Jul 10, 2024
0.2.0 Mar 15, 2024

#21 in #observability

Download history 189/week @ 2024-03-14 10/week @ 2024-03-21 9/week @ 2024-03-28 8/week @ 2024-04-04 197/week @ 2024-04-11 470/week @ 2024-04-18 608/week @ 2024-04-25 612/week @ 2024-05-02 319/week @ 2024-05-09 538/week @ 2024-05-16 747/week @ 2024-05-23 198/week @ 2024-05-30 818/week @ 2024-06-06 99/week @ 2024-06-13 33/week @ 2024-06-20 49/week @ 2024-06-27

999 downloads per month

MIT/Apache

6KB

DownToZero Cloud SDK

Latest Version

A base crate for the DownToZero Cloud SDK

Exposed functionality

The dtz-crate only exposes the dtz-config crate which covers the API client and authentication requirements.

All service specific functionality is exposed through features.

Features

  • containers
  • core
  • identity
  • full (contains all features at once)
  • objectstore
  • observability
  • rss2mail

Examples

Retrieving the current Context.

[dependencies]
tokio = { version = "1", features = ["full] }
dtz = { version = "*", features = ["core"] }
#[tokio::main]
use std::str::FromStr;
use uuid::Uuid;

async fn main() {
    let config = dtz::Configuration {
        api_key: Some("some api key".to_string()),
        ..Default::default()
    };
    let ctx_id = "00000000-0000-0000-0000-000000000000";
    let result = dtz::core::apis::default_api::get_context(&config, ctx_id)
        .await
        .unwrap();
    println!("result: {result:?}");
}

Dependencies

~4–19MB
~263K SLoC