checkrunner

package
v0.0.0-...-c20096b Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 12 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
}

type PrometheusCheckExecutor

type PrometheusCheckExecutor struct {
	Configuration *config.PrometheusExporter
	ResultOutput  chan *PrometheusExporterResult
	// contains filtered or unexported fields
}

func (*PrometheusCheckExecutor) Shutdown

func (c *PrometheusCheckExecutor) Shutdown()

func (*PrometheusCheckExecutor) Start

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

type PrometheusCheckHandler

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

PrometheusCheckHandler runs proemtheus exporter

func (*PrometheusCheckHandler) Shutdown

func (c *PrometheusCheckHandler) Shutdown()

Shutdown custom check runner, waits for completion

func (*PrometheusCheckHandler) Start

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

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

type PrometheusExporterResult

type PrometheusExporterResult struct {
	Name   string
	Result string
}

Jump to

Keyboard shortcuts

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