Skip to content

Commit a4a9c34

Browse files
committed
feat: add project control plane client
1 parent 17b52c0 commit a4a9c34

File tree

6 files changed

+411
-6
lines changed

6 files changed

+411
-6
lines changed

Cargo.lock

Lines changed: 232 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ reqwest.workspace = true
3030
serde.workspace = true
3131
serde_json.workspace = true
3232
serde_yml.workspace = true
33+
secrecy = "0.10.3"
3334
snafu.workspace = true
3435
tokio-util.workspace = true
3536
tokio.workspace = true
@@ -42,6 +43,8 @@ iroh-blobs = "0.97.0"
4243
httparse = "1.10.1"
4344
ttl_cache = "0.5.1"
4445
askama = "0.15.1"
46+
k8s-openapi = { version = "0.27.0", features = ["latest"] }
47+
kube = { version = "3.0.0", default-features = false, features = ["client", "rustls-tls"] }
4548

4649
[dev-dependencies]
4750
http-body-util = "0.1.3"

lib/src/datum_cloud.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ impl DatumCloudClient {
3838
self.auth.login_state()
3939
}
4040

41+
pub fn api_url(&self) -> &'static str {
42+
self.env.api_url()
43+
}
44+
4145
pub fn auth(&self) -> &AuthClient {
4246
&self.auth
4347
}

lib/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ mod auth;
22
pub mod config;
33
pub mod datum_cloud;
44
pub mod gateway;
5+
pub mod project_control_plane;
56
mod node;
67
mod repo;
78
mod state;
89

910
pub use node::*;
11+
pub use project_control_plane::{ProjectControlPlaneClient, ProjectControlPlaneManager};
1012
pub use repo::Repo;
1113
pub use state::*;
1214
pub use config::{Config, DiscoveryMode, GatewayConfig, GatewayMode};

0 commit comments

Comments
 (0)