config

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: MPL-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate added in v0.9.0

type Certificate struct {
	Cert_file string
	Key_file  string
}

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, 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_autoredirect     bool
	Cert                 *Certificate
	Pki_cert             *Pki_certificate
	Lets_encrypt_address string
}

type Pki_certificate added in v0.9.0

type Pki_certificate struct {
	Pki_path    string
	Common_name string
	Alt_names   []string
	Ip_sans     []string
}

type VaultConfig

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

Jump to

Keyboard shortcuts

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