config

package
v0.1.2-0...-6576f98 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerConfiguration

type ServerConfiguration struct {
	Core struct {
		LogLevel                         string        `yaml:"logLevel"`
		ListenPort                       int           `yaml:"listenPort"`
		LogFile                          string        `yaml:"logFile"`
		WorkflowSteps                    string        `yaml:"workflowSteps"`
		WorkflowEntriesFile              string        `yaml:"workflowEntriesFile"`
		WorkflowActivityLauncherInterval time.Duration `yaml:"workflowActivityLauncherInterval"`
		WorkflowHousekeeperInterval      time.Duration `yaml:"workflowHousekeeperInterval"`
		ServiceWIPTimeout                time.Duration `yaml:"serviceWIPTimeout"`
		ServiceMaxLastUpdated            time.Duration `yaml:"serviceMaxLastUpdated"`
		CleanUndeployedServiceAfter      time.Duration `yaml:"cleanUndeployedServiceAfter"`
	} `yaml:"core"`
	Provider struct {
		Swarm      *swarm.Provider       `yaml:"swarm"`
		Kubernetes *kubernetes.Extension `yaml:"kubernetes"`
	} `yaml:"provider"`
	IPAM struct {
		IPAlloc *ipalloc.IPAlloc `yaml:"ipalloc"`
	} `yaml:"ipam"`
	DNS struct {
		Consul *consul.Consul `yaml:"consul"`
	} `yaml:"dns"`
	LB struct {
		KempLM *kemplm.KempLM `yaml:"kemplm"`
		F5LTM  *f5ltm.BigIP   `yaml:"f5ltm"`
	} `yaml:"lb"`
}

ServerConfiguration holds the configuration This includes all the providers and extensions

func ReadConfig

func ReadConfig(filename string) (*ServerConfiguration, error)

ReadConfig parse the configuration

Jump to

Keyboard shortcuts

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