config

package
v0.0.14-classic Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: AGPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorConfig

type OperatorConfig struct {
	Version                  string `mapstructure:"VERSION"`
	DefaultOpenNMSValuesFile string `mapstructure:"DEFAULT_OPENNMS_VALUES_FILE"`
	DevMode                  bool   `mapstructure:"DEV_MODE"`

	//Image update
	ImageUpdateFreq int `mapstructure:"IMAGE_UPDATE_FREQUENCY"`

	//Service and job images
	ServiceImageAuth    string `mapstructure:"SERVICE_IMAGE_AUTH"`
	ServiceImageGrafana string `mapstructure:"SERVICE_IMAGE_GRAFANA"`
	ServiceImageInit    string `mapstructure:"SERVICE_IMAGE_INIT"`

	//instance node restrictions
	NodeRestrictionKey   string `mapstructure:"NODE_RESTRICTION_KEY"`
	NodeRestrictionValue string `mapstructure:"NODE_RESTRICTION_VALUE"`

	//TLS config
	TLSEnabled  bool   `mapstructure:"TLS_ENABLED"`
	TLSCertName string `mapstructure:"TLS_CERT_NAME"`
}

func LoadConfig

func LoadConfig() OperatorConfig

Jump to

Keyboard shortcuts

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