Documentation
¶
Overview ¶
Package env provides utilities for loading and managing environment variables from containers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Variables ¶
Variables represents a collection of environment variables as a map of string keys to string values.
func Load ¶
Load loads environment variables from a file inside a Docker container.
It reads the file at the specified filepath inside the container, parses its contents, and returns a map of environment variables.
func (Variables) Get ¶
Get retrieves the value of the environment variable with the given key.
It returns the value and a boolean indicating whether the variable was found.
Click to show internal directories.
Click to hide internal directories.