We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0976a27 commit 37467b5Copy full SHA for 37467b5
pkg/v1/daemon/options.go
@@ -22,6 +22,11 @@ import (
22
"github.com/docker/docker/client"
23
)
24
25
+// ImageOption is an alias for Option.
26
+// Deprecated: Use Option instead.
27
+type ImageOption Option
28
+
29
+// Option is a functional option for daemon operations.
30
type Option func(*options)
31
32
type options struct {
pkg/v1/daemon/write_test.go
@@ -146,7 +146,7 @@ func TestWriteDefaultClient(t *testing.T) {
146
}
147
148
// Cover default client init and ctx use as well.
149
- ctx := context.WithValue(context.Background(), "hello", "world")
+ ctx := context.TODO()
150
defaultClient = func() (Client, error) {
151
return &MockClient{
152
loadBody: ioutil.NopCloser(strings.NewReader("Loaded")),
0 commit comments