healthcheck

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package healthcheck contains an interface for assessing the health of resources configured in a CR.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheck

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

HealthCheck is able to assess whether the configured health checks for a CR are all ready.

func NewHealthCheck

func NewHealthCheck(parent HealthChecker, statusPoller *polling.StatusPoller) *HealthCheck

NewHealthCheck returns a new HealthCheck able to assess the given CR.

func (*HealthCheck) Assess

func (hc *HealthCheck) Assess(pollInterval time.Duration) error

Assess will check if the configured health checks are all ready. It will poll at the given pollInterval.

type HealthChecker

type HealthChecker interface {
	client.Object

	GetTimeout() time.Duration
	GetHealthChecks() []meta.NamespacedObjectKindReference
}

Jump to

Keyboard shortcuts

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