pub struct AppTemplate {Show 16 fields
pub name: String,
pub image: String,
pub env: BTreeMap<String, String>,
pub port: Option<u16>,
pub domains: Vec<Map<String, Value>>,
pub volumes: Vec<String>,
pub ports: Vec<String>,
pub replicas: Option<u32>,
pub command: Option<Value>,
pub args: Option<Value>,
pub healthcheck: Option<Value>,
pub resources: Option<Resources>,
pub files: Vec<FileTemplate>,
pub user: Option<String>,
pub working_dir: Option<String>,
pub depends_on: Vec<String>,
}Expand description
One app of a template: the fields of an AppSpec with an image
source, as strings that may use ${var} and ${host:KEY}.
Fields§
§name: StringThe key: [a-z0-9-]; the app is <instance>-<key>.
image: StringAn isb image reference (docker:louislam/uptime-kuma:1).
env: BTreeMap<String, String>§port: Option<u16>§domains: Vec<Map<String, Value>>{host, path?, port?, https?, strip_prefix?, ...} as the ingress
takes them.
volumes: Vec<String>Named volumes, NAME:/path[:ro].
ports: Vec<String>Published host ports (compose syntax).
replicas: Option<u32>§command: Option<Value>The whole command line (replaces the image’s entrypoint too, as
isb’s command does): argv, or a line split like a shell would.
args: Option<Value>Arguments after the image’s own entrypoint (docker’s command):
the entrypoint is read from the image when the template is deployed.
healthcheck: Option<Value>§resources: Option<Resources>§files: Vec<FileTemplate>§user: Option<String>§working_dir: Option<String>§depends_on: Vec<String>Apps deployed (and converged) before this one.
Trait Implementations§
Source§impl Clone for AppTemplate
impl Clone for AppTemplate
Source§impl Debug for AppTemplate
impl Debug for AppTemplate
Source§impl<'de> Deserialize<'de> for AppTemplate
impl<'de> Deserialize<'de> for AppTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AppTemplate
impl PartialEq for AppTemplate
Source§impl Serialize for AppTemplate
impl Serialize for AppTemplate
impl StructuralPartialEq for AppTemplate
Auto Trait Implementations§
impl Freeze for AppTemplate
impl RefUnwindSafe for AppTemplate
impl Send for AppTemplate
impl Sync for AppTemplate
impl Unpin for AppTemplate
impl UnsafeUnpin for AppTemplate
impl UnwindSafe for AppTemplate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more