k8sevent

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sEvents

type K8sEvents struct {
	helper.InputOperator
	// contains filtered or unexported fields
}

K8sEvents is an operator for generating logs from k8s events

func (*K8sEvents) Start

func (k *K8sEvents) Start() error

Start implements the operator.Operator interface

func (*K8sEvents) Stop

func (k *K8sEvents) Stop() error

Stop implements operator.Operator

type K8sEventsConfig

type K8sEventsConfig struct {
	helper.InputConfig `yaml:",inline"`
	Namespaces         []string        `json:"namespaces" yaml:"namespaces"`
	DiscoverNamespaces bool            `json:"discover_namespaces" yaml:"discover_namespaces"`
	DiscoveryInterval  helper.Duration `json:"discovery_interval" yaml:"discovery_interval"`
}

K8sEventsConfig is the configuration of K8sEvents operator

func NewK8sEventsConfig

func NewK8sEventsConfig(operatorID string) *K8sEventsConfig

NewK8sEventsConfig creates a default K8sEventsConfig

func (K8sEventsConfig) Build

Build will build a k8s_event_input operator from the supplied configuration

Jump to

Keyboard shortcuts

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