google-cloud-metadata
Google Cloud Platform GCE check library.
Installation
[]
= <version>
Usage
use *;
async
Google Cloud Platform GCE check library.
[dependencies]
google-cloud-metadata = <version>
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);
}