inject

package
v0.0.0-...-51b69c8 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inject

func Inject(raw string, params map[string]string) string

Inject injects a map of parameters into a raw string and returns the resulting string.

Parameters are represented in the string using $$ notation, similar to how environment variables are defined in Makefiles.

func InjectSafe

func InjectSafe(raw string, params map[string]string) (string, error)

InjectSafe attempts to safely inject parameters without leaking parameters in the Build or Compose section of the yaml file.

The intended use case for this function are public pull requests. We want to avoid a malicious pull request that allows someone to inject and print private variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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