watcher

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	LabelSelector  labels.Selector
	Namespaces     []string
	ResourceNames  []string
	ContainerNames []string
	RunningOnly    bool
	OneShot        bool
	DumpMetadata   bool
	DumpEvents     bool
}

type Watcher

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

func NewWatcher

func NewWatcher(
	clientset *kubernetes.Clientset,
	c collector.Collector,
	log logrus.FieldLogger,
	initialPods []corev1.Pod,
	initialEvents []corev1.Event,
	opt Options,
) *Watcher

func (*Watcher) Watch

func (w *Watcher) Watch(ctx context.Context, podWatcher watch.Interface, eventWatcher watch.Interface)

Jump to

Keyboard shortcuts

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