envvars

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToContainers

func AddToContainers(ctr *dagger.Container, envVars []types.DaggerEnvVars) *dagger.Container

AddToContainers adds environment variables to a container.

func ToDaggerEnvVarsFromMap

func ToDaggerEnvVarsFromMap(envVarsMap map[string]string) ([]types.DaggerEnvVars, error)

ToDaggerEnvVarsFromMap converts a map of environment variables into a slice of DaggerEnvVars. It ensures all entries are valid and handles empty maps gracefully.

func ToDaggerEnvVarsFromSlice

func ToDaggerEnvVarsFromSlice(envVarsSlice []string) ([]types.DaggerEnvVars, error)

ToDaggerEnvVarsFromSlice converts a slice of key=value strings into a slice of DaggerEnvVars. It validates each entry and skips invalid entries.

func ToDaggerEnvVarsFromStr

func ToDaggerEnvVarsFromStr(envVars string) (map[string]string, error)

ToDaggerEnvVarsFromStr converts a comma-separated string of key=value pairs into a map. It ensures all entries are valid and handles empty strings gracefully. This function converts a string of key=value pairs into a map of strings. Example input: "key1=value1,key2=value2,key3=value3"

Types

This section is empty.

Jump to

Keyboard shortcuts

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