Documentation
¶
Overview ¶
Package execenv contains logic for generating execution environing using a plugin's exec-env callback script if available.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentEnv ¶
CurrentEnv returns the current environment as a map
func Generate ¶
func Generate(plugin plugins.Plugin, callbackEnv map[string]string) (env map[string]string, err error)
Generate runs exec-env callback if available and captures the environment variables it sets. It then parses them and returns them as a map.
func SliceToMap ¶
SliceToMap converts an env map to env slice suitable for syscall.Exec
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.