env

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(env []string, expose []string) []string

Filter returns a subset of environment variables configured to be exposed by the expose patterns. It supports glob patterns (e.g., "LC_*") and exact matches. Returns only the environment variables that match the patterns.

func Lookup added in v0.1.3

func Lookup(env []string, key string) (string, bool)

Lookup returns value of an environment variable with a given key. If such variable is not present, it returns false.

func SetVars

func SetVars(env []string, varsToSet []config.EnvVar, envId string) []string

SetVars sets and expands envrionment variables configured by the user in TOML config. If any of these variables is empty, SetVars removes it. The function also sets DROP_ENV variable to contain envId - id of the current Drop environment. This can be changed by setting DROP_ENV in TOML to some other value or to an empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL