linuxkit-utils 0.1.0

an utility to compose linuxkit manifests
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::JsValue;
use crate::EnvSubst;

#[derive(Debug, Clone, PartialEq, ::serde::Serialize, ::serde::Deserialize)]
pub struct FileEntry(pub JsValue);

impl EnvSubst for FileEntry {
    fn env_subst(
        &self,
        context: &std::collections::HashMap<String, String>,
    ) -> Result<Self, envsubst::Error> {
        Ok(Self(self.0.env_subst(context)?))
    }
}