Documentation
¶
Overview ¶
Package env specifies environment variables used to configure buildpack behavior.
Index ¶
Constants ¶
View Source
const ( // Runtime is an env var used constrain autodetection in runtime buildpacks or to set runtime name in App Engine buildpacks. // Runtime must be respected by each runtime buildpack. // Example: `nodejs` will cause the nodejs/runtime buildpack to opt-in. Runtime = "GOOGLE_RUNTIME" // RuntimeVersion is an env var used to specify which runtime version to install. // RuntimeVersion must be respected by each runtime buildpack. // Example: `13.7.0` for Node.js, `1.14.1` for Go. RuntimeVersion = "GOOGLE_RUNTIME_VERSION" // DebugMode enables more verbose logging. The value is unused; only the presense of the env var is required to enable. DebugMode = "GOOGLE_DEBUG" // DevMode is an env var used to enable development mode in buildpacks. // DevMode should be respected by all buildpacks that are not product-specific. // Example: `true`, `True`, `1` will enable development mode. DevMode = "GOOGLE_DEVMODE" // Entrypoint is an env var used to override the default entrypoint. // Entrypoint should be respected by at least one buildpack in builders that are not product-specific. // Example: `gunicorn -p :8080 main:app` for Python. Entrypoint = "GOOGLE_ENTRYPOINT" // ClearSource is an env var used to clear source files from the final image. // Buildpacks for Go and Java support clearing the source. ClearSource = "GOOGLE_CLEAR_SOURCE" // Buildable is an env var used to specify the buildable unit to build. // Buildable should be respected by buildpacks that build source. // Example: `./maindir` for Go will build the package rooted at maindir. Buildable = "GOOGLE_BUILDABLE" // BuildArgs is an env var used to append arguments to the build command. // Example: `-Pprod` for Maven apps run "mvn clear package ... -Pprod" command. BuildArgs = "GOOGLE_BUILD_ARGS" // GAEMain is an env var used to specify path or fully qualified package name of the main package in App Engine buildpacks. // Behavior: In Go, the value is cleaned up and passed on to subsequent buildpacks as GOOGLE_BUILDABLE. GAEMain = "GAE_YAML_MAIN" // FunctionTarget is an env var used to specify function name. // FunctionTarget must be respected by all functions-framework buildpacks. // Example: `helloWorld` or any exported function name. FunctionTarget = "GOOGLE_FUNCTION_TARGET" // FunctionTargetLaunch is a launch time version of FunctionTarget. FunctionTargetLaunch = "FUNCTION_TARGET" // FunctionSource is an env var used to specify function source location. // FunctionSource must be respected by all functions-framework buildpacks. // Example: `./path/to/source` will build the function at the specfied path. FunctionSource = "GOOGLE_FUNCTION_SOURCE" // FunctionSourceLaunch is a launch time version of FunctionSource. FunctionSourceLaunch = "FUNCTION_SOURCE" // FunctionSignatureType is an env var used to specify function signature type. // FunctionSignatureType must be respected by all functions-framework buildpacks. // Example: `http` for HTTP-triggered functions or `event` for event-triggered functions. FunctionSignatureType = "GOOGLE_FUNCTION_SIGNATURE_TYPE" // FunctionSignatureTypeLaunch is a launch time version of FunctionSignatureType. FunctionSignatureTypeLaunch = "FUNCTION_SIGNATURE_TYPE" // GoGCFlags is an env var used to pass through compilation flags to the Go compiler. // Example: `-N -l` is used during debugging to disable optimizations and inlining. GoGCFlags = "GOOGLE_GOGCFLAGS" // GoLDFlags is an env var used to pass through linker flags to the Go linker. // Example: `-s -w` is sometimes used to strip and reduce binary size. GoLDFlags = "GOOGLE_GOLDFLAGS" )
Variables ¶
This section is empty.
Functions ¶
func IsDebugMode ¶
IsDebugMode returns true if the buildpack debug mode is enabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.