config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagDefault

func FlagDefault(value string) string

func ParseAppEnvConfig

func ParseAppEnvConfig(c *Config)

ParseAppEnvConfig ...

func ParseAppFlagConfig

func ParseAppFlagConfig(c *Config)

ParseAppFlagConfig ...

func ParseConsulEnvConfig

func ParseConsulEnvConfig(c *Config)

ParseConsulEnvConfig ...

func ParseConsulFlagConfig

func ParseConsulFlagConfig(c *Config)

ParseConsulFlagConfig ...

func ParseNomadEnvConfig

func ParseNomadEnvConfig(c *Config)

ParseNomadEnvConfig ...

func ParseNomadFlagConfig

func ParseNomadFlagConfig(c *Config)

ParseNomadFlagConfig ...

Types

type Config

type Config struct {
	LogLevel               string
	ProxyAddress           string
	ProxyPath              string
	ListenAddress          string
	HttpsEnable            bool
	NewRelicEnable         bool
	NewRelicAppName        string
	NewRelicLicenseKey     string
	ServerCert             string
	ServerKey              string
	SiteTitle              string
	ThrottleUpdateDuration *time.Duration

	NomadEnable      bool
	NomadAddress     string
	NomadACLToken    string
	NomadCACert      string
	NomadClientCert  string
	NomadClientKey   string
	NomadReadOnly    bool
	NomadSkipVerify  bool
	NomadHideEnvData bool
	NomadAllowStale  bool
	NomadColor       string

	ConsulEnable   bool
	ConsulReadOnly bool
	ConsulAddress  string
	ConsulACLToken string
	ConsulColor    string
}

Config for the hashi-ui server

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig is the basic out-of-the-box configuration for hashi-ui

func (*Config) Parse

func (c *Config) Parse()

Parse the env and cli flags and store the outcome in a Config struct

Jump to

Keyboard shortcuts

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