1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//! This library provides access to [`GCE metadata service`][`metadata`]. //! //! # Example //! ```rust //! use gcemeta::*; //! //! println!("on_gce = {:?}", on_gce()); //! println!("project_id = {:?}", project_id()); //! ``` //! //! [`metadata`]: https://developers.google.com/compute/docs/metadata mod error; mod metadata; pub use error::{Error, ErrorKind, Result}; pub use metadata::*;