|
@@ -28,11 +28,12 @@ import (
|
|
"gotest.tools/assert"
|
|
"gotest.tools/assert"
|
|
)
|
|
)
|
|
|
|
|
|
-type logT interface {
|
|
|
|
|
|
+// LogT is the subset of the testing.TB interface used by the daemon.
|
|
|
|
+type LogT interface {
|
|
Logf(string, ...interface{})
|
|
Logf(string, ...interface{})
|
|
}
|
|
}
|
|
|
|
|
|
-// nopLog is a no-op implementation of logT that is used in daemons created by
|
|
|
|
|
|
+// nopLog is a no-op implementation of LogT that is used in daemons created by
|
|
// NewDaemon (where no testing.TB is available).
|
|
// NewDaemon (where no testing.TB is available).
|
|
type nopLog struct{}
|
|
type nopLog struct{}
|
|
|
|
|
|
@@ -71,7 +72,7 @@ type Daemon struct {
|
|
experimental bool
|
|
experimental bool
|
|
init bool
|
|
init bool
|
|
dockerdBinary string
|
|
dockerdBinary string
|
|
- log logT
|
|
|
|
|
|
+ log LogT
|
|
pidFile string
|
|
pidFile string
|
|
args []string
|
|
args []string
|
|
|
|
|