komodo_client

Crates.iokomodo_client
lib.rskomodo_client
version1.16.10
sourcesrc
created_at2024-09-01 01:22:30.515065
updated_at2024-11-08 08:01:20.233611
descriptionClient for the Komodo build and deployment system
homepagehttps://komo.do
repositoryhttps://github.com/mbecker20/komodo
max_upload_size
id1359285
size524,937
(MoghTech)

documentation

README

Komodo

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:

  • Definitions for the application api and entities.
  • A client to interact with the Komodo Core API.
  • Information on configuring Komodo Core and Periphery.

Client Configuration

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

Client Example

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?:
Commit count: 2764

cargo fmt