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
52
53
//! # Gaia Client Library
//!
//! A Rust client library for interacting with the Gaia secret management daemon.
//!
//! ## Features
//!
//! - Secure mTLS communication with the Gaia daemon
//! - Read secrets from your application's namespaces
//! - Access common secrets shared across clients
//! - Asynchronous API using Tokio
//!
//! ## Example
//!
//! ```no_run
//! use gaia_client::{GaiaClient, GaiaClientConfig};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let config = GaiaClientConfig::new(
//! "localhost:50051",
//! "/etc/gaia/certs/ca.crt",
//! "/etc/gaia/certs/client.crt",
//! "/etc/gaia/certs/client.key",
//! );
//!
//! let mut client = GaiaClient::connect(config).await?;
//!
//! let secret = client.get_secret("production", "database_url").await?;
//! println!("Secret value: {}", secret.value);
//!
//! Ok(())
//! }
//! ```
// Use pre-generated protobuf code (checked into src/proto.rs)
// This eliminates the need for protoc at build time
pub use ;
pub use GaiaClientConfig;
pub use ;
pub use ;