Documentation ¶
Overview ¶
cloudrun is Cloud Run 固有のmetadataを扱う https://cloud.google.com/run/docs/reference/container-contract#env-vars
Index ¶
Constants ¶
View Source
const ConfigurationKey = "K_CONFIGURATION"
ConfigurationKey is Cloud Run Configuration Env Key
View Source
const RevisionKey = "K_REVISION"
RevisionKey is Cloud Run Revision Env Key
View Source
const ServiceKey = "K_SERVICE"
ServiceKey is Cloud Run Service Env Key
Variables ¶
This section is empty.
Functions ¶
func Configuration ¶
Service is return Cloud Run service revision id The name of the Cloud Run configuration that created the revision. Example gcpboxtest
func OnCloudRunReal ¶
func OnCloudRunReal() bool
OnCloudRunReal is AppがCloudRunで動いてるかどうか 環境変数およびOnGCP()も見てるので、本当にCloud Runで動いてるか
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.