checks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package checks implements functions that verify conditions in a cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckService

func CheckService(c ServiceCheck) error

CheckService verifies access to service returns the expected result

Types

type ServiceCheck

type ServiceCheck struct {
	// URL to access the service (default http://127.0.0.1)
	URL string
	// Port to access the service (default 32080)
	Port int32
	// Expected return code (default 200)
	ExpectedCode int
	// Delay before attempting access to service
	Delay time.Duration
}

ServiceCheck defines the conditions to check in the access to a service

Jump to

Keyboard shortcuts

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