Skip to main content

register

Function register 

Source
pub fn register(
    cloud_dir: &Path,
    machine: &str,
    fingerprint: &str,
    algorithm: &str,
) -> Result<()>
Expand description

Write (or overwrite) a machine’s fingerprint to the stub local registry.

Path: <cloud_dir>/identities/<machine>.json. Uses a write-tmp + rename so the file is never left in a partial state.