Skip to main content

auth_for

Function auth_for 

Source
pub fn auth_for(registry: &str) -> RegistryAuth
Expand description

Pick the registry-auth strategy for a host.

Google Artifact Registry (*.pkg.dev) and Container Registry (gcr.io / *.gcr.io) require a GCP OAuth token; every other host (notably public GHCR) uses the anonymous pull-token flow.