Struct garage_util::config::AdminConfig
source · pub struct AdminConfig {
pub api_bind_addr: Option<SocketAddr>,
pub metrics_token: Option<String>,
pub metrics_token_file: Option<String>,
pub admin_token: Option<String>,
pub admin_token_file: Option<String>,
pub trace_sink: Option<String>,
}
Expand description
Configuration for the admin and monitoring HTTP API
Fields§
§api_bind_addr: Option<SocketAddr>
Address and port to bind for admin API serving
metrics_token: Option<String>
Bearer token to use to scrape metrics
metrics_token_file: Option<String>
File to read metrics token from
admin_token: Option<String>
Bearer token to use to access Admin API endpoints
admin_token_file: Option<String>
File to read admin token from
trace_sink: Option<String>
OTLP server to where to export traces
Trait Implementations§
source§impl Clone for AdminConfig
impl Clone for AdminConfig
source§fn clone(&self) -> AdminConfig
fn clone(&self) -> AdminConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AdminConfig
impl Debug for AdminConfig
source§impl Default for AdminConfig
impl Default for AdminConfig
source§fn default() -> AdminConfig
fn default() -> AdminConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AdminConfig
impl<'de> Deserialize<'de> for AdminConfig
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