Dagger.EnvFile (dagger v0.19.4)
View SourceA collection of environment variables.
Summary
Functions
Return as a file
Check if a variable exists
Lookup a variable (last occurrence wins) and return its value, or an empty string
A unique identifier for this EnvFile.
Filters variables by prefix and removes the pref from keys. Variables without the prefix are excluded. For example, with the prefix "MYAPP" and variables: MY_APP_TOKEN=topsecret MY_APP_NAME=hello FOO=bar the resulting environment will contain: TOKEN=topsecret NAME=hello
Return all variables
Add a variable
Remove all occurrences of the named variable
Types
Functions
@spec as_file(t()) :: Dagger.File.t()
Return as a file
Check if a variable exists
Lookup a variable (last occurrence wins) and return its value, or an empty string
@spec id(t()) :: {:ok, Dagger.EnvFileID.t()} | {:error, term()}
A unique identifier for this EnvFile.
Filters variables by prefix and removes the pref from keys. Variables without the prefix are excluded. For example, with the prefix "MYAPP" and variables: MY_APP_TOKEN=topsecret MY_APP_NAME=hello FOO=bar the resulting environment will contain: TOKEN=topsecret NAME=hello
@spec variables(t(), [{:raw, boolean() | nil}]) :: {:ok, [Dagger.EnvVariable.t()]} | {:error, term()}
Return all variables
Add a variable
Remove all occurrences of the named variable