MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / build_remote_config

Method build_remote_config

atomic-cli/src/commands/push/command.rs:402–412  ·  view source on GitHub ↗

Build the HTTP remote configuration. `identity_hint` — an explicit identity name to use (from `--identity`). When `None`, identity is inferred from the remote URL and the global config's server bindings.

(
        &self,
        remote_url: &str,
        identity_hint: Option<&str>,
    )

Source from the content-addressed store, hash-verified

400 /// When `None`, identity is inferred from the remote URL and the global
401 /// config's server bindings.
402 async fn build_remote_config(
403 &self,
404 remote_url: &str,
405 identity_hint: Option<&str>,
406 ) -> HttpRemoteConfig {
407 let config = HttpRemoteConfig::new()
408 .with_timeout(Duration::from_secs(self.timeout))
409 .danger_accept_invalid_certs(self.insecure);
410
411 atomic_remote::auth::attach_identity(config, remote_url, identity_hint).await
412 }
413
414 /// Display the dry run preview: per-view manifest sync plans.
415 fn display_dry_run(

Calls 3

attach_identityFunction · 0.85
with_timeoutMethod · 0.45