config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: MPL-2.0 Imports: 42 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 {
	Listener        *ListenerConfig `hcl:"-"`
	Vault           *VaultConfig    `hcl:"-"`
	DisableMlock    bool            `hcl:"-"`
	DisableMlockRaw interface{}     `hcl:"disable_mlock"`
}

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