healthcheck

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChecks

func RunChecks(ctx context.Context, input cli.Input, client cmd.Client, 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 {
	// contains filtered or unexported fields
}

func NewHealthChecker

func NewHealthChecker(cmd cmd.Client, categoryIDs []CategoryID) *HealthChecker

func (*HealthChecker) CheckFissionVersion

func (hc *HealthChecker) CheckFissionVersion(ctx context.Context, input cli.Input, client cmd.Client) error

func (*HealthChecker) CheckKubeVersion

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

func (*HealthChecker) CheckServiceStatus

func (hc *HealthChecker) CheckServiceStatus(ctx context.Context, namespace, name, svcName string) (err error)

Jump to

Keyboard shortcuts

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