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>,
)
| 408 | /// When `None`, identity is inferred from the remote URL and the global |
| 409 | /// config's server bindings. |
| 410 | async fn build_remote_config( |
| 411 | &self, |
| 412 | remote_url: &str, |
| 413 | identity_hint: Option<&str>, |
| 414 | ) -> HttpRemoteConfig { |
| 415 | let config = HttpRemoteConfig::new() |
| 416 | .with_timeout(Duration::from_secs(self.timeout)) |
| 417 | .danger_accept_invalid_certs(self.insecure); |
| 418 | |
| 419 | atomic_remote::auth::attach_identity(config, remote_url, identity_hint).await |
| 420 | } |
| 421 | |
| 422 | /// Display the dry run preview. |
| 423 | /// |