util

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvFromFlag

func EnvFromFlag(prefix, name string) string

EnvFromFlag converts a flag name to an environment variable name. Flags are assumed to be in the format [a-z0-9](-[a-z0-9])*

func FlagAuthProvider

func FlagAuthProvider(ptr *token.AuthProvider, fs *pflag.FlagSet)

FlagAuthProvider creates flags for vault auth providers

func ParseFlagsFromEnv

func ParseFlagsFromEnv(prefix string, fs *flag.FlagSet)

ParseFlagsFromEnv takes a flag set and sets the values from the environment. It uses EnvFromFlag to generate the environment variable name so flags must be in the format [a-z0-9](-[a-z0-9])*

func ParsePFlagsFromEnv

func ParsePFlagsFromEnv(prefix string, fs *pflag.FlagSet)

ParsePFlagsFromEnv takes a flag set and sets the values from the environment. It uses EnvFromFlag to generate the environment variable name so flags must be in the format [a-z0-9](-[a-z0-9])*

Types

This section is empty.

Jump to

Keyboard shortcuts

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