dns

package
v1.53.1-cluster Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLabels

func GetLabels(sdc *SDConfig) ([]map[string]string, error)

GetLabels returns DNS labels according to sdc.

Types

type SDConfig

type SDConfig struct {
	Names []string `yaml:"names"`
	Type  string   `yaml:"type,omitempty"`
	Port  *int     `yaml:"port,omitempty"`
}

SDConfig represents service discovery config for DNS.

See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config

Jump to

Keyboard shortcuts

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