k8s-maestro 0.1.0

A Kubernetes job orchestrator tool library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use k8s_openapi::api::core::v1::{Container, Volume};

use super::volumes::VolumeMountLike;

pub trait ContainerLike {
    fn into_container(&self) -> anyhow::Result<Container>;

    fn get_volumes(&self) -> anyhow::Result<Vec<Volume>>;

    fn add_volume_mount_like(self, volume_mount_like: Box<dyn VolumeMountLike>) -> anyhow::Result<Self> where Self: Sized;

}