pub struct HorizonConfig {
pub url: String,
pub horizond_download_base_url: String,
pub horizond_binary_hash: Option<String>,
pub clusters: HashMap<String, HorizonClusterConfig>,
}Expand description
Horizon configuration for container orchestration.
Contains all the information needed for Alien to interact with Horizon clusters during deployment. Each ContainerCluster resource gets its own entry in the clusters map.
Fields§
§url: StringHorizon API base URL (e.g., “https://horizon.alien.dev”)
horizond_download_base_url: StringBase URL for downloading the horizond binary, without arch suffix.
Each cloud controller appends /linux-{arch}/horizond to construct the
final download URL used in VM startup scripts.
Production example: “https://releases.alien.dev/horizond/v0.3.0” Dev example (ngrok): “https://abc123.ngrok.io”
horizond_binary_hash: Option<String>ETag of the horizond binary fetched from the releases server — used as a
change-detection signal only. nginx auto-generates ETags from mtime+size,
so every cargo zigbuild changes this value and triggers a rolling update.
Optional: when absent (releases server unreachable), change detection falls back to URL-only (sufficient for versioned production releases).
clusters: HashMap<String, HorizonClusterConfig>Cluster configurations (one per ContainerCluster resource) Key: ContainerCluster resource ID from stack Value: Cluster ID and management token for that cluster
Trait Implementations§
Source§impl Clone for HorizonConfig
impl Clone for HorizonConfig
Source§fn clone(&self) -> HorizonConfig
fn clone(&self) -> HorizonConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HorizonConfig
impl Debug for HorizonConfig
Source§impl<'de> Deserialize<'de> for HorizonConfig
impl<'de> Deserialize<'de> for HorizonConfig
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 HorizonConfig
impl PartialEq for HorizonConfig
Source§impl Serialize for HorizonConfig
impl Serialize for HorizonConfig
impl Eq for HorizonConfig
impl StructuralPartialEq for HorizonConfig
Auto Trait Implementations§
impl Freeze for HorizonConfig
impl RefUnwindSafe for HorizonConfig
impl Send for HorizonConfig
impl Sync for HorizonConfig
impl Unpin for HorizonConfig
impl UnsafeUnpin for HorizonConfig
impl UnwindSafe for HorizonConfig
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.