reports

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package reports provides functions for generating one-line summary (Service Output) and detailed overview (Long Service Output) "reports" of plugin service check results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRebootOneLineSummary

func CheckRebootOneLineSummary(assertions restart.RebootRequiredAsserters, evalIgnored bool) string

CheckRebootOneLineSummary returns a one-line summary of the evaluation results suitable for display and notification purposes. A boolean value is accepted which indicates whether assertion values marked as ignored (during filtering) should also be considered.

func CheckRebootReport

func CheckRebootReport(assertions restart.RebootRequiredAsserters, showIgnored bool, verbose bool) string

CheckRebootReport returns a formatted report of the evaluation results suitable for display and notification purposes. If specified, additional details are provided.

func DisableLogging

func DisableLogging()

DisableLogging reapplies default package-level logging settings of muting all logging output.

func EnableLogging

func EnableLogging()

EnableLogging enables logging output from this package. Output is muted by default unless explicitly requested (by calling this function).

Types

This section is empty.

Jump to

Keyboard shortcuts

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