config

package
v0.0.0-...-795d1f5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int

func Int(name string, def int64) int64

Int provides a convenience wrapper for retrieving an integer from an env var. If the env var is not set, the supplied default will be returned.

func PrivateInt

func PrivateInt(name string, def int64) int64

PrivateInt provides a convenience wrapper for retrieving an integer from an env var. If the env var is not set, the supplied default will be returned. No values are logged from this function.

func PrivateString

func PrivateString(parts ...string) string

PrivateString provides a wrapper around os.Getenv with an optional fallback value. No values are logged from this function.

func RemoteSecrets

func RemoteSecrets() (map[string][]byte, error)

RemoteSecrets returns all remove secrets as key value pairs.

func SetRemoteSecret

func SetRemoteSecret(key, value string) error

SetRemoteSecret sets a remote config value.

func String

func String(parts ...string) string

String provides a wrapper around os.Getenv with an optional fallback value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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