google-cloud-metadata

Crates.iogoogle-cloud-metadata
lib.rsgoogle-cloud-metadata
version0.5.0
sourcesrc
created_at2021-11-26 05:24:53.990162
updated_at2024-05-07 13:26:14.48448
descriptionGoogle Cloud Platform rust client.
homepage
repositoryhttps://github.com/yoshidan/google-cloud-rust/tree/main/foundation/metadata
max_upload_size
id487906
size6,250
Naohiro Yoshida (yoshidan)

documentation

README

google-cloud-metadata

Google Cloud Platform GCE check library.

crates.io

Installation

[dependencies]
google-cloud-metadata = <version>

Usage

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);
}
Commit count: 0

cargo fmt