healthcheck

package
v1.17.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChecks

func RunChecks(hc *HealthChecker)

Types

type Category

type Category struct {
	ID CategoryID
	// contains filtered or unexported fields
}

Category is a group of checkers

func NewCategory

func NewCategory(id CategoryID, checkers []Checker, enabled bool) *Category

type CategoryID

type CategoryID string
const (
	Kubernetes      CategoryID = "kubernetes"
	FissionServices CategoryID = "fission-services"
	FissionVersion  CategoryID = "fission-version"
)

type Checker

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

type HealthChecker

type HealthChecker struct {
	*Options
	// contains filtered or unexported fields
}

func NewHealthChecker

func NewHealthChecker(categoryIDs []CategoryID, options *Options) *HealthChecker

func (*HealthChecker) CheckFissionVersion

func (hc *HealthChecker) CheckFissionVersion() error

func (*HealthChecker) CheckKubeVersion

func (hc *HealthChecker) CheckKubeVersion() (err error)

func (*HealthChecker) CheckServiceStatus

func (hc *HealthChecker) CheckServiceStatus(namespace string, name string) (err error)

type Options

type Options struct {
	KubeContext   string
	FissionClient client.Interface
}

Jump to

Keyboard shortcuts

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