taskcluster-worker: github.com/taskcluster/taskcluster-worker/config/env Index | Files

package configenv

import "github.com/taskcluster/taskcluster-worker/config/env"

Package configenv implements a TransformationProvider that replaces objects on the form: {$env: "VAR"} with the value of the environment variable VAR.

An additional key 'type' may be given as {$env: "VAR", type: "TYPE"}, which determines how the environment variable value should be parsed. By default the TYPE is 'string', but the following types are supported:

- string, value is return as string (default),
- number, value is parsed a number,
- json, value is parsed as JSON,
- bool, value becomes true if it matches 'true' (case insensitive), and,
- list, value is parsed as space separated list of strings.


Package Files


Package configenv imports 8 packages (graph) and is imported by 2 packages. Updated 2017-05-23. Refresh now. Tools for package owners.