config

package
Version: v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package config provides functions for reading and parsing the provider credentials json file. It cleans nonstandard json features (comments and trailing commas), as well as replaces environment variable placeholders with their environment variable equivalents. To reference an environment variable in your json file, simply use values in this format:

"key"="$ENV_VAR_NAME"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadProviderConfigs

func LoadProviderConfigs(fname string) (map[string]map[string]string, error)

LoadProviderConfigs will open the specified file name, and parse its contents. It will replace environment variables it finds if any value matches $[A-Za-z_-0-9]+

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL