checkrunner

package
v0.0.0-...-e0ed648 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRunner

type CheckRunner struct {
	Configuration *config.Configuration
	Result        chan map[string]interface{}
	Checks        []checks.Check
	// contains filtered or unexported fields
}

func (*CheckRunner) Shutdown

func (c *CheckRunner) Shutdown()

func (*CheckRunner) Start

func (c *CheckRunner) Start(ctx context.Context) error

Start the check runner and returns immediatly (SHOULD NOT RUN IN GOROUTINE)

type CustomCheckExecutor

type CustomCheckExecutor struct {
	Configuration *config.CustomCheck
	ResultOutput  chan *CustomCheckResult
	// contains filtered or unexported fields
}

func (*CustomCheckExecutor) Shutdown

func (c *CustomCheckExecutor) Shutdown()

func (*CustomCheckExecutor) Start

func (c *CustomCheckExecutor) Start(parent context.Context) error

type CustomCheckHandler

type CustomCheckHandler struct {
	// ResultOutput channel for check results
	// Do not close before Shutdown completes
	ResultOutput  chan *CustomCheckResult
	Configuration []*config.CustomCheck
	// contains filtered or unexported fields
}

CustomCheckHandler runs custom checks

func (*CustomCheckHandler) Shutdown

func (c *CustomCheckHandler) Shutdown()

Shutdown custom check runner, waits for completion

func (*CustomCheckHandler) Start

func (c *CustomCheckHandler) Start(parentCtx context.Context)

Run the custom checks in background (DO NOT RUN IN GO ROUTINE)

type CustomCheckResult

type CustomCheckResult struct {
	Name   string
	Result *utils.CommandResult
}

Jump to

Keyboard shortcuts

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