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
Click to show internal directories.
Click to hide internal directories.