//! Simple authentication wrapper using oci-distribution's credential helper use anyhow::Result; use oci_distribution::credential_helper::resolve_docker_auth; use oci_distribution::secrets::RegistryAuth; /// Resolve authentication for a given resource using Docker config and credential helpers pub fn resolve_auth(resource: &str) -> Result { resolve_docker_auth(resource) .map_err(|e| anyhow::anyhow!("Failed to resolve auth: {}", e)) }