EnvVar

sealed interface EnvVar

Describes configured guest application environment variables.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class DotEnvVar(val file: String, val name: String, val value: String?) : Record, EnvConfig.EnvVar

Maps an environment variable which originates from a .env file.

Link copied to clipboard
data class HostMappedVar(val mapped: String, val defaultValue: String? = null, val name: String) : Record, EnvConfig.EnvVar

Maps an environment variable which uses a host environment variable (usually, at the same name).

Link copied to clipboard

Maps an inline (explicitly-provided) environment variable.

Link copied to clipboard

Maps an supplied (function-resolved) environment variable.

Properties

Link copied to clipboard
open val isPresent: Boolean

Indicate whether a value can be resolved for this env var.

Link copied to clipboard
abstract val name: String

Name for the environment variable.

Link copied to clipboard

Source type for this environment variable; governs how a value is resolved.

Link copied to clipboard
abstract val value: String?

Value for the environment variable; if evaluated to null, the variable is skipped.