config

package
v1.0.85 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Providers             []Provider    `yaml:"providers"`
	EnableMonitorDeletion bool          `yaml:"enableMonitorDeletion"`
	MonitorNameTemplate   string        `yaml:"monitorNameTemplate"`
	ResyncPeriod          int           `yaml:"resyncPeriod,omitempty"`
	CreationDelay         time.Duration `yaml:"creationDelay,omitempty"`
}

func GetControllerConfig

func GetControllerConfig() Config

func ReadConfig

func ReadConfig(filePath string) Config

func (*Config) UnmarshalYAML added in v1.0.80

func (c *Config) UnmarshalYAML(data []byte) error

UnmarshalYAML interface to deserialize specific types

type Provider

type Provider struct {
	Name              string `yaml:"name"`
	ApiKey            string `yaml:"apiKey"`
	ApiURL            string `yaml:"apiURL"`
	AlertContacts     string `yaml:"alertContacts"`
	AlertIntegrations string `yaml:"alertIntegrations"`
	Username          string `yaml:"username"`
	Password          string `yaml:"password"`
	AccountEmail      string `yaml:"accountEmail"`
}

Jump to

Keyboard shortcuts

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