Skip to main content

ensure

Function ensure 

Source
pub fn ensure(
    profile: &str,
    upstreams: &[String],
) -> Result<Endpoint, RegistryCacheError>
Expand description

Starts the host-side zot if not running, registers the given profile’s ref, regenerates the config, and returns the endpoint drivers should configure as a mirror. Idempotent. Concurrency-safe: holds an exclusive flock for the duration.

upstreams must be non-empty.