host-identity 1.1.1

Stable, collision-resistant host identity resolution across platforms, container runtimes, cloud providers, and Kubernetes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Non-FreeBSD stubs. Return `Ok(None)` so the types can appear portably.

use crate::source::SourceKind;
use crate::sources::stub_macros::{path_stub, unit_stub};

path_stub!(
    /// FreeBSD `/etc/hostid` source (no-op on non-FreeBSD targets).
    FreeBsdHostIdFile,
    SourceKind::FreeBsdHostId,
    "/etc/hostid"
);

unit_stub!(
    /// FreeBSD `kenv smbios.system.uuid` source (no-op on non-FreeBSD targets).
    KenvSmbios,
    SourceKind::KenvSmbios
);