kubernetes

package
v1.8.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 26 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ModuleName = "kubernetes"

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	configuration.DataSourceCommonCfg `yaml:",inline"`

	Selector       string `yaml:"selector"`
	Namespace      string `yaml:"namespace"`
	KubeConfigFile string `yaml:"kube_config,omitempty"`
	KubeContext    string `yaml:"kube_context,omitempty"`
}

func ConfigurationFromYAML

func ConfigurationFromYAML(yamlConfig []byte) (Configuration, error)

func (*Configuration) SetDefaults

func (c *Configuration) SetDefaults()

func (*Configuration) Validate

func (c *Configuration) Validate() error

type Source

type Source struct {
	// contains filtered or unexported fields
}

func (*Source) CanRun

func (*Source) CanRun() error

func (*Source) Configure

func (s *Source) Configure(_ context.Context, yamlConfig []byte, logger *log.Entry, metricsLevel metrics.AcquisitionMetricsLevel) error

func (*Source) Dump

func (s *Source) Dump() any

func (*Source) GetAggregMetrics

func (*Source) GetAggregMetrics() []prometheus.Collector

func (*Source) GetMetrics

func (*Source) GetMetrics() []prometheus.Collector

func (*Source) GetMode

func (s *Source) GetMode() string

func (*Source) GetName

func (*Source) GetName() string

func (*Source) GetUuid

func (s *Source) GetUuid() string

func (*Source) Stream

func (s *Source) Stream(ctx context.Context, out chan pipeline.Event) error

func (*Source) UnmarshalConfig

func (s *Source) UnmarshalConfig(yamlConfig []byte) error

Jump to

Keyboard shortcuts

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