util

package
v0.0.0-...-53af28c Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(c *Config) (err error)

LoadConfig reads encrypted configuration from file or environment variables. SOPS guide: https://blog.gitguardian.com/a-comprehensive-guide-to-sops/

Types

type Config

type Config struct {
	V                    *viper.Viper
	L                    *logrus.Logger
	AmbariOpgenieMapping map[int]string
	AlertClient          *alert.Client
}

A Config specifies the configuration for alerts.

func (*Config) ConfigLogger

func (c *Config) ConfigLogger()

ConfigLogger configures the Logrus logger (timestamp+loglevel).

Jump to

Keyboard shortcuts

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