Documentation
¶
Overview ¶
Package gcputil exposes helpers for interacting with Google Cloud.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectID ¶
ProjectID attempts to get the project ID, starting with the fastest resolution ($PROJECT_ID, $GOOGLE_PROJECT, $GOOGLE_CLOUD_PROJECT) and then evetually querying the metadata server. If it fails to find a project ID, it logs an error.
The results are not cached and could result in outbound HTTP calls. As such, callers should cache the response since it is unlikely to change.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.