INNER CODE UNIT · Rust
build_server_state
Trow-Registry/trow · src/lib.rs:139
pub async fn build_server_state(self) -> Result<Arc<TrowServerState>, TrowConfigError> {
println!("Starting Trow {}", env!("CARGO_PKG_VERSION"),);
println!("Hostname of this registry: {:?}", self.service_name);
if let Some(cfg) = self.config_file.image_validation.as_ref() {
println!("Image validation webhook configured:");
println!(" Default action: {}", cfg.default);
println!(" Allowed prefixes: {:?}", cfg.allow);
println!(" Denied prefixes: {:?}", cfg.deny);
} else {
println!("Image validation webhook not configured");
}
if self.cors.is_some() {
println!("Cross-Origin Resource Sharing(CORS) requests are allowed\n");
}
if self.dry_run {
println!("Dry run, exiting.");