config

package
v0.0.0-...-abf49f6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Peers         []string `json:"peers" yaml:"peers"`
	AdvertiseAddr string   `json:"advertise_addr" yaml:"advertise_addr"`
}

type Config

type Config struct {
	Global     Global     `json:"global" yaml:"global"`
	Prometheus Prometheus `json:"prometheus" yaml:"prometheus"`
	Cluster    Cluster    `json:"cluster" yaml:"cluster"`
	Tasks      Tasks      `json:"tasks" yaml:"tasks"`
}

func (*Config) Valid

func (config *Config) Valid() error

type Global

type Global struct {
	ExternalLabels map[string]string `json:"external_labels" yaml:"external_labels"`
}

type Prometheus

type Prometheus struct {
	Output string `json:"output" yaml:"output"`
}

type Tasks

type Tasks struct {
	DryRun bool   `json:"dry_run" yaml:"dry_run"`
	States string `json:"states" yaml:"states"`
}

Jump to

Keyboard shortcuts

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