argoflows 0.1.1

Argoflows lets you seamlessly integrate and manage Argo Workflows directly from your Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use k8s_openapi::api::core;
use serde::{Deserialize, Serialize};

/// `Cache` is the configuration for the type of cache to be used.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Cache {
    #[serde(rename = "configMap")]
    pub config_map: Box<core::v1::ConfigMapKeySelector>,
}

impl Cache {
    pub fn new(config_map: core::v1::ConfigMapKeySelector) -> Self {
        Cache {
            config_map: Box::new(config_map),
        }
    }
}