config

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArmSuffix added in v0.13.0

func GetArmSuffix(product string, version string) string

func GetDownloadURL added in v0.8.0

func GetDownloadURL(product, arch string, version *semver.Version) string

func GetLatestVersion added in v0.6.0

func GetLatestVersion(product string) (string, error)

Types

type BoundaryConfig added in v0.10.0

type BoundaryConfig struct {
	WorkerName           string
	ControllerName       string
	DatabaseURL          string
	RootKey              string
	WorkerAuthKey        string
	RecoveryKey          string
	ApiAddress           string
	ApiKeyFile           string
	ApiCertFile          string
	ClusterAddress       string
	ClusterKeyFile       string
	ClusterCertFile      string
	ProxyAddress         string
	ProxyKeyFile         string
	ProxyCertFile        string
	PublicAddress        string
	PublicClusterAddress string
	Controllers          []string
}

func (*BoundaryConfig) ApiTLSEnabled added in v0.10.0

func (c *BoundaryConfig) ApiTLSEnabled() bool

func (*BoundaryConfig) ClusterTLSEnabled added in v0.10.0

func (c *BoundaryConfig) ClusterTLSEnabled() bool

func (*BoundaryConfig) GenerateConfigFile added in v0.10.0

func (c *BoundaryConfig) GenerateConfigFile() string

func (*BoundaryConfig) GenerateDbConfigFile added in v0.10.0

func (c *BoundaryConfig) GenerateDbConfigFile() string

func (*BoundaryConfig) HasAllRequiredControllerKeys added in v0.10.0

func (c *BoundaryConfig) HasAllRequiredControllerKeys() bool

func (*BoundaryConfig) HasAllRequiredWorkerKeys added in v0.10.0

func (c *BoundaryConfig) HasAllRequiredWorkerKeys() bool

func (*BoundaryConfig) HasDatabaseURL added in v0.10.0

func (c *BoundaryConfig) HasDatabaseURL() bool

func (*BoundaryConfig) HasRootKey added in v0.10.0

func (c *BoundaryConfig) HasRootKey() bool

func (*BoundaryConfig) HasValidApiTLSSettings added in v0.10.0

func (c *BoundaryConfig) HasValidApiTLSSettings() bool

func (*BoundaryConfig) HasValidClusterTLSSettings added in v0.10.0

func (c *BoundaryConfig) HasValidClusterTLSSettings() bool

func (*BoundaryConfig) HasValidProxyTLSSettings added in v0.10.0

func (c *BoundaryConfig) HasValidProxyTLSSettings() bool

func (*BoundaryConfig) IsControllerEnabled added in v0.10.0

func (c *BoundaryConfig) IsControllerEnabled() bool

func (*BoundaryConfig) IsWorkerEnabled added in v0.10.0

func (c *BoundaryConfig) IsWorkerEnabled() bool

func (*BoundaryConfig) ProxyTLSEnabled added in v0.10.0

func (c *BoundaryConfig) ProxyTLSEnabled() bool

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
	NodeClass       string
	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 Product added in v0.15.0

type Product struct {
}

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 Version added in v0.15.0

type Version struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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