Expand description
Rust gRPC client for SideroLabs Talos
This crate provides a Rust client for the Talos gRPC API with mTLS support.
§Example
use talos_rust_client::TalosConnector;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let ca = std::fs::read("ca.crt")?;
let cert = std::fs::read("client.crt")?;
let key = std::fs::read("client.key")?;
let channel = TalosConnector::new("https://192.168.1.100:50000")
.ca_pem(ca)
.cert_pem(cert)
.key_pem(key)
.connect()
.await?;
Ok(())
}
Re-exports§
pub use connector::TalosConnector;
pub use error::Error;
pub use error::Result;
pub use tonic;
Modules§
- cluster
- common
- connector
- Connection builder for Talos gRPC API with mTLS support
- error
- Error types for the Talos client
- inspect
- machine
- security
- storage
- time
Structs§
- Channel
- A default batteries included
transport
channel. - Cluster
Service Client - The cluster service definition.
- Inspect
Service Client - The inspect service definition.
- Machine
Service Client - The machine service definition.
- Security
Service Client - The security service definition.
- Storage
Service Client - StorageService represents the storage service.
- Time
Service Client - The time service definition.