pub struct Site {
pub backend: BackendTechnology,
pub socks5_proxy: Option<String>,
pub shasta_base_url: String,
pub k8s: Option<K8sDetails>,
pub root_ca_cert_file: String,
}Expand description
Connection details for a single ALPS site (CSM or OCHAMI instance).
The Vault URL used by handlers requiring vault (sat-file, session,
console, logs) is derived at startup from
[sites.X.k8s.authentication.vault] base_url. The vault secret path
is derived from a hard-coded prefix and the site name. Neither is
configured here.
Fields§
§backend: BackendTechnologyWhich backend implementation this site uses (csm or ochami).
socks5_proxy: Option<String>Optional per-site SOCKS5 proxy URL used by every outbound HTTP
request to this site’s backend. None means direct connection.
shasta_base_url: StringBase URL of the backend API (e.g. https://api.alps.cscs.ch).
k8s: Option<K8sDetails>Optional Kubernetes connection details, required by handlers that stream CFS session logs or attach to consoles.
root_ca_cert_file: StringPath (absolute or relative to the config dir) of the backend’s
root CA certificate, used to verify TLS to shasta_base_url.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Site
impl<'de> Deserialize<'de> for Site
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>,
Auto Trait Implementations§
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnwindSafe for Site
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more