config

package
v0.4.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2017 License: MPL-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupVault

func SetupVault(addr, rootToken string) error

Types

type Config

type Config struct {
	Listener *ListenerConfig `hcl:"-"`
	Vault    *VaultConfig    `hcl:"-"`
}

func LoadConfigDev

func LoadConfigDev() (*Config, chan struct{}, string, error)

func LoadConfigFile

func LoadConfigFile(path string) (*Config, error)

func ParseConfig

func ParseConfig(d string) (*Config, error)

type ListenerConfig

type ListenerConfig struct {
	Type             string
	Address          string
	Tls_disable      bool
	Tls_cert_file    string
	Tls_key_file     string
	Tls_autoredirect bool
}

type VaultConfig

type VaultConfig struct {
	Type            string
	Address         string
	Tls_skip_verify bool
	Runtime_config  string
	Approle_login   string
	Approle_id      string
}

Jump to

Keyboard shortcuts

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