From 74cc091225d52af16228dfef85574888aa7ee798 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Wed, 13 Dec 2023 14:01:36 +0100 Subject: [PATCH] github.com/golang/mock is deprecated Signed-off-by: Nicolas De Loof --- Makefile | 2 +- cmd/compose/create_test.go | 2 +- cmd/compose/ps_test.go | 2 +- go.mod | 2 +- go.sum | 8 +- pkg/compose/convergence_test.go | 2 +- pkg/compose/down_test.go | 2 +- pkg/compose/kill_test.go | 2 +- pkg/compose/logs_test.go | 2 +- pkg/compose/ps_test.go | 2 +- pkg/compose/stop_test.go | 2 +- pkg/compose/viz_test.go | 2 +- pkg/compose/watch_test.go | 2 +- pkg/mocks/mock_docker_api.go | 290 ++++++++++++++------------- pkg/mocks/mock_docker_cli.go | 18 +- pkg/mocks/mock_docker_compose_api.go | 78 +++---- pkg/prompt/prompt_mock.go | 2 +- 17 files changed, 215 insertions(+), 205 deletions(-) diff --git a/Makefile b/Makefile index 3a5c9cf6f4a..2bce9709045 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ build-and-e2e-compose-standalone: build e2e-compose-standalone ## Compile the co .PHONY: mocks mocks: - mockgen --version >/dev/null 2>&1 || go install github.com/golang/mock/mockgen@v1.6.0 + mockgen --version >/dev/null 2>&1 || go install go.uber.org/mock/mockgen@v0.3.0 mockgen -destination pkg/mocks/mock_docker_cli.go -package mocks github.com/docker/cli/cli/command Cli mockgen -destination pkg/mocks/mock_docker_api.go -package mocks github.com/docker/docker/client APIClient mockgen -destination pkg/mocks/mock_docker_compose_api.go -package mocks -source=./pkg/api/api.go Service diff --git a/cmd/compose/create_test.go b/cmd/compose/create_test.go index 77a6e9e1350..445f81ecb0b 100644 --- a/cmd/compose/create_test.go +++ b/cmd/compose/create_test.go @@ -25,9 +25,9 @@ import ( "github.com/davecgh/go-spew/spew" "github.com/docker/compose/v2/pkg/api" "github.com/docker/compose/v2/pkg/mocks" - "github.com/golang/mock/gomock" "github.com/google/go-cmp/cmp" "github.com/stretchr/testify/require" + "go.uber.org/mock/gomock" ) func TestRunCreate(t *testing.T) { diff --git a/cmd/compose/ps_test.go b/cmd/compose/ps_test.go index c526f8316d7..b0eb539f1dc 100644 --- a/cmd/compose/ps_test.go +++ b/cmd/compose/ps_test.go @@ -26,8 +26,8 @@ import ( "github.com/docker/cli/cli/streams" "github.com/docker/compose/v2/pkg/api" "github.com/docker/compose/v2/pkg/mocks" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" + "go.uber.org/mock/gomock" ) func TestPsTable(t *testing.T) { diff --git a/go.mod b/go.mod index b6c7ba0e3f0..7ef52c24638 100644 --- a/go.mod +++ b/go.mod @@ -18,7 +18,6 @@ require ( github.com/docker/go-connections v0.4.0 github.com/docker/go-units v0.5.0 github.com/fsnotify/fsevents v0.1.1 - github.com/golang/mock v1.6.0 github.com/google/go-cmp v0.6.0 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-version v1.6.0 @@ -44,6 +43,7 @@ require ( go.opentelemetry.io/otel/sdk v1.14.0 go.opentelemetry.io/otel/trace v1.14.0 go.uber.org/goleak v1.3.0 + go.uber.org/mock v0.3.0 golang.org/x/exp v0.0.0-20230713183714-613f0c0eb8a1 golang.org/x/sync v0.5.0 golang.org/x/sys v0.15.0 diff --git a/go.sum b/go.sum index 94b2e9197da..7dcd48c5799 100644 --- a/go.sum +++ b/go.sum @@ -265,8 +265,6 @@ github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -580,7 +578,6 @@ github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= @@ -617,6 +614,8 @@ go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/mock v0.3.0 h1:3mUxI1No2/60yUYax92Pt8eNOEecx2D3lcXZh2NEZJo= +go.uber.org/mock v0.3.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -663,7 +662,6 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.11.0 h1:bUO06HqtnRcc/7l71XBe4WcqTZ+3AH1J59zWDDwLKgU= golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= @@ -719,7 +717,6 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= @@ -834,7 +831,6 @@ golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= diff --git a/pkg/compose/convergence_test.go b/pkg/compose/convergence_test.go index eca2e500689..32917cb6610 100644 --- a/pkg/compose/convergence_test.go +++ b/pkg/compose/convergence_test.go @@ -26,7 +26,7 @@ import ( moby "github.com/docker/docker/api/types" containerType "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/filters" - "github.com/golang/mock/gomock" + "go.uber.org/mock/gomock" "gotest.tools/v3/assert" "github.com/docker/compose/v2/pkg/api" diff --git a/pkg/compose/down_test.go b/pkg/compose/down_test.go index 08f3dfbfb09..9edcb40eec2 100644 --- a/pkg/compose/down_test.go +++ b/pkg/compose/down_test.go @@ -31,7 +31,7 @@ import ( "github.com/docker/docker/api/types/image" "github.com/docker/docker/api/types/volume" "github.com/docker/docker/errdefs" - "github.com/golang/mock/gomock" + "go.uber.org/mock/gomock" "gotest.tools/v3/assert" compose "github.com/docker/compose/v2/pkg/api" diff --git a/pkg/compose/kill_test.go b/pkg/compose/kill_test.go index 66a66f31531..16c16eb6157 100644 --- a/pkg/compose/kill_test.go +++ b/pkg/compose/kill_test.go @@ -27,7 +27,7 @@ import ( containerType "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/volume" - "github.com/golang/mock/gomock" + "go.uber.org/mock/gomock" "gotest.tools/v3/assert" compose "github.com/docker/compose/v2/pkg/api" diff --git a/pkg/compose/logs_test.go b/pkg/compose/logs_test.go index dad51f0ea87..561d395a3b0 100644 --- a/pkg/compose/logs_test.go +++ b/pkg/compose/logs_test.go @@ -28,9 +28,9 @@ import ( containerType "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/filters" "github.com/docker/docker/pkg/stdcopy" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "go.uber.org/mock/gomock" compose "github.com/docker/compose/v2/pkg/api" ) diff --git a/pkg/compose/ps_test.go b/pkg/compose/ps_test.go index 7c60c5a7338..a8d21b24f8f 100644 --- a/pkg/compose/ps_test.go +++ b/pkg/compose/ps_test.go @@ -22,7 +22,7 @@ import ( "testing" containerType "github.com/docker/docker/api/types/container" - "github.com/golang/mock/gomock" + "go.uber.org/mock/gomock" "gotest.tools/v3/assert" compose "github.com/docker/compose/v2/pkg/api" diff --git a/pkg/compose/stop_test.go b/pkg/compose/stop_test.go index a0ac572b06f..563a184ca73 100644 --- a/pkg/compose/stop_test.go +++ b/pkg/compose/stop_test.go @@ -30,7 +30,7 @@ import ( moby "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/volume" - "github.com/golang/mock/gomock" + "go.uber.org/mock/gomock" "gotest.tools/v3/assert" ) diff --git a/pkg/compose/viz_test.go b/pkg/compose/viz_test.go index 5591996fb59..7093de51d73 100644 --- a/pkg/compose/viz_test.go +++ b/pkg/compose/viz_test.go @@ -22,8 +22,8 @@ import ( "testing" "github.com/compose-spec/compose-go/v2/types" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" + "go.uber.org/mock/gomock" compose "github.com/docker/compose/v2/pkg/api" "github.com/docker/compose/v2/pkg/mocks" diff --git a/pkg/compose/watch_test.go b/pkg/compose/watch_test.go index c444182d347..fc39ee7d34c 100644 --- a/pkg/compose/watch_test.go +++ b/pkg/compose/watch_test.go @@ -26,9 +26,9 @@ import ( "github.com/docker/compose/v2/pkg/mocks" "github.com/docker/compose/v2/pkg/watch" moby "github.com/docker/docker/api/types" - "github.com/golang/mock/gomock" "github.com/jonboulle/clockwork" "github.com/stretchr/testify/require" + "go.uber.org/mock/gomock" "gotest.tools/v3/assert" ) diff --git a/pkg/mocks/mock_docker_api.go b/pkg/mocks/mock_docker_api.go index 71539ae1895..60aea46c09d 100644 --- a/pkg/mocks/mock_docker_api.go +++ b/pkg/mocks/mock_docker_api.go @@ -1,6 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: github.com/docker/docker/client (interfaces: APIClient) - +// +// Generated by this command: +// +// mockgen -destination pkg/mocks/mock_docker_api.go -package mocks github.com/docker/docker/client APIClient +// // Package mocks is a generated GoMock package. package mocks @@ -12,6 +16,7 @@ import ( reflect "reflect" types "github.com/docker/docker/api/types" + checkpoint "github.com/docker/docker/api/types/checkpoint" container "github.com/docker/docker/api/types/container" events "github.com/docker/docker/api/types/events" filters "github.com/docker/docker/api/types/filters" @@ -19,9 +24,10 @@ import ( network "github.com/docker/docker/api/types/network" registry "github.com/docker/docker/api/types/registry" swarm "github.com/docker/docker/api/types/swarm" + system "github.com/docker/docker/api/types/system" volume "github.com/docker/docker/api/types/volume" - gomock "github.com/golang/mock/gomock" v1 "github.com/opencontainers/image-spec/specs-go/v1" + gomock "go.uber.org/mock/gomock" ) // MockAPIClient is a mock of APIClient interface. @@ -57,7 +63,7 @@ func (m *MockAPIClient) BuildCachePrune(arg0 context.Context, arg1 types.BuildCa } // BuildCachePrune indicates an expected call of BuildCachePrune. -func (mr *MockAPIClientMockRecorder) BuildCachePrune(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) BuildCachePrune(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildCachePrune", reflect.TypeOf((*MockAPIClient)(nil).BuildCachePrune), arg0, arg1) } @@ -71,13 +77,13 @@ func (m *MockAPIClient) BuildCancel(arg0 context.Context, arg1 string) error { } // BuildCancel indicates an expected call of BuildCancel. -func (mr *MockAPIClientMockRecorder) BuildCancel(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) BuildCancel(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildCancel", reflect.TypeOf((*MockAPIClient)(nil).BuildCancel), arg0, arg1) } // CheckpointCreate mocks base method. -func (m *MockAPIClient) CheckpointCreate(arg0 context.Context, arg1 string, arg2 types.CheckpointCreateOptions) error { +func (m *MockAPIClient) CheckpointCreate(arg0 context.Context, arg1 string, arg2 checkpoint.CreateOptions) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CheckpointCreate", arg0, arg1, arg2) ret0, _ := ret[0].(error) @@ -85,13 +91,13 @@ func (m *MockAPIClient) CheckpointCreate(arg0 context.Context, arg1 string, arg2 } // CheckpointCreate indicates an expected call of CheckpointCreate. -func (mr *MockAPIClientMockRecorder) CheckpointCreate(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) CheckpointCreate(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckpointCreate", reflect.TypeOf((*MockAPIClient)(nil).CheckpointCreate), arg0, arg1, arg2) } // CheckpointDelete mocks base method. -func (m *MockAPIClient) CheckpointDelete(arg0 context.Context, arg1 string, arg2 types.CheckpointDeleteOptions) error { +func (m *MockAPIClient) CheckpointDelete(arg0 context.Context, arg1 string, arg2 checkpoint.DeleteOptions) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CheckpointDelete", arg0, arg1, arg2) ret0, _ := ret[0].(error) @@ -99,22 +105,22 @@ func (m *MockAPIClient) CheckpointDelete(arg0 context.Context, arg1 string, arg2 } // CheckpointDelete indicates an expected call of CheckpointDelete. -func (mr *MockAPIClientMockRecorder) CheckpointDelete(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) CheckpointDelete(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckpointDelete", reflect.TypeOf((*MockAPIClient)(nil).CheckpointDelete), arg0, arg1, arg2) } // CheckpointList mocks base method. -func (m *MockAPIClient) CheckpointList(arg0 context.Context, arg1 string, arg2 types.CheckpointListOptions) ([]types.Checkpoint, error) { +func (m *MockAPIClient) CheckpointList(arg0 context.Context, arg1 string, arg2 checkpoint.ListOptions) ([]checkpoint.Summary, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CheckpointList", arg0, arg1, arg2) - ret0, _ := ret[0].([]types.Checkpoint) + ret0, _ := ret[0].([]checkpoint.Summary) ret1, _ := ret[1].(error) return ret0, ret1 } // CheckpointList indicates an expected call of CheckpointList. -func (mr *MockAPIClientMockRecorder) CheckpointList(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) CheckpointList(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckpointList", reflect.TypeOf((*MockAPIClient)(nil).CheckpointList), arg0, arg1, arg2) } @@ -157,7 +163,7 @@ func (m *MockAPIClient) ConfigCreate(arg0 context.Context, arg1 swarm.ConfigSpec } // ConfigCreate indicates an expected call of ConfigCreate. -func (mr *MockAPIClientMockRecorder) ConfigCreate(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ConfigCreate(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigCreate", reflect.TypeOf((*MockAPIClient)(nil).ConfigCreate), arg0, arg1) } @@ -173,7 +179,7 @@ func (m *MockAPIClient) ConfigInspectWithRaw(arg0 context.Context, arg1 string) } // ConfigInspectWithRaw indicates an expected call of ConfigInspectWithRaw. -func (mr *MockAPIClientMockRecorder) ConfigInspectWithRaw(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ConfigInspectWithRaw(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigInspectWithRaw", reflect.TypeOf((*MockAPIClient)(nil).ConfigInspectWithRaw), arg0, arg1) } @@ -188,7 +194,7 @@ func (m *MockAPIClient) ConfigList(arg0 context.Context, arg1 types.ConfigListOp } // ConfigList indicates an expected call of ConfigList. -func (mr *MockAPIClientMockRecorder) ConfigList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ConfigList(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigList", reflect.TypeOf((*MockAPIClient)(nil).ConfigList), arg0, arg1) } @@ -202,7 +208,7 @@ func (m *MockAPIClient) ConfigRemove(arg0 context.Context, arg1 string) error { } // ConfigRemove indicates an expected call of ConfigRemove. -func (mr *MockAPIClientMockRecorder) ConfigRemove(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ConfigRemove(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigRemove", reflect.TypeOf((*MockAPIClient)(nil).ConfigRemove), arg0, arg1) } @@ -216,13 +222,13 @@ func (m *MockAPIClient) ConfigUpdate(arg0 context.Context, arg1 string, arg2 swa } // ConfigUpdate indicates an expected call of ConfigUpdate. -func (mr *MockAPIClientMockRecorder) ConfigUpdate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ConfigUpdate(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigUpdate", reflect.TypeOf((*MockAPIClient)(nil).ConfigUpdate), arg0, arg1, arg2, arg3) } // ContainerAttach mocks base method. -func (m *MockAPIClient) ContainerAttach(arg0 context.Context, arg1 string, arg2 types.ContainerAttachOptions) (types.HijackedResponse, error) { +func (m *MockAPIClient) ContainerAttach(arg0 context.Context, arg1 string, arg2 container.AttachOptions) (types.HijackedResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ContainerAttach", arg0, arg1, arg2) ret0, _ := ret[0].(types.HijackedResponse) @@ -231,13 +237,13 @@ func (m *MockAPIClient) ContainerAttach(arg0 context.Context, arg1 string, arg2 } // ContainerAttach indicates an expected call of ContainerAttach. -func (mr *MockAPIClientMockRecorder) ContainerAttach(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerAttach(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerAttach", reflect.TypeOf((*MockAPIClient)(nil).ContainerAttach), arg0, arg1, arg2) } // ContainerCommit mocks base method. -func (m *MockAPIClient) ContainerCommit(arg0 context.Context, arg1 string, arg2 types.ContainerCommitOptions) (types.IDResponse, error) { +func (m *MockAPIClient) ContainerCommit(arg0 context.Context, arg1 string, arg2 container.CommitOptions) (types.IDResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ContainerCommit", arg0, arg1, arg2) ret0, _ := ret[0].(types.IDResponse) @@ -246,7 +252,7 @@ func (m *MockAPIClient) ContainerCommit(arg0 context.Context, arg1 string, arg2 } // ContainerCommit indicates an expected call of ContainerCommit. -func (mr *MockAPIClientMockRecorder) ContainerCommit(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerCommit(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerCommit", reflect.TypeOf((*MockAPIClient)(nil).ContainerCommit), arg0, arg1, arg2) } @@ -261,7 +267,7 @@ func (m *MockAPIClient) ContainerCreate(arg0 context.Context, arg1 *container.Co } // ContainerCreate indicates an expected call of ContainerCreate. -func (mr *MockAPIClientMockRecorder) ContainerCreate(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerCreate(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerCreate", reflect.TypeOf((*MockAPIClient)(nil).ContainerCreate), arg0, arg1, arg2, arg3, arg4, arg5) } @@ -276,7 +282,7 @@ func (m *MockAPIClient) ContainerDiff(arg0 context.Context, arg1 string) ([]cont } // ContainerDiff indicates an expected call of ContainerDiff. -func (mr *MockAPIClientMockRecorder) ContainerDiff(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerDiff(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerDiff", reflect.TypeOf((*MockAPIClient)(nil).ContainerDiff), arg0, arg1) } @@ -291,7 +297,7 @@ func (m *MockAPIClient) ContainerExecAttach(arg0 context.Context, arg1 string, a } // ContainerExecAttach indicates an expected call of ContainerExecAttach. -func (mr *MockAPIClientMockRecorder) ContainerExecAttach(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerExecAttach(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExecAttach", reflect.TypeOf((*MockAPIClient)(nil).ContainerExecAttach), arg0, arg1, arg2) } @@ -306,7 +312,7 @@ func (m *MockAPIClient) ContainerExecCreate(arg0 context.Context, arg1 string, a } // ContainerExecCreate indicates an expected call of ContainerExecCreate. -func (mr *MockAPIClientMockRecorder) ContainerExecCreate(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerExecCreate(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExecCreate", reflect.TypeOf((*MockAPIClient)(nil).ContainerExecCreate), arg0, arg1, arg2) } @@ -321,13 +327,13 @@ func (m *MockAPIClient) ContainerExecInspect(arg0 context.Context, arg1 string) } // ContainerExecInspect indicates an expected call of ContainerExecInspect. -func (mr *MockAPIClientMockRecorder) ContainerExecInspect(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerExecInspect(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExecInspect", reflect.TypeOf((*MockAPIClient)(nil).ContainerExecInspect), arg0, arg1) } // ContainerExecResize mocks base method. -func (m *MockAPIClient) ContainerExecResize(arg0 context.Context, arg1 string, arg2 types.ResizeOptions) error { +func (m *MockAPIClient) ContainerExecResize(arg0 context.Context, arg1 string, arg2 container.ResizeOptions) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ContainerExecResize", arg0, arg1, arg2) ret0, _ := ret[0].(error) @@ -335,7 +341,7 @@ func (m *MockAPIClient) ContainerExecResize(arg0 context.Context, arg1 string, a } // ContainerExecResize indicates an expected call of ContainerExecResize. -func (mr *MockAPIClientMockRecorder) ContainerExecResize(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerExecResize(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExecResize", reflect.TypeOf((*MockAPIClient)(nil).ContainerExecResize), arg0, arg1, arg2) } @@ -349,7 +355,7 @@ func (m *MockAPIClient) ContainerExecStart(arg0 context.Context, arg1 string, ar } // ContainerExecStart indicates an expected call of ContainerExecStart. -func (mr *MockAPIClientMockRecorder) ContainerExecStart(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerExecStart(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExecStart", reflect.TypeOf((*MockAPIClient)(nil).ContainerExecStart), arg0, arg1, arg2) } @@ -364,7 +370,7 @@ func (m *MockAPIClient) ContainerExport(arg0 context.Context, arg1 string) (io.R } // ContainerExport indicates an expected call of ContainerExport. -func (mr *MockAPIClientMockRecorder) ContainerExport(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerExport(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExport", reflect.TypeOf((*MockAPIClient)(nil).ContainerExport), arg0, arg1) } @@ -379,7 +385,7 @@ func (m *MockAPIClient) ContainerInspect(arg0 context.Context, arg1 string) (typ } // ContainerInspect indicates an expected call of ContainerInspect. -func (mr *MockAPIClientMockRecorder) ContainerInspect(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerInspect(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerInspect", reflect.TypeOf((*MockAPIClient)(nil).ContainerInspect), arg0, arg1) } @@ -395,7 +401,7 @@ func (m *MockAPIClient) ContainerInspectWithRaw(arg0 context.Context, arg1 strin } // ContainerInspectWithRaw indicates an expected call of ContainerInspectWithRaw. -func (mr *MockAPIClientMockRecorder) ContainerInspectWithRaw(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerInspectWithRaw(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerInspectWithRaw", reflect.TypeOf((*MockAPIClient)(nil).ContainerInspectWithRaw), arg0, arg1, arg2) } @@ -409,13 +415,13 @@ func (m *MockAPIClient) ContainerKill(arg0 context.Context, arg1, arg2 string) e } // ContainerKill indicates an expected call of ContainerKill. -func (mr *MockAPIClientMockRecorder) ContainerKill(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerKill(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerKill", reflect.TypeOf((*MockAPIClient)(nil).ContainerKill), arg0, arg1, arg2) } // ContainerList mocks base method. -func (m *MockAPIClient) ContainerList(arg0 context.Context, arg1 types.ContainerListOptions) ([]types.Container, error) { +func (m *MockAPIClient) ContainerList(arg0 context.Context, arg1 container.ListOptions) ([]types.Container, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ContainerList", arg0, arg1) ret0, _ := ret[0].([]types.Container) @@ -424,13 +430,13 @@ func (m *MockAPIClient) ContainerList(arg0 context.Context, arg1 types.Container } // ContainerList indicates an expected call of ContainerList. -func (mr *MockAPIClientMockRecorder) ContainerList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerList(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerList", reflect.TypeOf((*MockAPIClient)(nil).ContainerList), arg0, arg1) } // ContainerLogs mocks base method. -func (m *MockAPIClient) ContainerLogs(arg0 context.Context, arg1 string, arg2 types.ContainerLogsOptions) (io.ReadCloser, error) { +func (m *MockAPIClient) ContainerLogs(arg0 context.Context, arg1 string, arg2 container.LogsOptions) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ContainerLogs", arg0, arg1, arg2) ret0, _ := ret[0].(io.ReadCloser) @@ -439,7 +445,7 @@ func (m *MockAPIClient) ContainerLogs(arg0 context.Context, arg1 string, arg2 ty } // ContainerLogs indicates an expected call of ContainerLogs. -func (mr *MockAPIClientMockRecorder) ContainerLogs(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerLogs(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerLogs", reflect.TypeOf((*MockAPIClient)(nil).ContainerLogs), arg0, arg1, arg2) } @@ -453,13 +459,13 @@ func (m *MockAPIClient) ContainerPause(arg0 context.Context, arg1 string) error } // ContainerPause indicates an expected call of ContainerPause. -func (mr *MockAPIClientMockRecorder) ContainerPause(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerPause(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerPause", reflect.TypeOf((*MockAPIClient)(nil).ContainerPause), arg0, arg1) } // ContainerRemove mocks base method. -func (m *MockAPIClient) ContainerRemove(arg0 context.Context, arg1 string, arg2 types.ContainerRemoveOptions) error { +func (m *MockAPIClient) ContainerRemove(arg0 context.Context, arg1 string, arg2 container.RemoveOptions) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ContainerRemove", arg0, arg1, arg2) ret0, _ := ret[0].(error) @@ -467,7 +473,7 @@ func (m *MockAPIClient) ContainerRemove(arg0 context.Context, arg1 string, arg2 } // ContainerRemove indicates an expected call of ContainerRemove. -func (mr *MockAPIClientMockRecorder) ContainerRemove(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerRemove(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerRemove", reflect.TypeOf((*MockAPIClient)(nil).ContainerRemove), arg0, arg1, arg2) } @@ -481,13 +487,13 @@ func (m *MockAPIClient) ContainerRename(arg0 context.Context, arg1, arg2 string) } // ContainerRename indicates an expected call of ContainerRename. -func (mr *MockAPIClientMockRecorder) ContainerRename(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerRename(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerRename", reflect.TypeOf((*MockAPIClient)(nil).ContainerRename), arg0, arg1, arg2) } // ContainerResize mocks base method. -func (m *MockAPIClient) ContainerResize(arg0 context.Context, arg1 string, arg2 types.ResizeOptions) error { +func (m *MockAPIClient) ContainerResize(arg0 context.Context, arg1 string, arg2 container.ResizeOptions) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ContainerResize", arg0, arg1, arg2) ret0, _ := ret[0].(error) @@ -495,7 +501,7 @@ func (m *MockAPIClient) ContainerResize(arg0 context.Context, arg1 string, arg2 } // ContainerResize indicates an expected call of ContainerResize. -func (mr *MockAPIClientMockRecorder) ContainerResize(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerResize(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerResize", reflect.TypeOf((*MockAPIClient)(nil).ContainerResize), arg0, arg1, arg2) } @@ -509,13 +515,13 @@ func (m *MockAPIClient) ContainerRestart(arg0 context.Context, arg1 string, arg2 } // ContainerRestart indicates an expected call of ContainerRestart. -func (mr *MockAPIClientMockRecorder) ContainerRestart(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerRestart(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerRestart", reflect.TypeOf((*MockAPIClient)(nil).ContainerRestart), arg0, arg1, arg2) } // ContainerStart mocks base method. -func (m *MockAPIClient) ContainerStart(arg0 context.Context, arg1 string, arg2 types.ContainerStartOptions) error { +func (m *MockAPIClient) ContainerStart(arg0 context.Context, arg1 string, arg2 container.StartOptions) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ContainerStart", arg0, arg1, arg2) ret0, _ := ret[0].(error) @@ -523,7 +529,7 @@ func (m *MockAPIClient) ContainerStart(arg0 context.Context, arg1 string, arg2 t } // ContainerStart indicates an expected call of ContainerStart. -func (mr *MockAPIClientMockRecorder) ContainerStart(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerStart(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStart", reflect.TypeOf((*MockAPIClient)(nil).ContainerStart), arg0, arg1, arg2) } @@ -538,7 +544,7 @@ func (m *MockAPIClient) ContainerStatPath(arg0 context.Context, arg1, arg2 strin } // ContainerStatPath indicates an expected call of ContainerStatPath. -func (mr *MockAPIClientMockRecorder) ContainerStatPath(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerStatPath(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStatPath", reflect.TypeOf((*MockAPIClient)(nil).ContainerStatPath), arg0, arg1, arg2) } @@ -553,7 +559,7 @@ func (m *MockAPIClient) ContainerStats(arg0 context.Context, arg1 string, arg2 b } // ContainerStats indicates an expected call of ContainerStats. -func (mr *MockAPIClientMockRecorder) ContainerStats(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerStats(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStats", reflect.TypeOf((*MockAPIClient)(nil).ContainerStats), arg0, arg1, arg2) } @@ -568,7 +574,7 @@ func (m *MockAPIClient) ContainerStatsOneShot(arg0 context.Context, arg1 string) } // ContainerStatsOneShot indicates an expected call of ContainerStatsOneShot. -func (mr *MockAPIClientMockRecorder) ContainerStatsOneShot(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerStatsOneShot(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStatsOneShot", reflect.TypeOf((*MockAPIClient)(nil).ContainerStatsOneShot), arg0, arg1) } @@ -582,7 +588,7 @@ func (m *MockAPIClient) ContainerStop(arg0 context.Context, arg1 string, arg2 co } // ContainerStop indicates an expected call of ContainerStop. -func (mr *MockAPIClientMockRecorder) ContainerStop(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerStop(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStop", reflect.TypeOf((*MockAPIClient)(nil).ContainerStop), arg0, arg1, arg2) } @@ -597,7 +603,7 @@ func (m *MockAPIClient) ContainerTop(arg0 context.Context, arg1 string, arg2 []s } // ContainerTop indicates an expected call of ContainerTop. -func (mr *MockAPIClientMockRecorder) ContainerTop(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerTop(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerTop", reflect.TypeOf((*MockAPIClient)(nil).ContainerTop), arg0, arg1, arg2) } @@ -611,7 +617,7 @@ func (m *MockAPIClient) ContainerUnpause(arg0 context.Context, arg1 string) erro } // ContainerUnpause indicates an expected call of ContainerUnpause. -func (mr *MockAPIClientMockRecorder) ContainerUnpause(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerUnpause(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerUnpause", reflect.TypeOf((*MockAPIClient)(nil).ContainerUnpause), arg0, arg1) } @@ -626,7 +632,7 @@ func (m *MockAPIClient) ContainerUpdate(arg0 context.Context, arg1 string, arg2 } // ContainerUpdate indicates an expected call of ContainerUpdate. -func (mr *MockAPIClientMockRecorder) ContainerUpdate(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerUpdate(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerUpdate", reflect.TypeOf((*MockAPIClient)(nil).ContainerUpdate), arg0, arg1, arg2) } @@ -641,7 +647,7 @@ func (m *MockAPIClient) ContainerWait(arg0 context.Context, arg1 string, arg2 co } // ContainerWait indicates an expected call of ContainerWait. -func (mr *MockAPIClientMockRecorder) ContainerWait(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainerWait(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerWait", reflect.TypeOf((*MockAPIClient)(nil).ContainerWait), arg0, arg1, arg2) } @@ -656,7 +662,7 @@ func (m *MockAPIClient) ContainersPrune(arg0 context.Context, arg1 filters.Args) } // ContainersPrune indicates an expected call of ContainersPrune. -func (mr *MockAPIClientMockRecorder) ContainersPrune(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ContainersPrune(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainersPrune", reflect.TypeOf((*MockAPIClient)(nil).ContainersPrune), arg0, arg1) } @@ -672,7 +678,7 @@ func (m *MockAPIClient) CopyFromContainer(arg0 context.Context, arg1, arg2 strin } // CopyFromContainer indicates an expected call of CopyFromContainer. -func (mr *MockAPIClientMockRecorder) CopyFromContainer(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) CopyFromContainer(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyFromContainer", reflect.TypeOf((*MockAPIClient)(nil).CopyFromContainer), arg0, arg1, arg2) } @@ -686,7 +692,7 @@ func (m *MockAPIClient) CopyToContainer(arg0 context.Context, arg1, arg2 string, } // CopyToContainer indicates an expected call of CopyToContainer. -func (mr *MockAPIClientMockRecorder) CopyToContainer(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) CopyToContainer(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyToContainer", reflect.TypeOf((*MockAPIClient)(nil).CopyToContainer), arg0, arg1, arg2, arg3, arg4) } @@ -715,7 +721,7 @@ func (m *MockAPIClient) DialHijack(arg0 context.Context, arg1, arg2 string, arg3 } // DialHijack indicates an expected call of DialHijack. -func (mr *MockAPIClientMockRecorder) DialHijack(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) DialHijack(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DialHijack", reflect.TypeOf((*MockAPIClient)(nil).DialHijack), arg0, arg1, arg2, arg3) } @@ -744,7 +750,7 @@ func (m *MockAPIClient) DiskUsage(arg0 context.Context, arg1 types.DiskUsageOpti } // DiskUsage indicates an expected call of DiskUsage. -func (mr *MockAPIClientMockRecorder) DiskUsage(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) DiskUsage(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiskUsage", reflect.TypeOf((*MockAPIClient)(nil).DiskUsage), arg0, arg1) } @@ -759,7 +765,7 @@ func (m *MockAPIClient) DistributionInspect(arg0 context.Context, arg1, arg2 str } // DistributionInspect indicates an expected call of DistributionInspect. -func (mr *MockAPIClientMockRecorder) DistributionInspect(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) DistributionInspect(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DistributionInspect", reflect.TypeOf((*MockAPIClient)(nil).DistributionInspect), arg0, arg1, arg2) } @@ -774,7 +780,7 @@ func (m *MockAPIClient) Events(arg0 context.Context, arg1 types.EventsOptions) ( } // Events indicates an expected call of Events. -func (mr *MockAPIClientMockRecorder) Events(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) Events(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Events", reflect.TypeOf((*MockAPIClient)(nil).Events), arg0, arg1) } @@ -803,7 +809,7 @@ func (m *MockAPIClient) ImageBuild(arg0 context.Context, arg1 io.Reader, arg2 ty } // ImageBuild indicates an expected call of ImageBuild. -func (mr *MockAPIClientMockRecorder) ImageBuild(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageBuild(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageBuild", reflect.TypeOf((*MockAPIClient)(nil).ImageBuild), arg0, arg1, arg2) } @@ -818,7 +824,7 @@ func (m *MockAPIClient) ImageCreate(arg0 context.Context, arg1 string, arg2 type } // ImageCreate indicates an expected call of ImageCreate. -func (mr *MockAPIClientMockRecorder) ImageCreate(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageCreate(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageCreate", reflect.TypeOf((*MockAPIClient)(nil).ImageCreate), arg0, arg1, arg2) } @@ -833,7 +839,7 @@ func (m *MockAPIClient) ImageHistory(arg0 context.Context, arg1 string) ([]image } // ImageHistory indicates an expected call of ImageHistory. -func (mr *MockAPIClientMockRecorder) ImageHistory(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageHistory(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageHistory", reflect.TypeOf((*MockAPIClient)(nil).ImageHistory), arg0, arg1) } @@ -848,7 +854,7 @@ func (m *MockAPIClient) ImageImport(arg0 context.Context, arg1 types.ImageImport } // ImageImport indicates an expected call of ImageImport. -func (mr *MockAPIClientMockRecorder) ImageImport(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageImport(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageImport", reflect.TypeOf((*MockAPIClient)(nil).ImageImport), arg0, arg1, arg2, arg3) } @@ -864,22 +870,22 @@ func (m *MockAPIClient) ImageInspectWithRaw(arg0 context.Context, arg1 string) ( } // ImageInspectWithRaw indicates an expected call of ImageInspectWithRaw. -func (mr *MockAPIClientMockRecorder) ImageInspectWithRaw(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageInspectWithRaw(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageInspectWithRaw", reflect.TypeOf((*MockAPIClient)(nil).ImageInspectWithRaw), arg0, arg1) } // ImageList mocks base method. -func (m *MockAPIClient) ImageList(arg0 context.Context, arg1 types.ImageListOptions) ([]types.ImageSummary, error) { +func (m *MockAPIClient) ImageList(arg0 context.Context, arg1 types.ImageListOptions) ([]image.Summary, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ImageList", arg0, arg1) - ret0, _ := ret[0].([]types.ImageSummary) + ret0, _ := ret[0].([]image.Summary) ret1, _ := ret[1].(error) return ret0, ret1 } // ImageList indicates an expected call of ImageList. -func (mr *MockAPIClientMockRecorder) ImageList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageList(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageList", reflect.TypeOf((*MockAPIClient)(nil).ImageList), arg0, arg1) } @@ -894,7 +900,7 @@ func (m *MockAPIClient) ImageLoad(arg0 context.Context, arg1 io.Reader, arg2 boo } // ImageLoad indicates an expected call of ImageLoad. -func (mr *MockAPIClientMockRecorder) ImageLoad(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageLoad(arg0, arg1, 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) } @@ -909,7 +915,7 @@ func (m *MockAPIClient) ImagePull(arg0 context.Context, arg1 string, arg2 types. } // ImagePull indicates an expected call of ImagePull. -func (mr *MockAPIClientMockRecorder) ImagePull(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImagePull(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagePull", reflect.TypeOf((*MockAPIClient)(nil).ImagePull), arg0, arg1, arg2) } @@ -924,22 +930,22 @@ func (m *MockAPIClient) ImagePush(arg0 context.Context, arg1 string, arg2 types. } // ImagePush indicates an expected call of ImagePush. -func (mr *MockAPIClientMockRecorder) ImagePush(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImagePush(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagePush", reflect.TypeOf((*MockAPIClient)(nil).ImagePush), arg0, arg1, arg2) } // ImageRemove mocks base method. -func (m *MockAPIClient) ImageRemove(arg0 context.Context, arg1 string, arg2 types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error) { +func (m *MockAPIClient) ImageRemove(arg0 context.Context, arg1 string, arg2 types.ImageRemoveOptions) ([]image.DeleteResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ImageRemove", arg0, arg1, arg2) - ret0, _ := ret[0].([]types.ImageDeleteResponseItem) + ret0, _ := ret[0].([]image.DeleteResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ImageRemove indicates an expected call of ImageRemove. -func (mr *MockAPIClientMockRecorder) ImageRemove(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageRemove(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageRemove", reflect.TypeOf((*MockAPIClient)(nil).ImageRemove), arg0, arg1, arg2) } @@ -954,7 +960,7 @@ func (m *MockAPIClient) ImageSave(arg0 context.Context, arg1 []string) (io.ReadC } // ImageSave indicates an expected call of ImageSave. -func (mr *MockAPIClientMockRecorder) ImageSave(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageSave(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageSave", reflect.TypeOf((*MockAPIClient)(nil).ImageSave), arg0, arg1) } @@ -969,7 +975,7 @@ func (m *MockAPIClient) ImageSearch(arg0 context.Context, arg1 string, arg2 type } // ImageSearch indicates an expected call of ImageSearch. -func (mr *MockAPIClientMockRecorder) ImageSearch(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageSearch(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageSearch", reflect.TypeOf((*MockAPIClient)(nil).ImageSearch), arg0, arg1, arg2) } @@ -983,7 +989,7 @@ func (m *MockAPIClient) ImageTag(arg0 context.Context, arg1, arg2 string) error } // ImageTag indicates an expected call of ImageTag. -func (mr *MockAPIClientMockRecorder) ImageTag(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImageTag(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageTag", reflect.TypeOf((*MockAPIClient)(nil).ImageTag), arg0, arg1, arg2) } @@ -998,22 +1004,22 @@ func (m *MockAPIClient) ImagesPrune(arg0 context.Context, arg1 filters.Args) (ty } // ImagesPrune indicates an expected call of ImagesPrune. -func (mr *MockAPIClientMockRecorder) ImagesPrune(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ImagesPrune(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagesPrune", reflect.TypeOf((*MockAPIClient)(nil).ImagesPrune), arg0, arg1) } // Info mocks base method. -func (m *MockAPIClient) Info(arg0 context.Context) (types.Info, error) { +func (m *MockAPIClient) Info(arg0 context.Context) (system.Info, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Info", arg0) - ret0, _ := ret[0].(types.Info) + ret0, _ := ret[0].(system.Info) ret1, _ := ret[1].(error) return ret0, ret1 } // Info indicates an expected call of Info. -func (mr *MockAPIClientMockRecorder) Info(arg0 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) Info(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Info", reflect.TypeOf((*MockAPIClient)(nil).Info), arg0) } @@ -1025,7 +1031,7 @@ func (m *MockAPIClient) NegotiateAPIVersion(arg0 context.Context) { } // NegotiateAPIVersion indicates an expected call of NegotiateAPIVersion. -func (mr *MockAPIClientMockRecorder) NegotiateAPIVersion(arg0 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NegotiateAPIVersion(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NegotiateAPIVersion", reflect.TypeOf((*MockAPIClient)(nil).NegotiateAPIVersion), arg0) } @@ -1037,7 +1043,7 @@ func (m *MockAPIClient) NegotiateAPIVersionPing(arg0 types.Ping) { } // NegotiateAPIVersionPing indicates an expected call of NegotiateAPIVersionPing. -func (mr *MockAPIClientMockRecorder) NegotiateAPIVersionPing(arg0 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NegotiateAPIVersionPing(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NegotiateAPIVersionPing", reflect.TypeOf((*MockAPIClient)(nil).NegotiateAPIVersionPing), arg0) } @@ -1051,7 +1057,7 @@ func (m *MockAPIClient) NetworkConnect(arg0 context.Context, arg1, arg2 string, } // NetworkConnect indicates an expected call of NetworkConnect. -func (mr *MockAPIClientMockRecorder) NetworkConnect(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NetworkConnect(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkConnect", reflect.TypeOf((*MockAPIClient)(nil).NetworkConnect), arg0, arg1, arg2, arg3) } @@ -1066,7 +1072,7 @@ func (m *MockAPIClient) NetworkCreate(arg0 context.Context, arg1 string, arg2 ty } // NetworkCreate indicates an expected call of NetworkCreate. -func (mr *MockAPIClientMockRecorder) NetworkCreate(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NetworkCreate(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkCreate", reflect.TypeOf((*MockAPIClient)(nil).NetworkCreate), arg0, arg1, arg2) } @@ -1080,7 +1086,7 @@ func (m *MockAPIClient) NetworkDisconnect(arg0 context.Context, arg1, arg2 strin } // NetworkDisconnect indicates an expected call of NetworkDisconnect. -func (mr *MockAPIClientMockRecorder) NetworkDisconnect(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NetworkDisconnect(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkDisconnect", reflect.TypeOf((*MockAPIClient)(nil).NetworkDisconnect), arg0, arg1, arg2, arg3) } @@ -1095,7 +1101,7 @@ func (m *MockAPIClient) NetworkInspect(arg0 context.Context, arg1 string, arg2 t } // NetworkInspect indicates an expected call of NetworkInspect. -func (mr *MockAPIClientMockRecorder) NetworkInspect(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NetworkInspect(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkInspect", reflect.TypeOf((*MockAPIClient)(nil).NetworkInspect), arg0, arg1, arg2) } @@ -1111,7 +1117,7 @@ func (m *MockAPIClient) NetworkInspectWithRaw(arg0 context.Context, arg1 string, } // NetworkInspectWithRaw indicates an expected call of NetworkInspectWithRaw. -func (mr *MockAPIClientMockRecorder) NetworkInspectWithRaw(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NetworkInspectWithRaw(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkInspectWithRaw", reflect.TypeOf((*MockAPIClient)(nil).NetworkInspectWithRaw), arg0, arg1, arg2) } @@ -1126,7 +1132,7 @@ func (m *MockAPIClient) NetworkList(arg0 context.Context, arg1 types.NetworkList } // NetworkList indicates an expected call of NetworkList. -func (mr *MockAPIClientMockRecorder) NetworkList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NetworkList(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkList", reflect.TypeOf((*MockAPIClient)(nil).NetworkList), arg0, arg1) } @@ -1140,7 +1146,7 @@ func (m *MockAPIClient) NetworkRemove(arg0 context.Context, arg1 string) error { } // NetworkRemove indicates an expected call of NetworkRemove. -func (mr *MockAPIClientMockRecorder) NetworkRemove(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NetworkRemove(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkRemove", reflect.TypeOf((*MockAPIClient)(nil).NetworkRemove), arg0, arg1) } @@ -1155,7 +1161,7 @@ func (m *MockAPIClient) NetworksPrune(arg0 context.Context, arg1 filters.Args) ( } // NetworksPrune indicates an expected call of NetworksPrune. -func (mr *MockAPIClientMockRecorder) NetworksPrune(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NetworksPrune(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworksPrune", reflect.TypeOf((*MockAPIClient)(nil).NetworksPrune), arg0, arg1) } @@ -1171,7 +1177,7 @@ func (m *MockAPIClient) NodeInspectWithRaw(arg0 context.Context, arg1 string) (s } // NodeInspectWithRaw indicates an expected call of NodeInspectWithRaw. -func (mr *MockAPIClientMockRecorder) NodeInspectWithRaw(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NodeInspectWithRaw(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeInspectWithRaw", reflect.TypeOf((*MockAPIClient)(nil).NodeInspectWithRaw), arg0, arg1) } @@ -1186,7 +1192,7 @@ func (m *MockAPIClient) NodeList(arg0 context.Context, arg1 types.NodeListOption } // NodeList indicates an expected call of NodeList. -func (mr *MockAPIClientMockRecorder) NodeList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NodeList(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeList", reflect.TypeOf((*MockAPIClient)(nil).NodeList), arg0, arg1) } @@ -1200,7 +1206,7 @@ func (m *MockAPIClient) NodeRemove(arg0 context.Context, arg1 string, arg2 types } // NodeRemove indicates an expected call of NodeRemove. -func (mr *MockAPIClientMockRecorder) NodeRemove(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NodeRemove(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeRemove", reflect.TypeOf((*MockAPIClient)(nil).NodeRemove), arg0, arg1, arg2) } @@ -1214,7 +1220,7 @@ func (m *MockAPIClient) NodeUpdate(arg0 context.Context, arg1 string, arg2 swarm } // NodeUpdate indicates an expected call of NodeUpdate. -func (mr *MockAPIClientMockRecorder) NodeUpdate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) NodeUpdate(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeUpdate", reflect.TypeOf((*MockAPIClient)(nil).NodeUpdate), arg0, arg1, arg2, arg3) } @@ -1229,7 +1235,7 @@ func (m *MockAPIClient) Ping(arg0 context.Context) (types.Ping, error) { } // Ping indicates an expected call of Ping. -func (mr *MockAPIClientMockRecorder) Ping(arg0 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) Ping(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ping", reflect.TypeOf((*MockAPIClient)(nil).Ping), arg0) } @@ -1243,7 +1249,7 @@ func (m *MockAPIClient) PluginCreate(arg0 context.Context, arg1 io.Reader, arg2 } // PluginCreate indicates an expected call of PluginCreate. -func (mr *MockAPIClientMockRecorder) PluginCreate(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) PluginCreate(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginCreate", reflect.TypeOf((*MockAPIClient)(nil).PluginCreate), arg0, arg1, arg2) } @@ -1257,7 +1263,7 @@ func (m *MockAPIClient) PluginDisable(arg0 context.Context, arg1 string, arg2 ty } // PluginDisable indicates an expected call of PluginDisable. -func (mr *MockAPIClientMockRecorder) PluginDisable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) PluginDisable(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDisable", reflect.TypeOf((*MockAPIClient)(nil).PluginDisable), arg0, arg1, arg2) } @@ -1271,7 +1277,7 @@ func (m *MockAPIClient) PluginEnable(arg0 context.Context, arg1 string, arg2 typ } // PluginEnable indicates an expected call of PluginEnable. -func (mr *MockAPIClientMockRecorder) PluginEnable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) PluginEnable(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginEnable", reflect.TypeOf((*MockAPIClient)(nil).PluginEnable), arg0, arg1, arg2) } @@ -1287,7 +1293,7 @@ func (m *MockAPIClient) PluginInspectWithRaw(arg0 context.Context, arg1 string) } // PluginInspectWithRaw indicates an expected call of PluginInspectWithRaw. -func (mr *MockAPIClientMockRecorder) PluginInspectWithRaw(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) PluginInspectWithRaw(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginInspectWithRaw", reflect.TypeOf((*MockAPIClient)(nil).PluginInspectWithRaw), arg0, arg1) } @@ -1302,7 +1308,7 @@ func (m *MockAPIClient) PluginInstall(arg0 context.Context, arg1 string, arg2 ty } // PluginInstall indicates an expected call of PluginInstall. -func (mr *MockAPIClientMockRecorder) PluginInstall(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) PluginInstall(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginInstall", reflect.TypeOf((*MockAPIClient)(nil).PluginInstall), arg0, arg1, arg2) } @@ -1317,7 +1323,7 @@ func (m *MockAPIClient) PluginList(arg0 context.Context, arg1 filters.Args) (typ } // PluginList indicates an expected call of PluginList. -func (mr *MockAPIClientMockRecorder) PluginList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) PluginList(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginList", reflect.TypeOf((*MockAPIClient)(nil).PluginList), arg0, arg1) } @@ -1332,7 +1338,7 @@ func (m *MockAPIClient) PluginPush(arg0 context.Context, arg1, arg2 string) (io. } // PluginPush indicates an expected call of PluginPush. -func (mr *MockAPIClientMockRecorder) PluginPush(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) PluginPush(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginPush", reflect.TypeOf((*MockAPIClient)(nil).PluginPush), arg0, arg1, arg2) } @@ -1346,7 +1352,7 @@ func (m *MockAPIClient) PluginRemove(arg0 context.Context, arg1 string, arg2 typ } // PluginRemove indicates an expected call of PluginRemove. -func (mr *MockAPIClientMockRecorder) PluginRemove(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) PluginRemove(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginRemove", reflect.TypeOf((*MockAPIClient)(nil).PluginRemove), arg0, arg1, arg2) } @@ -1360,7 +1366,7 @@ func (m *MockAPIClient) PluginSet(arg0 context.Context, arg1 string, arg2 []stri } // PluginSet indicates an expected call of PluginSet. -func (mr *MockAPIClientMockRecorder) PluginSet(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) PluginSet(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginSet", reflect.TypeOf((*MockAPIClient)(nil).PluginSet), arg0, arg1, arg2) } @@ -1375,7 +1381,7 @@ func (m *MockAPIClient) PluginUpgrade(arg0 context.Context, arg1 string, arg2 ty } // PluginUpgrade indicates an expected call of PluginUpgrade. -func (mr *MockAPIClientMockRecorder) PluginUpgrade(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) PluginUpgrade(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginUpgrade", reflect.TypeOf((*MockAPIClient)(nil).PluginUpgrade), arg0, arg1, arg2) } @@ -1390,7 +1396,7 @@ func (m *MockAPIClient) RegistryLogin(arg0 context.Context, arg1 registry.AuthCo } // RegistryLogin indicates an expected call of RegistryLogin. -func (mr *MockAPIClientMockRecorder) RegistryLogin(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) RegistryLogin(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegistryLogin", reflect.TypeOf((*MockAPIClient)(nil).RegistryLogin), arg0, arg1) } @@ -1405,7 +1411,7 @@ func (m *MockAPIClient) SecretCreate(arg0 context.Context, arg1 swarm.SecretSpec } // SecretCreate indicates an expected call of SecretCreate. -func (mr *MockAPIClientMockRecorder) SecretCreate(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SecretCreate(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecretCreate", reflect.TypeOf((*MockAPIClient)(nil).SecretCreate), arg0, arg1) } @@ -1421,7 +1427,7 @@ func (m *MockAPIClient) SecretInspectWithRaw(arg0 context.Context, arg1 string) } // SecretInspectWithRaw indicates an expected call of SecretInspectWithRaw. -func (mr *MockAPIClientMockRecorder) SecretInspectWithRaw(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SecretInspectWithRaw(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecretInspectWithRaw", reflect.TypeOf((*MockAPIClient)(nil).SecretInspectWithRaw), arg0, arg1) } @@ -1436,7 +1442,7 @@ func (m *MockAPIClient) SecretList(arg0 context.Context, arg1 types.SecretListOp } // SecretList indicates an expected call of SecretList. -func (mr *MockAPIClientMockRecorder) SecretList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SecretList(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecretList", reflect.TypeOf((*MockAPIClient)(nil).SecretList), arg0, arg1) } @@ -1450,7 +1456,7 @@ func (m *MockAPIClient) SecretRemove(arg0 context.Context, arg1 string) error { } // SecretRemove indicates an expected call of SecretRemove. -func (mr *MockAPIClientMockRecorder) SecretRemove(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SecretRemove(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecretRemove", reflect.TypeOf((*MockAPIClient)(nil).SecretRemove), arg0, arg1) } @@ -1464,7 +1470,7 @@ func (m *MockAPIClient) SecretUpdate(arg0 context.Context, arg1 string, arg2 swa } // SecretUpdate indicates an expected call of SecretUpdate. -func (mr *MockAPIClientMockRecorder) SecretUpdate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SecretUpdate(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecretUpdate", reflect.TypeOf((*MockAPIClient)(nil).SecretUpdate), arg0, arg1, arg2, arg3) } @@ -1479,22 +1485,22 @@ func (m *MockAPIClient) ServerVersion(arg0 context.Context) (types.Version, erro } // ServerVersion indicates an expected call of ServerVersion. -func (mr *MockAPIClientMockRecorder) ServerVersion(arg0 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ServerVersion(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServerVersion", reflect.TypeOf((*MockAPIClient)(nil).ServerVersion), arg0) } // ServiceCreate mocks base method. -func (m *MockAPIClient) ServiceCreate(arg0 context.Context, arg1 swarm.ServiceSpec, arg2 types.ServiceCreateOptions) (types.ServiceCreateResponse, error) { +func (m *MockAPIClient) ServiceCreate(arg0 context.Context, arg1 swarm.ServiceSpec, arg2 types.ServiceCreateOptions) (swarm.ServiceCreateResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ServiceCreate", arg0, arg1, arg2) - ret0, _ := ret[0].(types.ServiceCreateResponse) + ret0, _ := ret[0].(swarm.ServiceCreateResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ServiceCreate indicates an expected call of ServiceCreate. -func (mr *MockAPIClientMockRecorder) ServiceCreate(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ServiceCreate(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCreate", reflect.TypeOf((*MockAPIClient)(nil).ServiceCreate), arg0, arg1, arg2) } @@ -1510,7 +1516,7 @@ func (m *MockAPIClient) ServiceInspectWithRaw(arg0 context.Context, arg1 string, } // ServiceInspectWithRaw indicates an expected call of ServiceInspectWithRaw. -func (mr *MockAPIClientMockRecorder) ServiceInspectWithRaw(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ServiceInspectWithRaw(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceInspectWithRaw", reflect.TypeOf((*MockAPIClient)(nil).ServiceInspectWithRaw), arg0, arg1, arg2) } @@ -1525,13 +1531,13 @@ func (m *MockAPIClient) ServiceList(arg0 context.Context, arg1 types.ServiceList } // ServiceList indicates an expected call of ServiceList. -func (mr *MockAPIClientMockRecorder) ServiceList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ServiceList(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceList", reflect.TypeOf((*MockAPIClient)(nil).ServiceList), arg0, arg1) } // ServiceLogs mocks base method. -func (m *MockAPIClient) ServiceLogs(arg0 context.Context, arg1 string, arg2 types.ContainerLogsOptions) (io.ReadCloser, error) { +func (m *MockAPIClient) ServiceLogs(arg0 context.Context, arg1 string, arg2 container.LogsOptions) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ServiceLogs", arg0, arg1, arg2) ret0, _ := ret[0].(io.ReadCloser) @@ -1540,7 +1546,7 @@ func (m *MockAPIClient) ServiceLogs(arg0 context.Context, arg1 string, arg2 type } // ServiceLogs indicates an expected call of ServiceLogs. -func (mr *MockAPIClientMockRecorder) ServiceLogs(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ServiceLogs(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceLogs", reflect.TypeOf((*MockAPIClient)(nil).ServiceLogs), arg0, arg1, arg2) } @@ -1554,22 +1560,22 @@ func (m *MockAPIClient) ServiceRemove(arg0 context.Context, arg1 string) error { } // ServiceRemove indicates an expected call of ServiceRemove. -func (mr *MockAPIClientMockRecorder) ServiceRemove(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ServiceRemove(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceRemove", reflect.TypeOf((*MockAPIClient)(nil).ServiceRemove), arg0, arg1) } // ServiceUpdate mocks base method. -func (m *MockAPIClient) ServiceUpdate(arg0 context.Context, arg1 string, arg2 swarm.Version, arg3 swarm.ServiceSpec, arg4 types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error) { +func (m *MockAPIClient) ServiceUpdate(arg0 context.Context, arg1 string, arg2 swarm.Version, arg3 swarm.ServiceSpec, arg4 types.ServiceUpdateOptions) (swarm.ServiceUpdateResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ServiceUpdate", arg0, arg1, arg2, arg3, arg4) - ret0, _ := ret[0].(types.ServiceUpdateResponse) + ret0, _ := ret[0].(swarm.ServiceUpdateResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ServiceUpdate indicates an expected call of ServiceUpdate. -func (mr *MockAPIClientMockRecorder) ServiceUpdate(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) ServiceUpdate(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceUpdate", reflect.TypeOf((*MockAPIClient)(nil).ServiceUpdate), arg0, arg1, arg2, arg3, arg4) } @@ -1584,7 +1590,7 @@ func (m *MockAPIClient) SwarmGetUnlockKey(arg0 context.Context) (types.SwarmUnlo } // SwarmGetUnlockKey indicates an expected call of SwarmGetUnlockKey. -func (mr *MockAPIClientMockRecorder) SwarmGetUnlockKey(arg0 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SwarmGetUnlockKey(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SwarmGetUnlockKey", reflect.TypeOf((*MockAPIClient)(nil).SwarmGetUnlockKey), arg0) } @@ -1599,7 +1605,7 @@ func (m *MockAPIClient) SwarmInit(arg0 context.Context, arg1 swarm.InitRequest) } // SwarmInit indicates an expected call of SwarmInit. -func (mr *MockAPIClientMockRecorder) SwarmInit(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SwarmInit(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SwarmInit", reflect.TypeOf((*MockAPIClient)(nil).SwarmInit), arg0, arg1) } @@ -1614,7 +1620,7 @@ func (m *MockAPIClient) SwarmInspect(arg0 context.Context) (swarm.Swarm, error) } // SwarmInspect indicates an expected call of SwarmInspect. -func (mr *MockAPIClientMockRecorder) SwarmInspect(arg0 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SwarmInspect(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SwarmInspect", reflect.TypeOf((*MockAPIClient)(nil).SwarmInspect), arg0) } @@ -1628,7 +1634,7 @@ func (m *MockAPIClient) SwarmJoin(arg0 context.Context, arg1 swarm.JoinRequest) } // SwarmJoin indicates an expected call of SwarmJoin. -func (mr *MockAPIClientMockRecorder) SwarmJoin(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SwarmJoin(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SwarmJoin", reflect.TypeOf((*MockAPIClient)(nil).SwarmJoin), arg0, arg1) } @@ -1642,7 +1648,7 @@ func (m *MockAPIClient) SwarmLeave(arg0 context.Context, arg1 bool) error { } // SwarmLeave indicates an expected call of SwarmLeave. -func (mr *MockAPIClientMockRecorder) SwarmLeave(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SwarmLeave(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SwarmLeave", reflect.TypeOf((*MockAPIClient)(nil).SwarmLeave), arg0, arg1) } @@ -1656,7 +1662,7 @@ func (m *MockAPIClient) SwarmUnlock(arg0 context.Context, arg1 swarm.UnlockReque } // SwarmUnlock indicates an expected call of SwarmUnlock. -func (mr *MockAPIClientMockRecorder) SwarmUnlock(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SwarmUnlock(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SwarmUnlock", reflect.TypeOf((*MockAPIClient)(nil).SwarmUnlock), arg0, arg1) } @@ -1670,7 +1676,7 @@ func (m *MockAPIClient) SwarmUpdate(arg0 context.Context, arg1 swarm.Version, ar } // SwarmUpdate indicates an expected call of SwarmUpdate. -func (mr *MockAPIClientMockRecorder) SwarmUpdate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) SwarmUpdate(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SwarmUpdate", reflect.TypeOf((*MockAPIClient)(nil).SwarmUpdate), arg0, arg1, arg2, arg3) } @@ -1686,7 +1692,7 @@ func (m *MockAPIClient) TaskInspectWithRaw(arg0 context.Context, arg1 string) (s } // TaskInspectWithRaw indicates an expected call of TaskInspectWithRaw. -func (mr *MockAPIClientMockRecorder) TaskInspectWithRaw(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) TaskInspectWithRaw(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TaskInspectWithRaw", reflect.TypeOf((*MockAPIClient)(nil).TaskInspectWithRaw), arg0, arg1) } @@ -1701,13 +1707,13 @@ func (m *MockAPIClient) TaskList(arg0 context.Context, arg1 types.TaskListOption } // TaskList indicates an expected call of TaskList. -func (mr *MockAPIClientMockRecorder) TaskList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) TaskList(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TaskList", reflect.TypeOf((*MockAPIClient)(nil).TaskList), arg0, arg1) } // TaskLogs mocks base method. -func (m *MockAPIClient) TaskLogs(arg0 context.Context, arg1 string, arg2 types.ContainerLogsOptions) (io.ReadCloser, error) { +func (m *MockAPIClient) TaskLogs(arg0 context.Context, arg1 string, arg2 container.LogsOptions) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "TaskLogs", arg0, arg1, arg2) ret0, _ := ret[0].(io.ReadCloser) @@ -1716,7 +1722,7 @@ func (m *MockAPIClient) TaskLogs(arg0 context.Context, arg1 string, arg2 types.C } // TaskLogs indicates an expected call of TaskLogs. -func (mr *MockAPIClientMockRecorder) TaskLogs(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) TaskLogs(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TaskLogs", reflect.TypeOf((*MockAPIClient)(nil).TaskLogs), arg0, arg1, arg2) } @@ -1731,7 +1737,7 @@ func (m *MockAPIClient) VolumeCreate(arg0 context.Context, arg1 volume.CreateOpt } // VolumeCreate indicates an expected call of VolumeCreate. -func (mr *MockAPIClientMockRecorder) VolumeCreate(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) VolumeCreate(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumeCreate", reflect.TypeOf((*MockAPIClient)(nil).VolumeCreate), arg0, arg1) } @@ -1746,7 +1752,7 @@ func (m *MockAPIClient) VolumeInspect(arg0 context.Context, arg1 string) (volume } // VolumeInspect indicates an expected call of VolumeInspect. -func (mr *MockAPIClientMockRecorder) VolumeInspect(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) VolumeInspect(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumeInspect", reflect.TypeOf((*MockAPIClient)(nil).VolumeInspect), arg0, arg1) } @@ -1762,7 +1768,7 @@ func (m *MockAPIClient) VolumeInspectWithRaw(arg0 context.Context, arg1 string) } // VolumeInspectWithRaw indicates an expected call of VolumeInspectWithRaw. -func (mr *MockAPIClientMockRecorder) VolumeInspectWithRaw(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) VolumeInspectWithRaw(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumeInspectWithRaw", reflect.TypeOf((*MockAPIClient)(nil).VolumeInspectWithRaw), arg0, arg1) } @@ -1777,7 +1783,7 @@ func (m *MockAPIClient) VolumeList(arg0 context.Context, arg1 volume.ListOptions } // VolumeList indicates an expected call of VolumeList. -func (mr *MockAPIClientMockRecorder) VolumeList(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) VolumeList(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumeList", reflect.TypeOf((*MockAPIClient)(nil).VolumeList), arg0, arg1) } @@ -1791,7 +1797,7 @@ func (m *MockAPIClient) VolumeRemove(arg0 context.Context, arg1 string, arg2 boo } // VolumeRemove indicates an expected call of VolumeRemove. -func (mr *MockAPIClientMockRecorder) VolumeRemove(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) VolumeRemove(arg0, arg1, arg2 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumeRemove", reflect.TypeOf((*MockAPIClient)(nil).VolumeRemove), arg0, arg1, arg2) } @@ -1805,7 +1811,7 @@ func (m *MockAPIClient) VolumeUpdate(arg0 context.Context, arg1 string, arg2 swa } // VolumeUpdate indicates an expected call of VolumeUpdate. -func (mr *MockAPIClientMockRecorder) VolumeUpdate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) VolumeUpdate(arg0, arg1, arg2, arg3 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumeUpdate", reflect.TypeOf((*MockAPIClient)(nil).VolumeUpdate), arg0, arg1, arg2, arg3) } @@ -1820,7 +1826,7 @@ func (m *MockAPIClient) VolumesPrune(arg0 context.Context, arg1 filters.Args) (t } // VolumesPrune indicates an expected call of VolumesPrune. -func (mr *MockAPIClientMockRecorder) VolumesPrune(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockAPIClientMockRecorder) VolumesPrune(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumesPrune", reflect.TypeOf((*MockAPIClient)(nil).VolumesPrune), arg0, arg1) } diff --git a/pkg/mocks/mock_docker_cli.go b/pkg/mocks/mock_docker_cli.go index 54e480d1093..0d09fc10b7f 100644 --- a/pkg/mocks/mock_docker_cli.go +++ b/pkg/mocks/mock_docker_cli.go @@ -1,6 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: github.com/docker/cli/cli/command (interfaces: Cli) - +// +// Generated by this command: +// +// mockgen -destination pkg/mocks/mock_docker_cli.go -package mocks github.com/docker/cli/cli/command Cli +// // Package mocks is a generated GoMock package. package mocks @@ -17,8 +21,8 @@ import ( streams "github.com/docker/cli/cli/streams" trust "github.com/docker/cli/cli/trust" client0 "github.com/docker/docker/client" - gomock "github.com/golang/mock/gomock" client1 "github.com/theupdateframework/notary/client" + gomock "go.uber.org/mock/gomock" ) // MockCli is a mock of Cli interface. @@ -47,7 +51,7 @@ func (m *MockCli) EXPECT() *MockCliMockRecorder { // Apply mocks base method. func (m *MockCli) Apply(arg0 ...command.DockerCliOption) error { m.ctrl.T.Helper() - varargs := []interface{}{} + varargs := []any{} for _, a := range arg0 { varargs = append(varargs, a) } @@ -57,7 +61,7 @@ func (m *MockCli) Apply(arg0 ...command.DockerCliOption) error { } // Apply indicates an expected call of Apply. -func (mr *MockCliMockRecorder) Apply(arg0 ...interface{}) *gomock.Call { +func (mr *MockCliMockRecorder) Apply(arg0 ...any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockCli)(nil).Apply), arg0...) } @@ -241,7 +245,7 @@ func (m *MockCli) NotaryClient(arg0 trust.ImageRefAndAuth, arg1 []string) (clien } // NotaryClient indicates an expected call of NotaryClient. -func (mr *MockCliMockRecorder) NotaryClient(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockCliMockRecorder) NotaryClient(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotaryClient", reflect.TypeOf((*MockCli)(nil).NotaryClient), arg0, arg1) } @@ -269,7 +273,7 @@ func (m *MockCli) RegistryClient(arg0 bool) client.RegistryClient { } // RegistryClient indicates an expected call of RegistryClient. -func (mr *MockCliMockRecorder) RegistryClient(arg0 interface{}) *gomock.Call { +func (mr *MockCliMockRecorder) RegistryClient(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegistryClient", reflect.TypeOf((*MockCli)(nil).RegistryClient), arg0) } @@ -295,7 +299,7 @@ func (m *MockCli) SetIn(arg0 *streams.In) { } // SetIn indicates an expected call of SetIn. -func (mr *MockCliMockRecorder) SetIn(arg0 interface{}) *gomock.Call { +func (mr *MockCliMockRecorder) SetIn(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIn", reflect.TypeOf((*MockCli)(nil).SetIn), arg0) } diff --git a/pkg/mocks/mock_docker_compose_api.go b/pkg/mocks/mock_docker_compose_api.go index 20e23cf7b26..580c1a38ddc 100644 --- a/pkg/mocks/mock_docker_compose_api.go +++ b/pkg/mocks/mock_docker_compose_api.go @@ -1,6 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: ./pkg/api/api.go - +// +// Generated by this command: +// +// mockgen -destination pkg/mocks/mock_docker_compose_api.go -package mocks -source=./pkg/api/api.go Service +// // Package mocks is a generated GoMock package. package mocks @@ -10,7 +14,7 @@ import ( types "github.com/compose-spec/compose-go/v2/types" api "github.com/docker/compose/v2/pkg/api" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" ) // MockService is a mock of Service interface. @@ -45,7 +49,7 @@ func (m *MockService) Build(ctx context.Context, project *types.Project, options } // Build indicates an expected call of Build. -func (mr *MockServiceMockRecorder) Build(ctx, project, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Build(ctx, project, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Build", reflect.TypeOf((*MockService)(nil).Build), ctx, project, options) } @@ -60,7 +64,7 @@ func (m *MockService) Config(ctx context.Context, project *types.Project, option } // Config indicates an expected call of Config. -func (mr *MockServiceMockRecorder) Config(ctx, project, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Config(ctx, project, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockService)(nil).Config), ctx, project, options) } @@ -74,7 +78,7 @@ func (m *MockService) Copy(ctx context.Context, projectName string, options api. } // Copy indicates an expected call of Copy. -func (mr *MockServiceMockRecorder) Copy(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Copy(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Copy", reflect.TypeOf((*MockService)(nil).Copy), ctx, projectName, options) } @@ -88,7 +92,7 @@ func (m *MockService) Create(ctx context.Context, project *types.Project, option } // Create indicates an expected call of Create. -func (mr *MockServiceMockRecorder) Create(ctx, project, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Create(ctx, project, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockService)(nil).Create), ctx, project, options) } @@ -102,7 +106,7 @@ func (m *MockService) Down(ctx context.Context, projectName string, options api. } // Down indicates an expected call of Down. -func (mr *MockServiceMockRecorder) Down(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Down(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Down", reflect.TypeOf((*MockService)(nil).Down), ctx, projectName, options) } @@ -117,7 +121,7 @@ func (m *MockService) DryRunMode(ctx context.Context, dryRun bool) (context.Cont } // DryRunMode indicates an expected call of DryRunMode. -func (mr *MockServiceMockRecorder) DryRunMode(ctx, dryRun interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) DryRunMode(ctx, dryRun any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DryRunMode", reflect.TypeOf((*MockService)(nil).DryRunMode), ctx, dryRun) } @@ -131,7 +135,7 @@ func (m *MockService) Events(ctx context.Context, projectName string, options ap } // Events indicates an expected call of Events. -func (mr *MockServiceMockRecorder) Events(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Events(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Events", reflect.TypeOf((*MockService)(nil).Events), ctx, projectName, options) } @@ -146,7 +150,7 @@ func (m *MockService) Exec(ctx context.Context, projectName string, options api. } // Exec indicates an expected call of Exec. -func (mr *MockServiceMockRecorder) Exec(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Exec(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockService)(nil).Exec), ctx, projectName, options) } @@ -161,7 +165,7 @@ func (m *MockService) Images(ctx context.Context, projectName string, options ap } // Images indicates an expected call of Images. -func (mr *MockServiceMockRecorder) Images(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Images(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Images", reflect.TypeOf((*MockService)(nil).Images), ctx, projectName, options) } @@ -175,7 +179,7 @@ func (m *MockService) Kill(ctx context.Context, projectName string, options api. } // Kill indicates an expected call of Kill. -func (mr *MockServiceMockRecorder) Kill(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Kill(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kill", reflect.TypeOf((*MockService)(nil).Kill), ctx, projectName, options) } @@ -190,7 +194,7 @@ func (m *MockService) List(ctx context.Context, options api.ListOptions) ([]api. } // List indicates an expected call of List. -func (mr *MockServiceMockRecorder) List(ctx, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) List(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockService)(nil).List), ctx, options) } @@ -204,7 +208,7 @@ func (m *MockService) Logs(ctx context.Context, projectName string, consumer api } // Logs indicates an expected call of Logs. -func (mr *MockServiceMockRecorder) Logs(ctx, projectName, consumer, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Logs(ctx, projectName, consumer, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logs", reflect.TypeOf((*MockService)(nil).Logs), ctx, projectName, consumer, options) } @@ -216,7 +220,7 @@ func (m *MockService) MaxConcurrency(parallel int) { } // MaxConcurrency indicates an expected call of MaxConcurrency. -func (mr *MockServiceMockRecorder) MaxConcurrency(parallel interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) MaxConcurrency(parallel any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxConcurrency", reflect.TypeOf((*MockService)(nil).MaxConcurrency), parallel) } @@ -230,7 +234,7 @@ func (m *MockService) Pause(ctx context.Context, projectName string, options api } // Pause indicates an expected call of Pause. -func (mr *MockServiceMockRecorder) Pause(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Pause(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pause", reflect.TypeOf((*MockService)(nil).Pause), ctx, projectName, options) } @@ -246,7 +250,7 @@ func (m *MockService) Port(ctx context.Context, projectName, service string, por } // Port indicates an expected call of Port. -func (mr *MockServiceMockRecorder) Port(ctx, projectName, service, port, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Port(ctx, projectName, service, port, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Port", reflect.TypeOf((*MockService)(nil).Port), ctx, projectName, service, port, options) } @@ -261,7 +265,7 @@ func (m *MockService) Ps(ctx context.Context, projectName string, options api.Ps } // Ps indicates an expected call of Ps. -func (mr *MockServiceMockRecorder) Ps(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Ps(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ps", reflect.TypeOf((*MockService)(nil).Ps), ctx, projectName, options) } @@ -275,7 +279,7 @@ func (m *MockService) Publish(ctx context.Context, project *types.Project, repos } // Publish indicates an expected call of Publish. -func (mr *MockServiceMockRecorder) Publish(ctx, project, repository, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Publish(ctx, project, repository, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Publish", reflect.TypeOf((*MockService)(nil).Publish), ctx, project, repository, options) } @@ -289,7 +293,7 @@ func (m *MockService) Pull(ctx context.Context, project *types.Project, options } // Pull indicates an expected call of Pull. -func (mr *MockServiceMockRecorder) Pull(ctx, project, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Pull(ctx, project, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pull", reflect.TypeOf((*MockService)(nil).Pull), ctx, project, options) } @@ -303,7 +307,7 @@ func (m *MockService) Push(ctx context.Context, project *types.Project, options } // Push indicates an expected call of Push. -func (mr *MockServiceMockRecorder) Push(ctx, project, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Push(ctx, project, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Push", reflect.TypeOf((*MockService)(nil).Push), ctx, project, options) } @@ -317,7 +321,7 @@ func (m *MockService) Remove(ctx context.Context, projectName string, options ap } // Remove indicates an expected call of Remove. -func (mr *MockServiceMockRecorder) Remove(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Remove(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockService)(nil).Remove), ctx, projectName, options) } @@ -331,7 +335,7 @@ func (m *MockService) Restart(ctx context.Context, projectName string, options a } // Restart indicates an expected call of Restart. -func (mr *MockServiceMockRecorder) Restart(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Restart(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Restart", reflect.TypeOf((*MockService)(nil).Restart), ctx, projectName, options) } @@ -346,7 +350,7 @@ func (m *MockService) RunOneOffContainer(ctx context.Context, project *types.Pro } // RunOneOffContainer indicates an expected call of RunOneOffContainer. -func (mr *MockServiceMockRecorder) RunOneOffContainer(ctx, project, opts interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) RunOneOffContainer(ctx, project, opts any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunOneOffContainer", reflect.TypeOf((*MockService)(nil).RunOneOffContainer), ctx, project, opts) } @@ -360,7 +364,7 @@ func (m *MockService) Scale(ctx context.Context, project *types.Project, options } // Scale indicates an expected call of Scale. -func (mr *MockServiceMockRecorder) Scale(ctx, project, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Scale(ctx, project, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Scale", reflect.TypeOf((*MockService)(nil).Scale), ctx, project, options) } @@ -374,7 +378,7 @@ func (m *MockService) Start(ctx context.Context, projectName string, options api } // Start indicates an expected call of Start. -func (mr *MockServiceMockRecorder) Start(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Start(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockService)(nil).Start), ctx, projectName, options) } @@ -388,7 +392,7 @@ func (m *MockService) Stop(ctx context.Context, projectName string, options api. } // Stop indicates an expected call of Stop. -func (mr *MockServiceMockRecorder) Stop(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Stop(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockService)(nil).Stop), ctx, projectName, options) } @@ -403,7 +407,7 @@ func (m *MockService) Top(ctx context.Context, projectName string, services []st } // Top indicates an expected call of Top. -func (mr *MockServiceMockRecorder) Top(ctx, projectName, services interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Top(ctx, projectName, services any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Top", reflect.TypeOf((*MockService)(nil).Top), ctx, projectName, services) } @@ -417,7 +421,7 @@ func (m *MockService) UnPause(ctx context.Context, projectName string, options a } // UnPause indicates an expected call of UnPause. -func (mr *MockServiceMockRecorder) UnPause(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) UnPause(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnPause", reflect.TypeOf((*MockService)(nil).UnPause), ctx, projectName, options) } @@ -431,7 +435,7 @@ func (m *MockService) Up(ctx context.Context, project *types.Project, options ap } // Up indicates an expected call of Up. -func (mr *MockServiceMockRecorder) Up(ctx, project, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Up(ctx, project, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Up", reflect.TypeOf((*MockService)(nil).Up), ctx, project, options) } @@ -446,7 +450,7 @@ func (m *MockService) Viz(ctx context.Context, project *types.Project, options a } // Viz indicates an expected call of Viz. -func (mr *MockServiceMockRecorder) Viz(ctx, project, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Viz(ctx, project, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Viz", reflect.TypeOf((*MockService)(nil).Viz), ctx, project, options) } @@ -461,7 +465,7 @@ func (m *MockService) Wait(ctx context.Context, projectName string, options api. } // Wait indicates an expected call of Wait. -func (mr *MockServiceMockRecorder) Wait(ctx, projectName, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Wait(ctx, projectName, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockService)(nil).Wait), ctx, projectName, options) } @@ -475,7 +479,7 @@ func (m *MockService) Watch(ctx context.Context, project *types.Project, service } // Watch indicates an expected call of Watch. -func (mr *MockServiceMockRecorder) Watch(ctx, project, services, options interface{}) *gomock.Call { +func (mr *MockServiceMockRecorder) Watch(ctx, project, services, options any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockService)(nil).Watch), ctx, project, services, options) } @@ -510,7 +514,7 @@ func (m *MockLogConsumer) Err(containerName, message string) { } // Err indicates an expected call of Err. -func (mr *MockLogConsumerMockRecorder) Err(containerName, message interface{}) *gomock.Call { +func (mr *MockLogConsumerMockRecorder) Err(containerName, message any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockLogConsumer)(nil).Err), containerName, message) } @@ -522,7 +526,7 @@ func (m *MockLogConsumer) Log(containerName, message string) { } // Log indicates an expected call of Log. -func (mr *MockLogConsumerMockRecorder) Log(containerName, message interface{}) *gomock.Call { +func (mr *MockLogConsumerMockRecorder) Log(containerName, message any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Log", reflect.TypeOf((*MockLogConsumer)(nil).Log), containerName, message) } @@ -534,7 +538,7 @@ func (m *MockLogConsumer) Register(container string) { } // Register indicates an expected call of Register. -func (mr *MockLogConsumerMockRecorder) Register(container interface{}) *gomock.Call { +func (mr *MockLogConsumerMockRecorder) Register(container any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockLogConsumer)(nil).Register), container) } @@ -546,7 +550,7 @@ func (m *MockLogConsumer) Status(container, msg string) { } // Status indicates an expected call of Status. -func (mr *MockLogConsumerMockRecorder) Status(container, msg interface{}) *gomock.Call { +func (mr *MockLogConsumerMockRecorder) Status(container, msg any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockLogConsumer)(nil).Status), container, msg) } diff --git a/pkg/prompt/prompt_mock.go b/pkg/prompt/prompt_mock.go index 9acee1ddba6..6b776741510 100644 --- a/pkg/prompt/prompt_mock.go +++ b/pkg/prompt/prompt_mock.go @@ -7,7 +7,7 @@ package prompt import ( reflect "reflect" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" ) // MockUI is a mock of UI interface