helm_wrapper_rs/
lib.rs

1use serde::Deserialize;
2
3#[cfg(feature = "nonblocking")]
4pub mod nonblocking;
5
6#[cfg(feature = "blocking")]
7pub mod blocking;
8
9pub mod error;
10
11#[cfg(feature = "blocking-mock")]
12pub mod blocking_mock;
13
14#[cfg(feature = "nonblocking-mock")]
15pub mod nonblocking_mock;
16
17#[cfg(test)]
18pub mod tests;
19
20#[derive(Deserialize, Debug, Clone)]
21pub struct HelmListItem {
22    pub name: String,
23    pub namespace: String,
24    pub revision: String,
25    pub updated: String,
26    pub status: HelmDeployStatus,
27    pub chart: String,
28    pub app_version: String,
29}
30
31#[derive(Deserialize, Debug, Clone)]
32pub struct HelmUpgradeResponse {
33    pub info: HelmUpgradeResponseInfo,
34}
35
36#[derive(Deserialize, Debug, Clone)]
37pub struct HelmUpgradeResponseInfo {
38    pub status: HelmDeployStatus,
39}
40
41#[derive(PartialEq, Deserialize, Debug, Clone)]
42pub enum HelmDeployStatus {
43    #[serde(rename = "deployed")]
44    Deployed,
45    #[serde(rename = "pending-install")]
46    PendingInstall,
47    #[serde(rename = "pending-upgrade")]
48    PendingUpgrade,
49    #[serde(rename = "failed")]
50    Failed,
51}