Expand description
ColonyOS Rust SDK
This library provides a Rust client for interacting with ColonyOS servers.
§Example
use colonyos::{core, submit, assign, close};
#[tokio::main]
async fn main() {
let prvkey = "your_private_key";
let spec = core::FunctionSpec::new("my_function", "cli", "my_colony");
let process = submit(&spec, prvkey).await.unwrap();
println!("Submitted process: {}", process.processid);
}Re-exports§
pub use rpc::set_server_url;pub use rpc::get_server_url;
Modules§
- core
- Core types for ColonyOS SDK
- crypto
- ColonyOS Crypto implementation Uses k256 for secp256k1 ECDSA and SHA3-256 for hashing
- rpc
Functions§
- add_
attr - add_
blueprint - add_
blueprint_ definition - add_
colony - add_
executor - add_
function - add_log
- approve_
executor - assign
- channel_
append - channel_
read - close
- fail
- get_
blueprint - get_
blueprint_ definition - get_
blueprint_ definitions - get_
blueprints - get_
colonies - get_
colony - get_
executor - get_
executors - get_
functions - get_
functions_ by_ executor - get_
logs - get_
process - get_
processes - get_
processgraph - get_
processgraphs - get_
statistics - reconcile_
blueprint - reject_
executor - remove_
all_ processes - remove_
all_ processgraphs - remove_
blueprint - remove_
blueprint_ definition - remove_
colony - remove_
executor - remove_
function - remove_
process - remove_
processgraph - set_
output - submit
- submit_
workflow - subscribe_
channel - Subscribe to channel messages via WebSocket.
- subscribe_
process - Subscribe to process lifecycle events and wait for the process to reach the specified state.
- update_
blueprint - update_
blueprint_ status