Expand description
Runtara Management SDK
High-level SDK for managing Runtara Environment instances and images.
This crate provides an ergonomic client for interacting with runtara-environment’s API over QUIC. It is the single entry point for all management operations.
§Architecture
The Management SDK talks ONLY to runtara-environment:
- Image management (register, list, delete)
- Instance lifecycle (start, stop, resume, status)
- Signals (pause, cancel - proxied to runtara-core by Environment)
§Example
use runtara_management_sdk::{ManagementSdk, StartInstanceOptions};
// Create SDK for local development
let sdk = ManagementSdk::localhost()?;
// Connect to runtara-environment
sdk.connect().await?;
// Check health
let health = sdk.health_check().await?;
println!("Server version: {}", health.version);
// Start an instance
let options = StartInstanceOptions::new("my-image-id", "tenant-1")
.with_input(serde_json::json!({"key": "value"}));
let result = sdk.start_instance(options).await?;
println!("Started instance: {}", result.instance_id);
// Get instance status
let status = sdk.get_instance_status(&result.instance_id).await?;
println!("Status: {:?}", status.status);Structs§
- Agent
Info - Information about an agent.
- Capability
Field - Information about a capability input field.
- Capability
Info - Information about a capability.
- Checkpoint
- Full checkpoint with data.
- Checkpoint
Summary - Summary of a checkpoint (for list results).
- Event
Summary - Summary of an event (for list results).
- GetTenant
Metrics Options - Options for getting tenant metrics.
- Health
Status - Health status of runtara-core.
- Image
Summary - Summary of an image (used in list results).
- Instance
Info - Instance status response with full details.
- Instance
Summary - Summary of an instance (used in list results).
- List
Checkpoints Options - Options for listing checkpoints.
- List
Checkpoints Result - Result of listing checkpoints.
- List
Events Options - Options for listing events.
- List
Events Result - Result of listing events.
- List
Images Options - Options for listing images.
- List
Images Result - Result of listing images.
- List
Instances Options - Options for listing instances.
- List
Instances Result - Result of listing instances.
- Management
Sdk - High-level SDK for managing runtara-environment instances and images.
- Metrics
Bucket - A single time bucket of aggregated metrics.
- Register
Image Options - Options for registering an image.
- Register
Image Result - Result of registering an image.
- Register
Image Stream Options - Options for streaming image registration.
- SdkConfig
- Configuration for the ManagementSdk.
- Start
Instance Options - Options for starting an instance.
- Start
Instance Result - Result of starting an instance.
- Stop
Instance Options - Options for stopping an instance.
- Tenant
Metrics Result - Result of tenant metrics aggregation.
- Test
Capability Options - Options for testing a capability.
- Test
Capability Result - Result of testing a capability.
Enums§
- Instance
Status - Instance status.
- List
Instances Order - Sort order for listing instances.
- Metrics
Granularity - Granularity for metrics aggregation buckets.
- Runner
Type - Runner type for images.
- SdkError
- Errors that can occur when using the management SDK.
- Signal
Type - Signal type for controlling instances.
Type Aliases§
- Result
- Result type using SdkError.