google-cloud-metadata
Google Cloud Platform GCE check library.
Installation
[dependencies]
google-cloud-metadata = 0.1.1
Usage
use *;
async
Google Cloud Platform GCE check library.
[dependencies]
google-cloud-metadata = 0.1.1
use google_cloud_metadata::*;
#[tokio::test]
async fn test_on_gce() {
// true: server is running on the GCP such as GCE and GKE.
let result = on_gce().await;
assert_eq!(true, result);
}