status

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package status holds a struct that can be used to report external check status to the Kuberhealthy status reporting endpoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Errors []string
	OK     bool
}

Report is the format expected by the /externalCheckStatus endpoint

func NewReport

func NewReport(errorMessages []string) Report

NewReport creates a new error report to be sent to the server. If errors are left out, then we assume the status report is OK. If any error is present, we assume the status is DOWN.

Jump to

Keyboard shortcuts

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