envsubst

package
v0.0.0-...-5d654d2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2017 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

envsubst provides substitution and expansion of environment variable place holders with a file/string

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubstFileTokens

func SubstFileTokens(in io.Reader, params map[string]string) (parsed string, missing bool)

SubstFileTokens provides feedback if any of the file tokens are missing within the specified in reader.

func Substitute

func Substitute(in io.Reader, preserveUndef bool, resolver func(string) string) string

Substitute will substitute ${TOKEN} tokens from the in reader and replaces the value using the resolver func. The preserveUndef flag can be used to leave the original ${TOKEN} as is when scenarios arrise and the TOKEN value cannot be found against the resolver

Types

This section is empty.

Jump to

Keyboard shortcuts

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