Documentation ¶
Overview ¶
Package cloudruntime provides primitives for loading data from the cloud runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configuration ¶
Configuration returns the service configuration of the current runtime.
func ServiceAccount ¶
ServiceAccount returns the default service account of the current runtime.
func ServiceVersion ¶
ServiceVersion returns the service version of the current runtime. The service version is taken from, in order of precedence: - the "SERVICE_VERSION" environment variable - the go.einride.tech/cloudrunner/cloudruntime.serviceVersion variable (must be set at build-time) - the "K_REVISION" environment variable - no version
func ServiceVersionFromLinkerFlags ¶
func ServiceVersionFromLinkerFlags() string
ServiceVersionFromLinkerFlags returns the exact value of the variable:
go.einride.tech/cloudrunner/cloudruntime.serviceVersion
This variable can be set during build-time to provide a default value for the service version.
Example:
go build -ldflags="-X 'go.einride.tech/cloudrunner/cloudruntime.serviceVersion=v1.0.0'"
Types ¶
This section is empty.