config

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Nop

func Nop(key string, value interface{})

Types

type ConfigServer

type ConfigServer interface {
	Load(env EnvSet) error
}

func NewConfigServer

func NewConfigServer(args ...Option) ConfigServer

type EnvSet

type EnvSet func(key string, value interface{})

type Option

type Option func(opt *Options)

func App

func App(name string) Option

func KeyTokenLookupFromHeader

func KeyTokenLookupFromHeader(key string) Option

func KeyTokenLookupFromQuery

func KeyTokenLookupFromQuery(key string) Option

func Label

func Label(name string) Option

func LocalYamlFile added in v1.12.0

func LocalYamlFile(fileName string) Option

func Profile

func Profile(name string) Option

func Server

func Server(uri string) Option

func Token

func Token(token string) Option

func VaultToken

func VaultToken(token string) Option

type Options

type Options struct {
	App               string
	Profile           string
	Server            string
	Label             string
	Token             string
	TokenLookupOrigin string
	TokenLookupValue  string
	VaultToken        string
	LocalYamlFile     string
}

Jump to

Keyboard shortcuts

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