MCPcopy Create free account
hub / github.com/bootc-dev/bootc / new_proxy_config

Function new_proxy_config

crates/lib/src/deploy.rs:83–87  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

81/// This allows registries to distinguish "image pulls for bootc client runs"
82/// from other skopeo/containers-image users.
83pub(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
90const BOOTC_DERIVED_KEY: &str = "bootc.derived";

Callers 8

install_containerFunction · 0.85
from_imageMethod · 0.85
run_from_optFunction · 0.85
new_importerFunction · 0.85
prepare_for_pull_unifiedFunction · 0.85
pull_composefs_directFunction · 0.85

Calls

no outgoing calls

Tested by 1