config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CipherKey   string `mapstructure:"cipher_key"`
	S3AccessKey string `mapstructure:"s3_access_key"`
	S3SecretKey string `mapstructure:"s3_secret_key"`
	S3Token     string `mapstructure:"s3_token"`
	S3Region    string `mapstructure:"s3_region"`
	S3Endpoint  string `mapstructure:"s3_endpoint"`
}

type Vault

type Vault interface {
	LookupWithAppRole(roleID, secretID, path string) (*Config, error)
	LookupWithToken(token, path string) (*Config, error)
}

func NewVault

func NewVault(vaultAddr, caCertFile string) (Vault, error)

Jump to

Keyboard shortcuts

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