Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface {
ListContainers() ([]database.ContainerInfo, error)
}
type DockerClient ¶
type DockerClient interface { HealthCheck(ctx context.Context, containerID string) (types.ContainerState, error) StartContainer(ctx context.Context, containerID string) error RestartContainer(ctx context.Context, containerID string, timeout *int) error }
TODO add a count to stop trying to restart a container
type HealthChecker ¶
type HealthChecker struct {
// contains filtered or unexported fields
}
func NewHealthChecker ¶
func NewHealthChecker(dockerClient DockerClient, db Database, interval time.Duration, logger Logger) *HealthChecker
func (*HealthChecker) Start ¶
func (hc *HealthChecker) Start(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.