k8s-maestro 1.0.0

A Kubernetes job orchestrator tool library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub struct ComputeResource(pub String);

impl ComputeResource {
    pub fn cpu(v: impl Into<String>) -> Self {
        Self(v.into())
    }
    pub fn memory(v: impl Into<String>) -> Self {
        Self(v.into())
    }
}

impl AsRef<str> for ComputeResource {
    fn as_ref(&self) -> &str {
        &self.0
    }
}