Crates.io | komodo_client |
lib.rs | komodo_client |
version | 1.16.12 |
source | src |
created_at | 2024-09-01 01:22:30.515065 |
updated_at | 2024-12-02 07:35:20.605548 |
description | Client for the Komodo build and deployment system |
homepage | https://komo.do |
repository | https://github.com/mbecker20/komodo |
max_upload_size | |
id | 1359285 |
size | 525,337 |
A system to build and deploy software across many servers
Full Docs: https://docs.rs/komodo_client/latest/komodo_client.
This is a client library for the Komodo Core API. It contains:
The client includes a convenenience method to parse the Komodo API url and credentials from the environment:
KOMODO_ADDRESS
KOMODO_API_KEY
KOMODO_API_SECRET
dotenvy::dotenv().ok();
let client = KomodoClient::new_from_env()?;
// Get all the deployments
let deployments = client.read(ListDeployments::default()).await?;
println!("{deployments:#?}");
let update = client.execute(RunBuild { build: "test-build".to_string() }).await?: