Create an ImageProxyConfig with bootc's user agent prefix set. This allows registries to distinguish "image pulls for bootc client runs" from other skopeo/containers-image users.
()
| 81 | /// This allows registries to distinguish "image pulls for bootc client runs" |
| 82 | /// from other skopeo/containers-image users. |
| 83 | pub(crate) fn new_proxy_config() -> ostree_ext::containers_image_proxy::ImageProxyConfig { |
| 84 | let mut c = ostree_ext::containers_image_proxy::ImageProxyConfig::default(); |
| 85 | c.user_agent_prefix = Some(format!("bootc/{}", env!("CARGO_PKG_VERSION"))); |
| 86 | c |
| 87 | } |
| 88 | |
| 89 | /// Set on an ostree commit if this is a derived commit |
| 90 | const BOOTC_DERIVED_KEY: &str = "bootc.derived"; |
no outgoing calls