app

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GoCdBaseURL      string            `json:"gocd-base-url,omitempty" yaml:"gocd-base-url,omitempty"`
	GoCdUserName     string            `json:"gocd-username,omitempty" yaml:"gocd-username,omitempty"`
	GoCdPassword     string            `json:"gocd-password,omitempty" yaml:"gocd-password,omitempty"`
	GoCDBearerToken  string            `json:"go-cd-bearer-token,omitempty" yaml:"go-cd-bearer-token,omitempty"`
	InsecureTLS      bool              `json:"insecure-tls,omitempty" yaml:"insecure-tls,omitempty"`
	CaPath           string            `json:"ca-path,omitempty" yaml:"ca-path,omitempty"`
	Port             int               `json:"port,omitempty" yaml:"port,omitempty"`
	Endpoint         string            `json:"metric-endpoint,omitempty" yaml:"metric-endpoint,omitempty"`
	LogLevel         string            `json:"log-level,omitempty" yaml:"log-level,omitempty"`
	SkipMetrics      []string          `json:"skip-metrics,omitempty" yaml:"skip-metrics,omitempty"`
	APICron          string            `json:"api-cron-schedule,omitempty" yaml:"api-cron-schedule,omitempty"`
	MetricCron       map[string]string `json:"metric-cron,omitempty" yaml:"metric-cron,omitempty"`
	AppGraceDuration time.Duration     `json:"grace-duration,omitempty" yaml:"grace-duration,omitempty"`
}

Config holds the information of the app gocd-prometheus-exporter.

func GetConfig

func GetConfig(conf Config, path string) (*Config, error)

GetConfig returns the new instance of Config.

Jump to

Keyboard shortcuts

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