|
|
@@ -27,6 +27,7 @@ import (
|
|
|
swarm "github.com/docker/docker/api/types/swarm"
|
|
|
system "github.com/docker/docker/api/types/system"
|
|
|
volume "github.com/docker/docker/api/types/volume"
|
|
|
+ client "github.com/docker/docker/client"
|
|
|
v1 "github.com/opencontainers/image-spec/specs-go/v1"
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
|
)
|
|
|
@@ -244,10 +245,10 @@ func (mr *MockAPIClientMockRecorder) ContainerAttach(arg0, arg1, arg2 any) *gomo
|
|
|
}
|
|
|
|
|
|
// ContainerCommit mocks base method.
|
|
|
-func (m *MockAPIClient) ContainerCommit(arg0 context.Context, arg1 string, arg2 container.CommitOptions) (types.IDResponse, error) {
|
|
|
+func (m *MockAPIClient) ContainerCommit(arg0 context.Context, arg1 string, arg2 container.CommitOptions) (container.CommitResponse, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
ret := m.ctrl.Call(m, "ContainerCommit", arg0, arg1, arg2)
|
|
|
- ret0, _ := ret[0].(types.IDResponse)
|
|
|
+ ret0, _ := ret[0].(container.CommitResponse)
|
|
|
ret1, _ := ret[1].(error)
|
|
|
return ret0, ret1
|
|
|
}
|
|
|
@@ -304,10 +305,10 @@ func (mr *MockAPIClientMockRecorder) ContainerExecAttach(arg0, arg1, arg2 any) *
|
|
|
}
|
|
|
|
|
|
// ContainerExecCreate mocks base method.
|
|
|
-func (m *MockAPIClient) ContainerExecCreate(arg0 context.Context, arg1 string, arg2 container.ExecOptions) (types.IDResponse, error) {
|
|
|
+func (m *MockAPIClient) ContainerExecCreate(arg0 context.Context, arg1 string, arg2 container.ExecOptions) (container.ExecCreateResponse, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
ret := m.ctrl.Call(m, "ContainerExecCreate", arg0, arg1, arg2)
|
|
|
- ret0, _ := ret[0].(types.IDResponse)
|
|
|
+ ret0, _ := ret[0].(container.ExecCreateResponse)
|
|
|
ret1, _ := ret[1].(error)
|
|
|
return ret0, ret1
|
|
|
}
|
|
|
@@ -377,10 +378,10 @@ func (mr *MockAPIClientMockRecorder) ContainerExport(arg0, arg1 any) *gomock.Cal
|
|
|
}
|
|
|
|
|
|
// ContainerInspect mocks base method.
|
|
|
-func (m *MockAPIClient) ContainerInspect(arg0 context.Context, arg1 string) (types.ContainerJSON, error) {
|
|
|
+func (m *MockAPIClient) ContainerInspect(arg0 context.Context, arg1 string) (container.InspectResponse, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
ret := m.ctrl.Call(m, "ContainerInspect", arg0, arg1)
|
|
|
- ret0, _ := ret[0].(types.ContainerJSON)
|
|
|
+ ret0, _ := ret[0].(container.InspectResponse)
|
|
|
ret1, _ := ret[1].(error)
|
|
|
return ret0, ret1
|
|
|
}
|
|
|
@@ -392,10 +393,10 @@ func (mr *MockAPIClientMockRecorder) ContainerInspect(arg0, arg1 any) *gomock.Ca
|
|
|
}
|
|
|
|
|
|
// ContainerInspectWithRaw mocks base method.
|
|
|
-func (m *MockAPIClient) ContainerInspectWithRaw(arg0 context.Context, arg1 string, arg2 bool) (types.ContainerJSON, []byte, error) {
|
|
|
+func (m *MockAPIClient) ContainerInspectWithRaw(arg0 context.Context, arg1 string, arg2 bool) (container.InspectResponse, []byte, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
ret := m.ctrl.Call(m, "ContainerInspectWithRaw", arg0, arg1, arg2)
|
|
|
- ret0, _ := ret[0].(types.ContainerJSON)
|
|
|
+ ret0, _ := ret[0].(container.InspectResponse)
|
|
|
ret1, _ := ret[1].([]byte)
|
|
|
ret2, _ := ret[2].(error)
|
|
|
return ret0, ret1, ret2
|
|
|
@@ -422,10 +423,10 @@ func (mr *MockAPIClientMockRecorder) ContainerKill(arg0, arg1, arg2 any) *gomock
|
|
|
}
|
|
|
|
|
|
// ContainerList mocks base method.
|
|
|
-func (m *MockAPIClient) ContainerList(arg0 context.Context, arg1 container.ListOptions) ([]types.Container, error) {
|
|
|
+func (m *MockAPIClient) ContainerList(arg0 context.Context, arg1 container.ListOptions) ([]container.Summary, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
ret := m.ctrl.Call(m, "ContainerList", arg0, arg1)
|
|
|
- ret0, _ := ret[0].([]types.Container)
|
|
|
+ ret0, _ := ret[0].([]container.Summary)
|
|
|
ret1, _ := ret[1].(error)
|
|
|
return ret0, ret1
|
|
|
}
|
|
|
@@ -595,10 +596,10 @@ func (mr *MockAPIClientMockRecorder) ContainerStop(arg0, arg1, arg2 any) *gomock
|
|
|
}
|
|
|
|
|
|
// ContainerTop mocks base method.
|
|
|
-func (m *MockAPIClient) ContainerTop(arg0 context.Context, arg1 string, arg2 []string) (container.ContainerTopOKBody, error) {
|
|
|
+func (m *MockAPIClient) ContainerTop(arg0 context.Context, arg1 string, arg2 []string) (container.TopResponse, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
ret := m.ctrl.Call(m, "ContainerTop", arg0, arg1, arg2)
|
|
|
- ret0, _ := ret[0].(container.ContainerTopOKBody)
|
|
|
+ ret0, _ := ret[0].(container.TopResponse)
|
|
|
ret1, _ := ret[1].(error)
|
|
|
return ret0, ret1
|
|
|
}
|
|
|
@@ -624,10 +625,10 @@ func (mr *MockAPIClientMockRecorder) ContainerUnpause(arg0, arg1 any) *gomock.Ca
|
|
|
}
|
|
|
|
|
|
// ContainerUpdate mocks base method.
|
|
|
-func (m *MockAPIClient) ContainerUpdate(arg0 context.Context, arg1 string, arg2 container.UpdateConfig) (container.ContainerUpdateOKBody, error) {
|
|
|
+func (m *MockAPIClient) ContainerUpdate(arg0 context.Context, arg1 string, arg2 container.UpdateConfig) (container.UpdateResponse, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
ret := m.ctrl.Call(m, "ContainerUpdate", arg0, arg1, arg2)
|
|
|
- ret0, _ := ret[0].(container.ContainerUpdateOKBody)
|
|
|
+ ret0, _ := ret[0].(container.UpdateResponse)
|
|
|
ret1, _ := ret[1].(error)
|
|
|
return ret0, ret1
|
|
|
}
|
|
|
@@ -831,18 +832,23 @@ func (mr *MockAPIClientMockRecorder) ImageCreate(arg0, arg1, arg2 any) *gomock.C
|
|
|
}
|
|
|
|
|
|
// ImageHistory mocks base method.
|
|
|
-func (m *MockAPIClient) ImageHistory(arg0 context.Context, arg1 string) ([]image.HistoryResponseItem, error) {
|
|
|
+func (m *MockAPIClient) ImageHistory(arg0 context.Context, arg1 string, arg2 ...client.ImageHistoryOption) ([]image.HistoryResponseItem, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
- ret := m.ctrl.Call(m, "ImageHistory", arg0, arg1)
|
|
|
+ varargs := []any{arg0, arg1}
|
|
|
+ for _, a := range arg2 {
|
|
|
+ varargs = append(varargs, a)
|
|
|
+ }
|
|
|
+ ret := m.ctrl.Call(m, "ImageHistory", varargs...)
|
|
|
ret0, _ := ret[0].([]image.HistoryResponseItem)
|
|
|
ret1, _ := ret[1].(error)
|
|
|
return ret0, ret1
|
|
|
}
|
|
|
|
|
|
// ImageHistory indicates an expected call of ImageHistory.
|
|
|
-func (mr *MockAPIClientMockRecorder) ImageHistory(arg0, arg1 any) *gomock.Call {
|
|
|
+func (mr *MockAPIClientMockRecorder) ImageHistory(arg0, arg1 any, arg2 ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageHistory", reflect.TypeOf((*MockAPIClient)(nil).ImageHistory), arg0, arg1)
|
|
|
+ varargs := append([]any{arg0, arg1}, arg2...)
|
|
|
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageHistory", reflect.TypeOf((*MockAPIClient)(nil).ImageHistory), varargs...)
|
|
|
}
|
|
|
|
|
|
// ImageImport mocks base method.
|
|
|
@@ -860,11 +866,31 @@ func (mr *MockAPIClientMockRecorder) ImageImport(arg0, arg1, arg2, arg3 any) *go
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageImport", reflect.TypeOf((*MockAPIClient)(nil).ImageImport), arg0, arg1, arg2, arg3)
|
|
|
}
|
|
|
|
|
|
+// ImageInspect mocks base method.
|
|
|
+func (m *MockAPIClient) ImageInspect(arg0 context.Context, arg1 string, arg2 ...client.ImageInspectOption) (image.InspectResponse, error) {
|
|
|
+ m.ctrl.T.Helper()
|
|
|
+ varargs := []any{arg0, arg1}
|
|
|
+ for _, a := range arg2 {
|
|
|
+ varargs = append(varargs, a)
|
|
|
+ }
|
|
|
+ ret := m.ctrl.Call(m, "ImageInspect", varargs...)
|
|
|
+ ret0, _ := ret[0].(image.InspectResponse)
|
|
|
+ ret1, _ := ret[1].(error)
|
|
|
+ return ret0, ret1
|
|
|
+}
|
|
|
+
|
|
|
+// ImageInspect indicates an expected call of ImageInspect.
|
|
|
+func (mr *MockAPIClientMockRecorder) ImageInspect(arg0, arg1 any, arg2 ...any) *gomock.Call {
|
|
|
+ mr.mock.ctrl.T.Helper()
|
|
|
+ varargs := append([]any{arg0, arg1}, arg2...)
|
|
|
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageInspect", reflect.TypeOf((*MockAPIClient)(nil).ImageInspect), varargs...)
|
|
|
+}
|
|
|
+
|
|
|
// ImageInspectWithRaw mocks base method.
|
|
|
-func (m *MockAPIClient) ImageInspectWithRaw(arg0 context.Context, arg1 string) (types.ImageInspect, []byte, error) {
|
|
|
+func (m *MockAPIClient) ImageInspectWithRaw(arg0 context.Context, arg1 string) (image.InspectResponse, []byte, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
ret := m.ctrl.Call(m, "ImageInspectWithRaw", arg0, arg1)
|
|
|
- ret0, _ := ret[0].(types.ImageInspect)
|
|
|
+ ret0, _ := ret[0].(image.InspectResponse)
|
|
|
ret1, _ := ret[1].([]byte)
|
|
|
ret2, _ := ret[2].(error)
|
|
|
return ret0, ret1, ret2
|
|
|
@@ -892,18 +918,23 @@ func (mr *MockAPIClientMockRecorder) ImageList(arg0, arg1 any) *gomock.Call {
|
|
|
}
|
|
|
|
|
|
// ImageLoad mocks base method.
|
|
|
-func (m *MockAPIClient) ImageLoad(arg0 context.Context, arg1 io.Reader, arg2 bool) (image.LoadResponse, error) {
|
|
|
+func (m *MockAPIClient) ImageLoad(arg0 context.Context, arg1 io.Reader, arg2 ...client.ImageLoadOption) (image.LoadResponse, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
- ret := m.ctrl.Call(m, "ImageLoad", arg0, arg1, arg2)
|
|
|
+ varargs := []any{arg0, arg1}
|
|
|
+ for _, a := range arg2 {
|
|
|
+ varargs = append(varargs, a)
|
|
|
+ }
|
|
|
+ ret := m.ctrl.Call(m, "ImageLoad", varargs...)
|
|
|
ret0, _ := ret[0].(image.LoadResponse)
|
|
|
ret1, _ := ret[1].(error)
|
|
|
return ret0, ret1
|
|
|
}
|
|
|
|
|
|
// ImageLoad indicates an expected call of ImageLoad.
|
|
|
-func (mr *MockAPIClientMockRecorder) ImageLoad(arg0, arg1, arg2 any) *gomock.Call {
|
|
|
+func (mr *MockAPIClientMockRecorder) ImageLoad(arg0, arg1 any, arg2 ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageLoad", reflect.TypeOf((*MockAPIClient)(nil).ImageLoad), arg0, arg1, arg2)
|
|
|
+ varargs := append([]any{arg0, arg1}, arg2...)
|
|
|
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageLoad", reflect.TypeOf((*MockAPIClient)(nil).ImageLoad), varargs...)
|
|
|
}
|
|
|
|
|
|
// ImagePull mocks base method.
|
|
|
@@ -952,18 +983,23 @@ func (mr *MockAPIClientMockRecorder) ImageRemove(arg0, arg1, arg2 any) *gomock.C
|
|
|
}
|
|
|
|
|
|
// ImageSave mocks base method.
|
|
|
-func (m *MockAPIClient) ImageSave(arg0 context.Context, arg1 []string) (io.ReadCloser, error) {
|
|
|
+func (m *MockAPIClient) ImageSave(arg0 context.Context, arg1 []string, arg2 ...client.ImageSaveOption) (io.ReadCloser, error) {
|
|
|
m.ctrl.T.Helper()
|
|
|
- ret := m.ctrl.Call(m, "ImageSave", arg0, arg1)
|
|
|
+ varargs := []any{arg0, arg1}
|
|
|
+ for _, a := range arg2 {
|
|
|
+ varargs = append(varargs, a)
|
|
|
+ }
|
|
|
+ ret := m.ctrl.Call(m, "ImageSave", varargs...)
|
|
|
ret0, _ := ret[0].(io.ReadCloser)
|
|
|
ret1, _ := ret[1].(error)
|
|
|
return ret0, ret1
|
|
|
}
|
|
|
|
|
|
// ImageSave indicates an expected call of ImageSave.
|
|
|
-func (mr *MockAPIClientMockRecorder) ImageSave(arg0, arg1 any) *gomock.Call {
|
|
|
+func (mr *MockAPIClientMockRecorder) ImageSave(arg0, arg1 any, arg2 ...any) *gomock.Call {
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageSave", reflect.TypeOf((*MockAPIClient)(nil).ImageSave), arg0, arg1)
|
|
|
+ varargs := append([]any{arg0, arg1}, arg2...)
|
|
|
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageSave", reflect.TypeOf((*MockAPIClient)(nil).ImageSave), varargs...)
|
|
|
}
|
|
|
|
|
|
// ImageSearch mocks base method.
|