both

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

NewFactory creates a new receiver factory.

Types

type Config

type Config struct {
	// The name of the configMap.
	ConfigMapName string `mapstructure:"config_map_name"`
	// The interval of the collector.
	Interval string `mapstructure:"config_interval"`
	// The interval of the http checker.
	HttpInterval string `mapstructure:"http_interval"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the receiver configuration is valid

type ConfigMapMapping

type ConfigMapMapping struct {
	// Name is the name of the ConfigMap.
	Name string `yaml:"name"`
	// Namespace is the namespace in which the ConfigMap is located.
	Namespace string `yaml:"namespace"`
}

Jump to

Keyboard shortcuts

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