EnvConfig

Defines configuration options for built-in managed guest access to the host environment.

This container is meant to be used by the Environment plugin.

Types

Link copied to clipboard

Configuration for managed application environment.

Link copied to clipboard
sealed interface EnvVar

Describes configured guest application environment variables.

Link copied to clipboard

Describes different sources for an environment variable.

Functions

Link copied to clipboard

Configure application environment.

fun environment(name: String, callback: () -> String?)

Inject an explicit application environment variable resolved from a callback.

fun environment(name: String, value: String?)

Inject an explicit application environment variable.

Link copied to clipboard
fun exposeHostEnv(hostVariable: String, defaultValue: String? = null)

Expose or map a hostVariable to the provided alias (defaults to the same name).

Link copied to clipboard
fun fromDotenv(file: String, name: String, value: String?)

Inject an environment variable at name that was loaded from a .env file.

Link copied to clipboard
fun mapToHostEnv(hostVariable: String, alias: String = hostVariable, defaultValue: String? = null)

Expose or map a hostVariable to the provided alias (defaults to the same name).