1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! # Rexec Rust SDK
//!
//! Official Rust SDK for [Rexec](https://github.com/PipeOpsHQ/rexec) - Terminal as a Service.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use rexec::{RexecClient, CreateContainerRequest};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), rexec::Error> {
//! let client = RexecClient::new(
//! "https://your-instance.com",
//! "your-api-token"
//! );
//!
//! // Create a container
//! let container = client.containers()
//! .create(CreateContainerRequest {
//! image: "ubuntu:24.04".into(),
//! name: Some("my-sandbox".into()),
//! ..Default::default()
//! })
//! .await?;
//!
//! println!("Created container: {}", container.id);
//!
//! // Connect to terminal
//! let mut term = client.terminal().connect(&container.id).await?;
//! term.write(b"echo hello\n").await?;
//!
//! // Clean up
//! client.containers().delete(&container.id).await?;
//!
//! Ok(())
//! }
//! ```
pub use RexecClient;
pub use ContainerService;
pub use Error;
pub use FileService;
pub use ;
pub use *;