k8s

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodTracker

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

PodTracker tracks pods using Kubernetes API client.

func NewPodTracker

func NewPodTracker(k8sClient kubernetes.Interface, logger *log.Logger) *PodTracker

NewPodTracker creates a new PodTracker that watches pods using specified kuberneter API client.

func (*PodTracker) TrackPods

func (t *PodTracker) TrackPods(ctx context.Context, node string) (<-chan exporter.PodEvent, error)

TrackPods starts tracking pod events on a specified node. Returns a channel of PodEvents that can be used to fetch corresponding events.

Jump to

Keyboard shortcuts

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