2026-06-06 18:28:03 +00:00
|
|
|
use std::sync::Arc;
|
|
|
|
|
|
2026-06-06 16:41:23 +00:00
|
|
|
pub struct ClusterClient {
|
|
|
|
|
pub id: String,
|
|
|
|
|
pub name: String,
|
|
|
|
|
pub context: String,
|
|
|
|
|
pub server_url: String,
|
2026-06-06 18:28:03 +00:00
|
|
|
pub kubeconfig_content: Arc<String>,
|
2026-06-06 16:41:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl ClusterClient {
|
2026-06-06 18:28:03 +00:00
|
|
|
pub fn new(id: String, name: String, context: String, server_url: String, kubeconfig_content: Arc<String>) -> Self {
|
2026-06-06 16:41:23 +00:00
|
|
|
Self {
|
|
|
|
|
id,
|
|
|
|
|
name,
|
|
|
|
|
context,
|
|
|
|
|
server_url,
|
2026-06-06 18:28:03 +00:00
|
|
|
kubeconfig_content,
|
2026-06-06 16:41:23 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|