config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLatestVersion added in v0.6.0

func GetLatestVersion(product string) (string, error)

Types

type ConsulConfig added in v0.6.0

type ConsulConfig struct {
	Datacenter      string
	BindAddr        string
	AdvertiseAddr   string
	ClientAddr      string
	DnsAddr         string
	HttpAddr        string
	HttpsAddr       string
	GrpcAddr        string
	Server          bool
	BootstrapExpect int64
	RetryJoin       []string
	Encrypt         string
	CaFile          string
	CertFile        string
	KeyFile         string
	AutoEncrypt     bool
	EnableACL       bool
	AgentToken      string
	EnableConnect   bool
	HttpsOnly       bool
}

func (ConsulConfig) EnableTLS added in v0.6.0

func (c ConsulConfig) EnableTLS() bool

func (ConsulConfig) GenerateConfigFile added in v0.6.0

func (c ConsulConfig) GenerateConfigFile() string

type NomadConfig added in v0.6.0

type NomadConfig struct {
	Datacenter      string
	BindAddr        string
	AdvertiseAddr   string
	Server          bool
	Client          bool
	BootstrapExpect int64
	RetryJoin       []string
	Encrypt         string
	CaFile          string
	CertFile        string
	KeyFile         string
	EnableACL       bool
}

func (NomadConfig) EnableTLS added in v0.6.0

func (c NomadConfig) EnableTLS() bool

func (NomadConfig) GenerateConfigFile added in v0.6.0

func (c NomadConfig) GenerateConfigFile() string

type VaultConfig added in v0.6.0

type VaultConfig struct {
	ApiAddr        string
	ClusterAddr    string
	Address        []string
	CertFile       string
	KeyFile        string
	Storage        string
	ConsulAddr     string
	ConsulPath     string
	ConsulToken    string
	ConsulCaFile   string
	ConsulCertFile string
	ConsulKeyFile  string
}

func (VaultConfig) EnableConsulTLS added in v0.6.0

func (c VaultConfig) EnableConsulTLS() bool

func (VaultConfig) EnableTLS added in v0.6.0

func (c VaultConfig) EnableTLS() bool

func (VaultConfig) GenerateConfigFile added in v0.6.0

func (c VaultConfig) GenerateConfigFile() string

type Versions added in v0.5.0

type Versions struct {
	Name     string                 `json:"vault"`
	Versions map[string]interface{} `json:"versions"`
}

Jump to

Keyboard shortcuts

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