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 std::fmt::Debug;

use k8s_openapi::api::core::v1::VolumeMount;

use super::VolumeLike;

pub trait VolumeMountLike: Debug {
    fn into_volume_mount(&self) -> anyhow::Result<VolumeMount>;
    fn mount_path(&self) -> anyhow::Result<String>;
    fn volume_name(&self) -> anyhow::Result<String>;
    fn volume_like(&self) -> anyhow::Result<Box<dyn VolumeLike>>;
}