Skip to main content

Module clouds

Module clouds 

Source

Modulesยง

alicloud ๐Ÿ”’
aws ๐Ÿ”’
azure ๐Ÿ”’
gcp ๐Ÿ”’
hetzner ๐Ÿ”’
ovh ๐Ÿ”’
upcloud ๐Ÿ”’

Constantsยง

IMDS_TIMEOUT ๐Ÿ”’
Upper bound for each HTTP call made by a vendor probe.
PROBES ๐Ÿ”’
Precedence order: AWS โ†’ GCP โ†’ Azure โ†’ Hetzner โ†’ UpCloud โ†’ AliCloud โ†’ OVH. To add a new cloud: implement pub fn probe() -> Option<CloudInfo> in a new submodule, declare it above, and append it here.

Functionsยง

imds_get ๐Ÿ”’
imds_get_headers ๐Ÿ”’
new_imds_agent ๐Ÿ”’
probe_cloud ๐Ÿ”’
Run all vendor probes in parallel (one OS thread per vendor).
spawn_cloud_discovery
Spawn a background thread that probes cloud IMDS endpoints.