github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/libpod/define/healthchecks.go (about) 1 package define 2 3 const ( 4 // HealthCheckHealthy describes a healthy container 5 HealthCheckHealthy string = "healthy" 6 // HealthCheckUnhealthy describes an unhealthy container 7 HealthCheckUnhealthy string = "unhealthy" 8 // HealthCheckStarting describes the time between when the container starts 9 // and the start-period (time allowed for the container to start and application 10 // to be running) expires. 11 HealthCheckStarting string = "starting" 12 ) 13 14 // HealthCheckStatus represents the current state of a container 15 type HealthCheckStatus int 16 17 const ( 18 // HealthCheckSuccess means the health worked 19 HealthCheckSuccess HealthCheckStatus = iota 20 // HealthCheckFailure means the health ran and failed 21 HealthCheckFailure HealthCheckStatus = iota 22 // HealthCheckContainerStopped means the health check cannot 23 // be run because the container is stopped 24 HealthCheckContainerStopped HealthCheckStatus = iota 25 // HealthCheckContainerNotFound means the container could 26 // not be found in local store 27 HealthCheckContainerNotFound HealthCheckStatus = iota 28 // HealthCheckNotDefined means the container has no health 29 // check defined in it 30 HealthCheckNotDefined HealthCheckStatus = iota 31 // HealthCheckInternalError means some something failed obtaining or running 32 // a given health check 33 HealthCheckInternalError HealthCheckStatus = iota 34 // HealthCheckDefined means the healthcheck was found on the container 35 HealthCheckDefined HealthCheckStatus = iota 36 )