@@ -16,12 +16,12 @@ type EngineWithErr struct {
16
16
}
17
17
18
18
// Info .
19
- func (f * EngineWithErr ) Info (ctx context.Context ) (* enginetypes.Info , error ) {
19
+ func (f * EngineWithErr ) Info (_ context.Context ) (* enginetypes.Info , error ) {
20
20
return nil , f .DefaultErr
21
21
}
22
22
23
23
// Ping .
24
- func (f * EngineWithErr ) Ping (ctx context.Context ) error {
24
+ func (f * EngineWithErr ) Ping (_ context.Context ) error {
25
25
return f .DefaultErr
26
26
}
27
27
@@ -31,151 +31,151 @@ func (f *EngineWithErr) CloseConn() error {
31
31
}
32
32
33
33
// Execute .
34
- func (f * EngineWithErr ) Execute (ctx context.Context , ID string , config * enginetypes.ExecConfig ) (execID string , stdout , stderr io.ReadCloser , stdin io.WriteCloser , err error ) {
34
+ func (f * EngineWithErr ) Execute (context.Context , string , * enginetypes.ExecConfig ) (execID string , stdout , stderr io.ReadCloser , stdin io.WriteCloser , err error ) {
35
35
return "" , nil , nil , nil , f .DefaultErr
36
36
}
37
37
38
38
// ExecResize .
39
- func (f * EngineWithErr ) ExecResize (ctx context.Context , execID string , height , width uint ) (err error ) {
39
+ func (f * EngineWithErr ) ExecResize (context.Context , string , uint , uint ) (err error ) {
40
40
return f .DefaultErr
41
41
}
42
42
43
43
// ExecExitCode .
44
- func (f * EngineWithErr ) ExecExitCode (ctx context.Context , ID , result string ) (int , error ) {
44
+ func (f * EngineWithErr ) ExecExitCode (context.Context , string , string ) (int , error ) {
45
45
return 0 , f .DefaultErr
46
46
}
47
47
48
48
// NetworkConnect .
49
- func (f * EngineWithErr ) NetworkConnect (ctx context.Context , network , target , ipv4 , ipv6 string ) ([]string , error ) {
49
+ func (f * EngineWithErr ) NetworkConnect (context.Context , string , string , string , string ) ([]string , error ) {
50
50
return nil , f .DefaultErr
51
51
}
52
52
53
53
// NetworkDisconnect .
54
- func (f * EngineWithErr ) NetworkDisconnect (ctx context.Context , network , target string , force bool ) error {
54
+ func (f * EngineWithErr ) NetworkDisconnect (context.Context , string , string , bool ) error {
55
55
return f .DefaultErr
56
56
}
57
57
58
58
// NetworkList .
59
- func (f * EngineWithErr ) NetworkList (ctx context.Context , drivers []string ) ([]* enginetypes.Network , error ) {
59
+ func (f * EngineWithErr ) NetworkList (context.Context , []string ) ([]* enginetypes.Network , error ) {
60
60
return nil , f .DefaultErr
61
61
}
62
62
63
63
// ImageList .
64
- func (f * EngineWithErr ) ImageList (ctx context.Context , image string ) ([]* enginetypes.Image , error ) {
64
+ func (f * EngineWithErr ) ImageList (context.Context , string ) ([]* enginetypes.Image , error ) {
65
65
return nil , f .DefaultErr
66
66
}
67
67
68
68
// ImageRemove .
69
- func (f * EngineWithErr ) ImageRemove (ctx context.Context , image string , force , prune bool ) ([]string , error ) {
69
+ func (f * EngineWithErr ) ImageRemove (context.Context , string , bool , bool ) ([]string , error ) {
70
70
return nil , f .DefaultErr
71
71
}
72
72
73
73
// ImagesPrune .
74
- func (f * EngineWithErr ) ImagesPrune (ctx context.Context ) error {
74
+ func (f * EngineWithErr ) ImagesPrune (context.Context ) error {
75
75
return f .DefaultErr
76
76
}
77
77
78
78
// ImagePull .
79
- func (f * EngineWithErr ) ImagePull (ctx context.Context , ref string , all bool ) (io.ReadCloser , error ) {
79
+ func (f * EngineWithErr ) ImagePull (context.Context , string , bool ) (io.ReadCloser , error ) {
80
80
return nil , f .DefaultErr
81
81
}
82
82
83
83
// ImagePush .
84
- func (f * EngineWithErr ) ImagePush (ctx context.Context , ref string ) (io.ReadCloser , error ) {
84
+ func (f * EngineWithErr ) ImagePush (context.Context , string ) (io.ReadCloser , error ) {
85
85
return nil , f .DefaultErr
86
86
}
87
87
88
88
// ImageBuild .
89
- func (f * EngineWithErr ) ImageBuild (ctx context.Context , input io.Reader , refs []string , _ string ) (io.ReadCloser , error ) {
89
+ func (f * EngineWithErr ) ImageBuild (context.Context , io.Reader , []string , string ) (io.ReadCloser , error ) {
90
90
return nil , f .DefaultErr
91
91
}
92
92
93
93
// ImageBuildCachePrune .
94
- func (f * EngineWithErr ) ImageBuildCachePrune (ctx context.Context , all bool ) (uint64 , error ) {
94
+ func (f * EngineWithErr ) ImageBuildCachePrune (context.Context , bool ) (uint64 , error ) {
95
95
return 0 , f .DefaultErr
96
96
}
97
97
98
98
// ImageLocalDigests .
99
- func (f * EngineWithErr ) ImageLocalDigests (ctx context.Context , image string ) ([]string , error ) {
99
+ func (f * EngineWithErr ) ImageLocalDigests (context.Context , string ) ([]string , error ) {
100
100
return nil , f .DefaultErr
101
101
}
102
102
103
103
// ImageRemoteDigest .
104
- func (f * EngineWithErr ) ImageRemoteDigest (ctx context.Context , image string ) (string , error ) {
104
+ func (f * EngineWithErr ) ImageRemoteDigest (context.Context , string ) (string , error ) {
105
105
return "" , f .DefaultErr
106
106
}
107
107
108
108
// ImageBuildFromExist .
109
- func (f * EngineWithErr ) ImageBuildFromExist (ctx context.Context , ID string , refs []string , user string ) (string , error ) {
109
+ func (f * EngineWithErr ) ImageBuildFromExist (context.Context , string , []string , string ) (string , error ) {
110
110
return "" , f .DefaultErr
111
111
}
112
112
113
113
// BuildRefs .
114
- func (f * EngineWithErr ) BuildRefs (ctx context.Context , opts * enginetypes.BuildRefOptions ) []string {
114
+ func (f * EngineWithErr ) BuildRefs (context.Context , * enginetypes.BuildRefOptions ) []string {
115
115
return nil
116
116
}
117
117
118
118
// BuildContent .
119
- func (f * EngineWithErr ) BuildContent (ctx context.Context , scm coresource.Source , opts * enginetypes.BuildContentOptions ) (string , io.Reader , error ) {
119
+ func (f * EngineWithErr ) BuildContent (context.Context , coresource.Source , * enginetypes.BuildContentOptions ) (string , io.Reader , error ) {
120
120
return "" , nil , f .DefaultErr
121
121
}
122
122
123
123
// VirtualizationCreate .
124
- func (f * EngineWithErr ) VirtualizationCreate (ctx context.Context , opts * enginetypes.VirtualizationCreateOptions ) (* enginetypes.VirtualizationCreated , error ) {
124
+ func (f * EngineWithErr ) VirtualizationCreate (context.Context , * enginetypes.VirtualizationCreateOptions ) (* enginetypes.VirtualizationCreated , error ) {
125
125
return nil , f .DefaultErr
126
126
}
127
127
128
128
// VirtualizationCopyTo .
129
- func (f * EngineWithErr ) VirtualizationCopyTo (ctx context.Context , ID , target string , content []byte , uid , gid int , mode int64 ) error {
129
+ func (f * EngineWithErr ) VirtualizationCopyTo (context.Context , string , string , []byte , int , int , int64 ) error {
130
130
return f .DefaultErr
131
131
}
132
132
133
133
// VirtualizationStart .
134
- func (f * EngineWithErr ) VirtualizationStart (ctx context.Context , ID string ) error {
134
+ func (f * EngineWithErr ) VirtualizationStart (context.Context , string ) error {
135
135
return f .DefaultErr
136
136
}
137
137
138
138
// VirtualizationStop .
139
- func (f * EngineWithErr ) VirtualizationStop (ctx context.Context , ID string , gracefulTimeout time.Duration ) error {
139
+ func (f * EngineWithErr ) VirtualizationStop (context.Context , string , time.Duration ) error {
140
140
return f .DefaultErr
141
141
}
142
142
143
143
// VirtualizationRemove .
144
- func (f * EngineWithErr ) VirtualizationRemove (ctx context.Context , ID string , volumes , force bool ) error {
144
+ func (f * EngineWithErr ) VirtualizationRemove (context.Context , string , bool , bool ) error {
145
145
return f .DefaultErr
146
146
}
147
147
148
148
// VirtualizationInspect .
149
- func (f * EngineWithErr ) VirtualizationInspect (ctx context.Context , ID string ) (* enginetypes.VirtualizationInfo , error ) {
149
+ func (f * EngineWithErr ) VirtualizationInspect (context.Context , string ) (* enginetypes.VirtualizationInfo , error ) {
150
150
return nil , f .DefaultErr
151
151
}
152
152
153
153
// VirtualizationLogs .
154
- func (f * EngineWithErr ) VirtualizationLogs (ctx context.Context , opts * enginetypes.VirtualizationLogStreamOptions ) (stdout , stderr io.ReadCloser , err error ) {
154
+ func (f * EngineWithErr ) VirtualizationLogs (context.Context , * enginetypes.VirtualizationLogStreamOptions ) (stdout , stderr io.ReadCloser , err error ) {
155
155
return nil , nil , f .DefaultErr
156
156
}
157
157
158
158
// VirtualizationAttach .
159
- func (f * EngineWithErr ) VirtualizationAttach (ctx context.Context , ID string , stream , openStdin bool ) (stdout , stderr io.ReadCloser , stdin io.WriteCloser , err error ) {
159
+ func (f * EngineWithErr ) VirtualizationAttach (context.Context , string , bool , bool ) (stdout , stderr io.ReadCloser , stdin io.WriteCloser , err error ) {
160
160
return nil , nil , nil , f .DefaultErr
161
161
}
162
162
163
163
// VirtualizationResize .
164
- func (f * EngineWithErr ) VirtualizationResize (ctx context.Context , ID string , height , width uint ) error {
164
+ func (f * EngineWithErr ) VirtualizationResize (context.Context , string , uint , uint ) error {
165
165
return f .DefaultErr
166
166
}
167
167
168
168
// VirtualizationWait .
169
- func (f * EngineWithErr ) VirtualizationWait (ctx context.Context , ID , state string ) (* enginetypes.VirtualizationWaitResult , error ) {
169
+ func (f * EngineWithErr ) VirtualizationWait (context.Context , string , string ) (* enginetypes.VirtualizationWaitResult , error ) {
170
170
return nil , f .DefaultErr
171
171
}
172
172
173
173
// VirtualizationUpdateResource .
174
- func (f * EngineWithErr ) VirtualizationUpdateResource (ctx context.Context , ID string , engineParams resourcetypes.Resources ) error {
174
+ func (f * EngineWithErr ) VirtualizationUpdateResource (context.Context , string , resourcetypes.Resources ) error {
175
175
return f .DefaultErr
176
176
}
177
177
178
178
// VirtualizationCopyFrom .
179
- func (f * EngineWithErr ) VirtualizationCopyFrom (ctx context.Context , ID , path string ) (content []byte , uid , gid int , mode int64 , _ error ) {
179
+ func (f * EngineWithErr ) VirtualizationCopyFrom (context.Context , string , string ) (content []byte , uid , gid int , mode int64 , _ error ) {
180
180
return nil , 0 , 0 , 0 , f .DefaultErr
181
181
}
0 commit comments