mirror of https://github.com/docker/docs.git
daemon: remove some unused code
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
b27f17c9ea
commit
b9966f3a81
|
@ -10,20 +10,6 @@ const (
|
||||||
loggerCloseTimeout = 10 * time.Second
|
loggerCloseTimeout = 10 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
// supervisor defines the interface that a supervisor must implement
|
|
||||||
type supervisor interface {
|
|
||||||
// LogContainerEvent generates events related to a given container
|
|
||||||
LogContainerEvent(*Container, string)
|
|
||||||
// Cleanup ensures that the container is properly unmounted
|
|
||||||
Cleanup(*Container)
|
|
||||||
// StartLogging starts the logging driver for the container
|
|
||||||
StartLogging(*Container) error
|
|
||||||
// Run starts a container
|
|
||||||
Run(c *Container) error
|
|
||||||
// IsShuttingDown tells whether the supervisor is shutting down or not
|
|
||||||
IsShuttingDown() bool
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reset puts a container into a state where it can be restarted again.
|
// Reset puts a container into a state where it can be restarted again.
|
||||||
func (container *Container) Reset(lock bool) {
|
func (container *Container) Reset(lock bool) {
|
||||||
if lock {
|
if lock {
|
||||||
|
|
|
@ -68,9 +68,3 @@ func (m *mockmetadataclient) Region() (string, error) {
|
||||||
output := <-m.regionResult
|
output := <-m.regionResult
|
||||||
return output.successResult, output.errorResult
|
return output.successResult, output.errorResult
|
||||||
}
|
}
|
||||||
|
|
||||||
func test() {
|
|
||||||
_ = &logStream{
|
|
||||||
client: newMockClient(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -7,7 +7,3 @@ import "github.com/docker/docker/cli"
|
||||||
const daemonUsage = ""
|
const daemonUsage = ""
|
||||||
|
|
||||||
var daemonCli cli.Handler
|
var daemonCli cli.Handler
|
||||||
|
|
||||||
// notifySystem sends a message to the host when the server is ready to be used
|
|
||||||
func notifySystem() {
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue