-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rust client improvements and docs * sync rust client * version 1.16.4 * UI support YAML / TOML utils, typed Deno namespace * add ResourcesToml to typeshare * add YAML and TOML convenience * make the types available globally * preload container with @std/yaml and @std/toml, clean up genned files * add deno setup to alpine dockerfile
- Loading branch information
Showing
22 changed files
with
8,201 additions
and
130 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ members = [ | |
] | ||
|
||
[workspace.package] | ||
version = "1.16.3" | ||
version = "1.16.4" | ||
edition = "2021" | ||
authors = ["mbecker20 <[email protected]>"] | ||
license = "GPL-3.0-or-later" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,35 @@ | ||
# Komodo | ||
*A system to build and deploy software across many servers* | ||
|
||
Docs: [https://docs.rs/komodo_client/latest/komodo_client](https://docs.rs/komodo_client/latest/komodo_client) | ||
Full Docs: [https://docs.rs/komodo_client/latest/komodo_client](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](https://docs.rs/komodo_client/latest/komodo_client/api/index.html) | ||
and [entities](https://docs.rs/komodo_client/latest/komodo_client/entities/index.html). | ||
- A [client](https://docs.rs/komodo_client/latest/komodo_client/struct.KomodoClient.html) | ||
to interact with the Komodo Core API. | ||
- Information on configuring Komodo | ||
[Core](https://docs.rs/komodo_client/latest/komodo_client/entities/config/core/index.html) and | ||
[Periphery](https://docs.rs/komodo_client/latest/komodo_client/entities/config/periphery/index.html). | ||
|
||
## 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 | ||
```rust | ||
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?: | ||
``` |
Oops, something went wrong.