Signed-off-by: Alexander Morozov <lk4d4@docker.com>
| ... | ... |
@@ -10,20 +10,6 @@ const ( |
| 10 | 10 |
loggerCloseTimeout = 10 * time.Second |
| 11 | 11 |
) |
| 12 | 12 |
|
| 13 |
-// supervisor defines the interface that a supervisor must implement |
|
| 14 |
-type supervisor interface {
|
|
| 15 |
- // LogContainerEvent generates events related to a given container |
|
| 16 |
- LogContainerEvent(*Container, string) |
|
| 17 |
- // Cleanup ensures that the container is properly unmounted |
|
| 18 |
- Cleanup(*Container) |
|
| 19 |
- // StartLogging starts the logging driver for the container |
|
| 20 |
- StartLogging(*Container) error |
|
| 21 |
- // Run starts a container |
|
| 22 |
- Run(c *Container) error |
|
| 23 |
- // IsShuttingDown tells whether the supervisor is shutting down or not |
|
| 24 |
- IsShuttingDown() bool |
|
| 25 |
-} |
|
| 26 |
- |
|
| 27 | 13 |
// Reset puts a container into a state where it can be restarted again. |
| 28 | 14 |
func (container *Container) Reset(lock bool) {
|
| 29 | 15 |
if lock {
|