pub struct TemplateInputs {
pub horizond_download_base_url: String,
pub horizon_api_url: String,
pub horizond_binary_hash: Option<String>,
pub monitoring_logs_endpoint: Option<String>,
pub monitoring_metrics_endpoint: Option<String>,
pub monitoring_auth_hash: Option<String>,
pub monitoring_metrics_auth_hash: Option<String>,
}Expand description
Deployment-time values that affect VM instance templates.
These are stamped onto ContainerCluster by stamp_template_inputs() before
each deployment. Storing them in the resource config means resource_eq()
detects changes (e.g., new horizond binary URL, rotated monitoring credentials)
and triggers the normal update flow without any executor changes.
The OTLP auth header is sensitive — only a SHA-256 hash is stored here for
change detection. The actual header value is read from DeploymentConfig at
provisioning time.
Fields§
§horizond_download_base_url: StringBase URL for downloading the horizond binary (without arch suffix).
horizon_api_url: StringHorizon API base URL (e.g., “https://horizon.alien.dev”).
horizond_binary_hash: Option<String>ETag of the horizond binary from the releases server — change-detection signal.
Changes on every cargo zigbuild (nginx ETag = mtime+size), triggering a rolling update.
Absent when the releases server is unreachable; change detection falls back to URL-only.
monitoring_logs_endpoint: Option<String>OTLP logs endpoint URL (non-sensitive, stored directly).
monitoring_metrics_endpoint: Option<String>OTLP metrics endpoint URL (non-sensitive, stored directly). When set, horizond will export its own VM/container orchestration metrics here. The same auth header as logs is reused at boot time (stored in the cloud vault).
monitoring_auth_hash: Option<String>SHA-256 hash of the OTLP logs auth header — for change detection only. The actual header is read from DeploymentConfig at provisioning time.
monitoring_metrics_auth_hash: Option<String>SHA-256 hash of the OTLP metrics auth header — for change detection only. Only set when metrics uses a separate auth header from logs (e.g. Axiom with distinct datasets).
Trait Implementations§
Source§impl Clone for TemplateInputs
impl Clone for TemplateInputs
Source§fn clone(&self) -> TemplateInputs
fn clone(&self) -> TemplateInputs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TemplateInputs
impl Debug for TemplateInputs
Source§impl<'de> Deserialize<'de> for TemplateInputs
impl<'de> Deserialize<'de> for TemplateInputs
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>,
Source§impl PartialEq for TemplateInputs
impl PartialEq for TemplateInputs
Source§impl Serialize for TemplateInputs
impl Serialize for TemplateInputs
impl Eq for TemplateInputs
impl StructuralPartialEq for TemplateInputs
Auto Trait Implementations§
impl Freeze for TemplateInputs
impl RefUnwindSafe for TemplateInputs
impl Send for TemplateInputs
impl Sync for TemplateInputs
impl Unpin for TemplateInputs
impl UnsafeUnpin for TemplateInputs
impl UnwindSafe for TemplateInputs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.