package
0.75.0
Repository: https://github.com/einride/cloudrunner-go.git
Documentation: pkg.go.dev

# Functions

Configuration returns the service configuration of the current runtime.
Execution returns the name of the Cloud Run job execution being run.
GetConfig gets the runtime Config from the current context.
Job returns the name of the Cloud Run job being run.
Port returns the service port of the current runtime.
ProjectID returns the Google Cloud Project ID of the current runtime.
ResolveProjectID resolves the Google Cloud Project ID of the current runtime.
ResolveServiceAccount resolves the default service account of the current runtime.
Revision returns the service revision of the current runtime.
Service returns the service name of the current runtime.
ServiceAccount returns the default service account of the current runtime.
ServiceVersion returns the service version of the current runtime.
ServiceVersionFromBuildInfo returns the VCS revision from the embedded build info.
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.
TaskAttempt returns the number of time this Cloud Run job task tas been retried.
TaskCount returns the number of tasks in the current Cloud Run job.
TaskIndex returns the index of the Cloud Run job task being run.
WithConfig adds the provided runtime Config to the current context.

# Structs

Config is the runtime config for the service.