Defines container health status types and validation logic.
// Source: https://github.com/moby/moby | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. package container import ( "fmt" "strings" "time" ) // HealthStatus is a string representation of the container's health. type HealthStatus string // Health states const ( NoHealthcheck HealthStatus = "none" // Indicates there is no healthcheck Starting HealthStatus = "starting" // Starting indicates that the container is not yet ready Healthy HealthStatus = "healthy" // Healthy indicates that the container is running correctly Unhealthy HealthStatus = "unhealthy" // Unhealthy indicates that the container has a problem ) // Health stores information about the c ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key