substitute

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnv

func LoadEnv(file []byte) error

LoadEnv reads yaml data and sets environment variable named by the key. It returns an error, if any.

func LoadEnvFromFiles added in v1.15.0

func LoadEnvFromFiles(files []string) error

LoadEnvFromFiles read yaml data from list of filepaths and sets environment variable named by the key. It will try to decrypt with `sops` if the file is encrypted and skips if file doesn't exist. It returns an error, if any.

func SubstituteEnvFromByte added in v1.5.1

func SubstituteEnvFromByte(file []byte) ([]byte, error)

SubstituteEnvFromByte reads yaml bytes and do `envsubst` on them. The substituted bytes will be returned. It returns an error, if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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