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

Method build_remote_config

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

Build the HTTP remote configuration. `identity_hint` — explicit identity name to use (from `--identity` or `RemoteEntry.identity`). When `None`, falls back to URL-based inference.

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

Source from the content-addressed store, hash-verified

298 /// `identity_hint` — explicit identity name to use (from `--identity` or
299 /// `RemoteEntry.identity`). When `None`, falls back to URL-based inference.
300 async fn build_remote_config(
301 &self,
302 remote_url: &str,
303 identity_hint: Option<&str>,
304 ) -> HttpRemoteConfig {
305 let config = HttpRemoteConfig::new()
306 .with_timeout(Duration::from_secs(self.timeout))
307 .danger_accept_invalid_certs(self.insecure);
308
309 crate::commands::auth::attach_identity(config, remote_url, identity_hint).await
310 }
311
312 /// Display the dry run preview: per-view manifest sync plans.
313 fn display_dry_run(

Calls 3

attach_identityFunction · 0.85
with_timeoutMethod · 0.45