watcher

package
v0.0.0-...-5c50890 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOutput

func CheckOutput(line <-chan string)

CheckOutput filters through new systemd lines as they're received from a string channel.

func PLEGWatch

func PLEGWatch(out *models.LineInfo)

PLEGWatch initalizes a new JournalReader and starts following systemd output

Types

type PLEGEvent

type PLEGEvent struct {
	ID   string `json:"ID"`
	Type string `json:"Type"`
	Data string `json:"Data"`
}

PLEGEvent represents relevant data from Kubernetes Pod Lifecycle Event Generator messages.

func Format

func Format(inputStr string) (PLEGEvent, error)

Format converts systemd output into a usable, JSON-compatible go struct

Jump to

Keyboard shortcuts

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