diff --git a/go.mod b/go.mod index f020b89fc..41f7b9cb1 100644 --- a/go.mod +++ b/go.mod @@ -125,7 +125,7 @@ require ( github.com/google/cel-go v0.30.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.30.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect - github.com/huandu/xstrings v1.4.0 // indirect + github.com/huandu/xstrings v1.5.0 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect diff --git a/go.sum b/go.sum index 53beeb778..4b439bbce 100644 --- a/go.sum +++ b/go.sum @@ -228,8 +228,8 @@ github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hetznercloud/hcloud-go/v2 v2.47.0 h1:SI7C4cvdYReb2aHUEQ8KBMOqxNnmd4hOZti1SbPq3Qk= github.com/hetznercloud/hcloud-go/v2 v2.47.0/go.mod h1:pdG7fFGlYsCAaJ9r0QOIF0O6wQcpbJxT2VT8aP6XlIc= -github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= -github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= +github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= diff --git a/internal/mock/authz_access_evaluator.go b/internal/mock/authz_access_evaluator.go index 4f6be3165..7612cced6 100644 --- a/internal/mock/authz_access_evaluator.go +++ b/internal/mock/authz_access_evaluator.go @@ -10,21 +10,21 @@ import ( mock "github.com/stretchr/testify/mock" ) -// MockAuthzAccessEvaluator is an autogenerated mock type for the AccessEvaluator type -type MockAuthzAccessEvaluator struct { +// MockauthzAccessEvaluator is an autogenerated mock type for the AccessEvaluator type +type MockauthzAccessEvaluator struct { mock.Mock } -type MockAuthzAccessEvaluator_Expecter struct { +type MockauthzAccessEvaluator_Expecter struct { mock *mock.Mock } -func (_m *MockAuthzAccessEvaluator) EXPECT() *MockAuthzAccessEvaluator_Expecter { - return &MockAuthzAccessEvaluator_Expecter{mock: &_m.Mock} +func (_m *MockauthzAccessEvaluator) EXPECT() *MockauthzAccessEvaluator_Expecter { + return &MockauthzAccessEvaluator_Expecter{mock: &_m.Mock} } // AccessAuthorized provides a mock function with given fields: ctx, opts -func (_m *MockAuthzAccessEvaluator) AccessAuthorized(ctx context.Context, opts ...authz.AccessRuleOption) error { +func (_m *MockauthzAccessEvaluator) AccessAuthorized(ctx context.Context, opts ...authz.AccessRuleOption) error { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -48,20 +48,20 @@ func (_m *MockAuthzAccessEvaluator) AccessAuthorized(ctx context.Context, opts . return r0 } -// MockAuthzAccessEvaluator_AccessAuthorized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccessAuthorized' -type MockAuthzAccessEvaluator_AccessAuthorized_Call struct { +// MockauthzAccessEvaluator_AccessAuthorized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccessAuthorized' +type MockauthzAccessEvaluator_AccessAuthorized_Call struct { *mock.Call } // AccessAuthorized is a helper method to define mock.On call // - ctx context.Context // - opts ...authz.AccessRuleOption -func (_e *MockAuthzAccessEvaluator_Expecter) AccessAuthorized(ctx interface{}, opts ...interface{}) *MockAuthzAccessEvaluator_AccessAuthorized_Call { - return &MockAuthzAccessEvaluator_AccessAuthorized_Call{Call: _e.mock.On("AccessAuthorized", +func (_e *MockauthzAccessEvaluator_Expecter) AccessAuthorized(ctx interface{}, opts ...interface{}) *MockauthzAccessEvaluator_AccessAuthorized_Call { + return &MockauthzAccessEvaluator_AccessAuthorized_Call{Call: _e.mock.On("AccessAuthorized", append([]interface{}{ctx}, opts...)...)} } -func (_c *MockAuthzAccessEvaluator_AccessAuthorized_Call) Run(run func(ctx context.Context, opts ...authz.AccessRuleOption)) *MockAuthzAccessEvaluator_AccessAuthorized_Call { +func (_c *MockauthzAccessEvaluator_AccessAuthorized_Call) Run(run func(ctx context.Context, opts ...authz.AccessRuleOption)) *MockauthzAccessEvaluator_AccessAuthorized_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]authz.AccessRuleOption, len(args)-1) for i, a := range args[1:] { @@ -74,23 +74,23 @@ func (_c *MockAuthzAccessEvaluator_AccessAuthorized_Call) Run(run func(ctx conte return _c } -func (_c *MockAuthzAccessEvaluator_AccessAuthorized_Call) Return(_a0 error) *MockAuthzAccessEvaluator_AccessAuthorized_Call { +func (_c *MockauthzAccessEvaluator_AccessAuthorized_Call) Return(_a0 error) *MockauthzAccessEvaluator_AccessAuthorized_Call { _c.Call.Return(_a0) return _c } -func (_c *MockAuthzAccessEvaluator_AccessAuthorized_Call) RunAndReturn(run func(context.Context, ...authz.AccessRuleOption) error) *MockAuthzAccessEvaluator_AccessAuthorized_Call { +func (_c *MockauthzAccessEvaluator_AccessAuthorized_Call) RunAndReturn(run func(context.Context, ...authz.AccessRuleOption) error) *MockauthzAccessEvaluator_AccessAuthorized_Call { _c.Call.Return(run) return _c } -// NewMockAuthzAccessEvaluator creates a new instance of MockAuthzAccessEvaluator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockauthzAccessEvaluator creates a new instance of MockauthzAccessEvaluator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockAuthzAccessEvaluator(t interface { +func NewMockauthzAccessEvaluator(t interface { mock.TestingT Cleanup(func()) -}) *MockAuthzAccessEvaluator { - mock := &MockAuthzAccessEvaluator{} +}) *MockauthzAccessEvaluator { + mock := &MockauthzAccessEvaluator{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/blob_presigner.go b/internal/mock/blob_presigner.go index eb13348d4..0d0893568 100644 --- a/internal/mock/blob_presigner.go +++ b/internal/mock/blob_presigner.go @@ -11,21 +11,21 @@ import ( v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" ) -// MockBlobPresigner is an autogenerated mock type for the Presigner type -type MockBlobPresigner struct { +// MockblobPresigner is an autogenerated mock type for the Presigner type +type MockblobPresigner struct { mock.Mock } -type MockBlobPresigner_Expecter struct { +type MockblobPresigner_Expecter struct { mock *mock.Mock } -func (_m *MockBlobPresigner) EXPECT() *MockBlobPresigner_Expecter { - return &MockBlobPresigner_Expecter{mock: &_m.Mock} +func (_m *MockblobPresigner) EXPECT() *MockblobPresigner_Expecter { + return &MockblobPresigner_Expecter{mock: &_m.Mock} } // PresignPutObject provides a mock function with given fields: ctx, params, optFns -func (_m *MockBlobPresigner) PresignPutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.PresignOptions)) (*v4.PresignedHTTPRequest, error) { +func (_m *MockblobPresigner) PresignPutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.PresignOptions)) (*v4.PresignedHTTPRequest, error) { _va := make([]interface{}, len(optFns)) for _i := range optFns { _va[_i] = optFns[_i] @@ -61,8 +61,8 @@ func (_m *MockBlobPresigner) PresignPutObject(ctx context.Context, params *s3.Pu return r0, r1 } -// MockBlobPresigner_PresignPutObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PresignPutObject' -type MockBlobPresigner_PresignPutObject_Call struct { +// MockblobPresigner_PresignPutObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PresignPutObject' +type MockblobPresigner_PresignPutObject_Call struct { *mock.Call } @@ -70,12 +70,12 @@ type MockBlobPresigner_PresignPutObject_Call struct { // - ctx context.Context // - params *s3.PutObjectInput // - optFns ...func(*s3.PresignOptions) -func (_e *MockBlobPresigner_Expecter) PresignPutObject(ctx interface{}, params interface{}, optFns ...interface{}) *MockBlobPresigner_PresignPutObject_Call { - return &MockBlobPresigner_PresignPutObject_Call{Call: _e.mock.On("PresignPutObject", +func (_e *MockblobPresigner_Expecter) PresignPutObject(ctx interface{}, params interface{}, optFns ...interface{}) *MockblobPresigner_PresignPutObject_Call { + return &MockblobPresigner_PresignPutObject_Call{Call: _e.mock.On("PresignPutObject", append([]interface{}{ctx, params}, optFns...)...)} } -func (_c *MockBlobPresigner_PresignPutObject_Call) Run(run func(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.PresignOptions))) *MockBlobPresigner_PresignPutObject_Call { +func (_c *MockblobPresigner_PresignPutObject_Call) Run(run func(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.PresignOptions))) *MockblobPresigner_PresignPutObject_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]func(*s3.PresignOptions), len(args)-2) for i, a := range args[2:] { @@ -88,23 +88,23 @@ func (_c *MockBlobPresigner_PresignPutObject_Call) Run(run func(ctx context.Cont return _c } -func (_c *MockBlobPresigner_PresignPutObject_Call) Return(_a0 *v4.PresignedHTTPRequest, _a1 error) *MockBlobPresigner_PresignPutObject_Call { +func (_c *MockblobPresigner_PresignPutObject_Call) Return(_a0 *v4.PresignedHTTPRequest, _a1 error) *MockblobPresigner_PresignPutObject_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockBlobPresigner_PresignPutObject_Call) RunAndReturn(run func(context.Context, *s3.PutObjectInput, ...func(*s3.PresignOptions)) (*v4.PresignedHTTPRequest, error)) *MockBlobPresigner_PresignPutObject_Call { +func (_c *MockblobPresigner_PresignPutObject_Call) RunAndReturn(run func(context.Context, *s3.PutObjectInput, ...func(*s3.PresignOptions)) (*v4.PresignedHTTPRequest, error)) *MockblobPresigner_PresignPutObject_Call { _c.Call.Return(run) return _c } -// NewMockBlobPresigner creates a new instance of MockBlobPresigner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockblobPresigner creates a new instance of MockblobPresigner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockBlobPresigner(t interface { +func NewMockblobPresigner(t interface { mock.TestingT Cleanup(func()) -}) *MockBlobPresigner { - mock := &MockBlobPresigner{} +}) *MockblobPresigner { + mock := &MockblobPresigner{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/blob_s3_store.go b/internal/mock/blob_s3_store.go index 9269fb2b1..a1c7de80d 100644 --- a/internal/mock/blob_s3_store.go +++ b/internal/mock/blob_s3_store.go @@ -14,21 +14,21 @@ import ( time "time" ) -// MockBlobS3Store is an autogenerated mock type for the S3Store type -type MockBlobS3Store struct { +// MockblobS3Store is an autogenerated mock type for the S3Store type +type MockblobS3Store struct { mock.Mock } -type MockBlobS3Store_Expecter struct { +type MockblobS3Store_Expecter struct { mock *mock.Mock } -func (_m *MockBlobS3Store) EXPECT() *MockBlobS3Store_Expecter { - return &MockBlobS3Store_Expecter{mock: &_m.Mock} +func (_m *MockblobS3Store) EXPECT() *MockblobS3Store_Expecter { + return &MockblobS3Store_Expecter{mock: &_m.Mock} } // ObjectExists provides a mock function with given fields: ctx, key -func (_m *MockBlobS3Store) ObjectExists(ctx context.Context, key string) (bool, error) { +func (_m *MockblobS3Store) ObjectExists(ctx context.Context, key string) (bool, error) { ret := _m.Called(ctx, key) if len(ret) == 0 { @@ -55,37 +55,37 @@ func (_m *MockBlobS3Store) ObjectExists(ctx context.Context, key string) (bool, return r0, r1 } -// MockBlobS3Store_ObjectExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObjectExists' -type MockBlobS3Store_ObjectExists_Call struct { +// MockblobS3Store_ObjectExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObjectExists' +type MockblobS3Store_ObjectExists_Call struct { *mock.Call } // ObjectExists is a helper method to define mock.On call // - ctx context.Context // - key string -func (_e *MockBlobS3Store_Expecter) ObjectExists(ctx interface{}, key interface{}) *MockBlobS3Store_ObjectExists_Call { - return &MockBlobS3Store_ObjectExists_Call{Call: _e.mock.On("ObjectExists", ctx, key)} +func (_e *MockblobS3Store_Expecter) ObjectExists(ctx interface{}, key interface{}) *MockblobS3Store_ObjectExists_Call { + return &MockblobS3Store_ObjectExists_Call{Call: _e.mock.On("ObjectExists", ctx, key)} } -func (_c *MockBlobS3Store_ObjectExists_Call) Run(run func(ctx context.Context, key string)) *MockBlobS3Store_ObjectExists_Call { +func (_c *MockblobS3Store_ObjectExists_Call) Run(run func(ctx context.Context, key string)) *MockblobS3Store_ObjectExists_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockBlobS3Store_ObjectExists_Call) Return(_a0 bool, _a1 error) *MockBlobS3Store_ObjectExists_Call { +func (_c *MockblobS3Store_ObjectExists_Call) Return(_a0 bool, _a1 error) *MockblobS3Store_ObjectExists_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockBlobS3Store_ObjectExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockBlobS3Store_ObjectExists_Call { +func (_c *MockblobS3Store_ObjectExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockblobS3Store_ObjectExists_Call { _c.Call.Return(run) return _c } // PresignURL provides a mock function with given fields: ctx, key, contentHash, expiry, contentLength -func (_m *MockBlobS3Store) PresignURL(ctx context.Context, key string, contentHash string, expiry time.Duration, contentLength uint64) (string, time.Time, error) { +func (_m *MockblobS3Store) PresignURL(ctx context.Context, key string, contentHash string, expiry time.Duration, contentLength uint64) (string, time.Time, error) { ret := _m.Called(ctx, key, contentHash, expiry, contentLength) if len(ret) == 0 { @@ -119,8 +119,8 @@ func (_m *MockBlobS3Store) PresignURL(ctx context.Context, key string, contentHa return r0, r1, r2 } -// MockBlobS3Store_PresignURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PresignURL' -type MockBlobS3Store_PresignURL_Call struct { +// MockblobS3Store_PresignURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PresignURL' +type MockblobS3Store_PresignURL_Call struct { *mock.Call } @@ -130,29 +130,29 @@ type MockBlobS3Store_PresignURL_Call struct { // - contentHash string // - expiry time.Duration // - contentLength uint64 -func (_e *MockBlobS3Store_Expecter) PresignURL(ctx interface{}, key interface{}, contentHash interface{}, expiry interface{}, contentLength interface{}) *MockBlobS3Store_PresignURL_Call { - return &MockBlobS3Store_PresignURL_Call{Call: _e.mock.On("PresignURL", ctx, key, contentHash, expiry, contentLength)} +func (_e *MockblobS3Store_Expecter) PresignURL(ctx interface{}, key interface{}, contentHash interface{}, expiry interface{}, contentLength interface{}) *MockblobS3Store_PresignURL_Call { + return &MockblobS3Store_PresignURL_Call{Call: _e.mock.On("PresignURL", ctx, key, contentHash, expiry, contentLength)} } -func (_c *MockBlobS3Store_PresignURL_Call) Run(run func(ctx context.Context, key string, contentHash string, expiry time.Duration, contentLength uint64)) *MockBlobS3Store_PresignURL_Call { +func (_c *MockblobS3Store_PresignURL_Call) Run(run func(ctx context.Context, key string, contentHash string, expiry time.Duration, contentLength uint64)) *MockblobS3Store_PresignURL_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(time.Duration), args[4].(uint64)) }) return _c } -func (_c *MockBlobS3Store_PresignURL_Call) Return(_a0 string, _a1 time.Time, _a2 error) *MockBlobS3Store_PresignURL_Call { +func (_c *MockblobS3Store_PresignURL_Call) Return(_a0 string, _a1 time.Time, _a2 error) *MockblobS3Store_PresignURL_Call { _c.Call.Return(_a0, _a1, _a2) return _c } -func (_c *MockBlobS3Store_PresignURL_Call) RunAndReturn(run func(context.Context, string, string, time.Duration, uint64) (string, time.Time, error)) *MockBlobS3Store_PresignURL_Call { +func (_c *MockblobS3Store_PresignURL_Call) RunAndReturn(run func(context.Context, string, string, time.Duration, uint64) (string, time.Time, error)) *MockblobS3Store_PresignURL_Call { _c.Call.Return(run) return _c } // PutBlob provides a mock function with given fields: ctx, keyPrefix, objects -func (_m *MockBlobS3Store) PutBlob(ctx context.Context, keyPrefix string, objects []blob.Object) error { +func (_m *MockblobS3Store) PutBlob(ctx context.Context, keyPrefix string, objects []blob.Object) error { ret := _m.Called(ctx, keyPrefix, objects) if len(ret) == 0 { @@ -169,8 +169,8 @@ func (_m *MockBlobS3Store) PutBlob(ctx context.Context, keyPrefix string, object return r0 } -// MockBlobS3Store_PutBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutBlob' -type MockBlobS3Store_PutBlob_Call struct { +// MockblobS3Store_PutBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutBlob' +type MockblobS3Store_PutBlob_Call struct { *mock.Call } @@ -178,29 +178,29 @@ type MockBlobS3Store_PutBlob_Call struct { // - ctx context.Context // - keyPrefix string // - objects []blob.Object -func (_e *MockBlobS3Store_Expecter) PutBlob(ctx interface{}, keyPrefix interface{}, objects interface{}) *MockBlobS3Store_PutBlob_Call { - return &MockBlobS3Store_PutBlob_Call{Call: _e.mock.On("PutBlob", ctx, keyPrefix, objects)} +func (_e *MockblobS3Store_Expecter) PutBlob(ctx interface{}, keyPrefix interface{}, objects interface{}) *MockblobS3Store_PutBlob_Call { + return &MockblobS3Store_PutBlob_Call{Call: _e.mock.On("PutBlob", ctx, keyPrefix, objects)} } -func (_c *MockBlobS3Store_PutBlob_Call) Run(run func(ctx context.Context, keyPrefix string, objects []blob.Object)) *MockBlobS3Store_PutBlob_Call { +func (_c *MockblobS3Store_PutBlob_Call) Run(run func(ctx context.Context, keyPrefix string, objects []blob.Object)) *MockblobS3Store_PutBlob_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].([]blob.Object)) }) return _c } -func (_c *MockBlobS3Store_PutBlob_Call) Return(_a0 error) *MockBlobS3Store_PutBlob_Call { +func (_c *MockblobS3Store_PutBlob_Call) Return(_a0 error) *MockblobS3Store_PutBlob_Call { _c.Call.Return(_a0) return _c } -func (_c *MockBlobS3Store_PutBlob_Call) RunAndReturn(run func(context.Context, string, []blob.Object) error) *MockBlobS3Store_PutBlob_Call { +func (_c *MockblobS3Store_PutBlob_Call) RunAndReturn(run func(context.Context, string, []blob.Object) error) *MockblobS3Store_PutBlob_Call { _c.Call.Return(run) return _c } // SimplePut provides a mock function with given fields: ctx, key, r, metadata -func (_m *MockBlobS3Store) SimplePut(ctx context.Context, key string, r io.Reader, metadata map[string]string) error { +func (_m *MockblobS3Store) SimplePut(ctx context.Context, key string, r io.Reader, metadata map[string]string) error { ret := _m.Called(ctx, key, r, metadata) if len(ret) == 0 { @@ -217,8 +217,8 @@ func (_m *MockBlobS3Store) SimplePut(ctx context.Context, key string, r io.Reade return r0 } -// MockBlobS3Store_SimplePut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SimplePut' -type MockBlobS3Store_SimplePut_Call struct { +// MockblobS3Store_SimplePut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SimplePut' +type MockblobS3Store_SimplePut_Call struct { *mock.Call } @@ -227,29 +227,29 @@ type MockBlobS3Store_SimplePut_Call struct { // - key string // - r io.Reader // - metadata map[string]string -func (_e *MockBlobS3Store_Expecter) SimplePut(ctx interface{}, key interface{}, r interface{}, metadata interface{}) *MockBlobS3Store_SimplePut_Call { - return &MockBlobS3Store_SimplePut_Call{Call: _e.mock.On("SimplePut", ctx, key, r, metadata)} +func (_e *MockblobS3Store_Expecter) SimplePut(ctx interface{}, key interface{}, r interface{}, metadata interface{}) *MockblobS3Store_SimplePut_Call { + return &MockblobS3Store_SimplePut_Call{Call: _e.mock.On("SimplePut", ctx, key, r, metadata)} } -func (_c *MockBlobS3Store_SimplePut_Call) Run(run func(ctx context.Context, key string, r io.Reader, metadata map[string]string)) *MockBlobS3Store_SimplePut_Call { +func (_c *MockblobS3Store_SimplePut_Call) Run(run func(ctx context.Context, key string, r io.Reader, metadata map[string]string)) *MockblobS3Store_SimplePut_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(io.Reader), args[3].(map[string]string)) }) return _c } -func (_c *MockBlobS3Store_SimplePut_Call) Return(_a0 error) *MockBlobS3Store_SimplePut_Call { +func (_c *MockblobS3Store_SimplePut_Call) Return(_a0 error) *MockblobS3Store_SimplePut_Call { _c.Call.Return(_a0) return _c } -func (_c *MockBlobS3Store_SimplePut_Call) RunAndReturn(run func(context.Context, string, io.Reader, map[string]string) error) *MockBlobS3Store_SimplePut_Call { +func (_c *MockblobS3Store_SimplePut_Call) RunAndReturn(run func(context.Context, string, io.Reader, map[string]string) error) *MockblobS3Store_SimplePut_Call { _c.Call.Return(run) return _c } // WriteTo provides a mock function with given fields: ctx, key, w -func (_m *MockBlobS3Store) WriteTo(ctx context.Context, key string, w io.Writer) error { +func (_m *MockblobS3Store) WriteTo(ctx context.Context, key string, w io.Writer) error { ret := _m.Called(ctx, key, w) if len(ret) == 0 { @@ -266,8 +266,8 @@ func (_m *MockBlobS3Store) WriteTo(ctx context.Context, key string, w io.Writer) return r0 } -// MockBlobS3Store_WriteTo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteTo' -type MockBlobS3Store_WriteTo_Call struct { +// MockblobS3Store_WriteTo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteTo' +type MockblobS3Store_WriteTo_Call struct { *mock.Call } @@ -275,34 +275,34 @@ type MockBlobS3Store_WriteTo_Call struct { // - ctx context.Context // - key string // - w io.Writer -func (_e *MockBlobS3Store_Expecter) WriteTo(ctx interface{}, key interface{}, w interface{}) *MockBlobS3Store_WriteTo_Call { - return &MockBlobS3Store_WriteTo_Call{Call: _e.mock.On("WriteTo", ctx, key, w)} +func (_e *MockblobS3Store_Expecter) WriteTo(ctx interface{}, key interface{}, w interface{}) *MockblobS3Store_WriteTo_Call { + return &MockblobS3Store_WriteTo_Call{Call: _e.mock.On("WriteTo", ctx, key, w)} } -func (_c *MockBlobS3Store_WriteTo_Call) Run(run func(ctx context.Context, key string, w io.Writer)) *MockBlobS3Store_WriteTo_Call { +func (_c *MockblobS3Store_WriteTo_Call) Run(run func(ctx context.Context, key string, w io.Writer)) *MockblobS3Store_WriteTo_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(io.Writer)) }) return _c } -func (_c *MockBlobS3Store_WriteTo_Call) Return(_a0 error) *MockBlobS3Store_WriteTo_Call { +func (_c *MockblobS3Store_WriteTo_Call) Return(_a0 error) *MockblobS3Store_WriteTo_Call { _c.Call.Return(_a0) return _c } -func (_c *MockBlobS3Store_WriteTo_Call) RunAndReturn(run func(context.Context, string, io.Writer) error) *MockBlobS3Store_WriteTo_Call { +func (_c *MockblobS3Store_WriteTo_Call) RunAndReturn(run func(context.Context, string, io.Writer) error) *MockblobS3Store_WriteTo_Call { _c.Call.Return(run) return _c } -// NewMockBlobS3Store creates a new instance of MockBlobS3Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockblobS3Store creates a new instance of MockblobS3Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockBlobS3Store(t interface { +func NewMockblobS3Store(t interface { mock.TestingT Cleanup(func()) -}) *MockBlobS3Store { - mock := &MockBlobS3Store{} +}) *MockblobS3Store { + mock := &MockblobS3Store{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/cache_snapshot_cache.go b/internal/mock/cache_snapshot_cache.go index af3cef64e..c1743af4d 100644 --- a/internal/mock/cache_snapshot_cache.go +++ b/internal/mock/cache_snapshot_cache.go @@ -12,54 +12,54 @@ import ( mock "github.com/stretchr/testify/mock" ) -// MockCacheSnapshotCache is an autogenerated mock type for the SnapshotCache type -type MockCacheSnapshotCache struct { +// MockcacheSnapshotCache is an autogenerated mock type for the SnapshotCache type +type MockcacheSnapshotCache struct { mock.Mock } -type MockCacheSnapshotCache_Expecter struct { +type MockcacheSnapshotCache_Expecter struct { mock *mock.Mock } -func (_m *MockCacheSnapshotCache) EXPECT() *MockCacheSnapshotCache_Expecter { - return &MockCacheSnapshotCache_Expecter{mock: &_m.Mock} +func (_m *MockcacheSnapshotCache) EXPECT() *MockcacheSnapshotCache_Expecter { + return &MockcacheSnapshotCache_Expecter{mock: &_m.Mock} } // ClearSnapshot provides a mock function with given fields: node -func (_m *MockCacheSnapshotCache) ClearSnapshot(node string) { +func (_m *MockcacheSnapshotCache) ClearSnapshot(node string) { _m.Called(node) } -// MockCacheSnapshotCache_ClearSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearSnapshot' -type MockCacheSnapshotCache_ClearSnapshot_Call struct { +// MockcacheSnapshotCache_ClearSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearSnapshot' +type MockcacheSnapshotCache_ClearSnapshot_Call struct { *mock.Call } // ClearSnapshot is a helper method to define mock.On call // - node string -func (_e *MockCacheSnapshotCache_Expecter) ClearSnapshot(node interface{}) *MockCacheSnapshotCache_ClearSnapshot_Call { - return &MockCacheSnapshotCache_ClearSnapshot_Call{Call: _e.mock.On("ClearSnapshot", node)} +func (_e *MockcacheSnapshotCache_Expecter) ClearSnapshot(node interface{}) *MockcacheSnapshotCache_ClearSnapshot_Call { + return &MockcacheSnapshotCache_ClearSnapshot_Call{Call: _e.mock.On("ClearSnapshot", node)} } -func (_c *MockCacheSnapshotCache_ClearSnapshot_Call) Run(run func(node string)) *MockCacheSnapshotCache_ClearSnapshot_Call { +func (_c *MockcacheSnapshotCache_ClearSnapshot_Call) Run(run func(node string)) *MockcacheSnapshotCache_ClearSnapshot_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string)) }) return _c } -func (_c *MockCacheSnapshotCache_ClearSnapshot_Call) Return() *MockCacheSnapshotCache_ClearSnapshot_Call { +func (_c *MockcacheSnapshotCache_ClearSnapshot_Call) Return() *MockcacheSnapshotCache_ClearSnapshot_Call { _c.Call.Return() return _c } -func (_c *MockCacheSnapshotCache_ClearSnapshot_Call) RunAndReturn(run func(string)) *MockCacheSnapshotCache_ClearSnapshot_Call { +func (_c *MockcacheSnapshotCache_ClearSnapshot_Call) RunAndReturn(run func(string)) *MockcacheSnapshotCache_ClearSnapshot_Call { _c.Run(run) return _c } // CreateDeltaWatch provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockCacheSnapshotCache) CreateDeltaWatch(_a0 *discoveryv3.DeltaDiscoveryRequest, _a1 cache.Subscription, _a2 chan cache.DeltaResponse) (func(), error) { +func (_m *MockcacheSnapshotCache) CreateDeltaWatch(_a0 *discoveryv3.DeltaDiscoveryRequest, _a1 cache.Subscription, _a2 chan cache.DeltaResponse) (func(), error) { ret := _m.Called(_a0, _a1, _a2) if len(ret) == 0 { @@ -88,8 +88,8 @@ func (_m *MockCacheSnapshotCache) CreateDeltaWatch(_a0 *discoveryv3.DeltaDiscove return r0, r1 } -// MockCacheSnapshotCache_CreateDeltaWatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDeltaWatch' -type MockCacheSnapshotCache_CreateDeltaWatch_Call struct { +// MockcacheSnapshotCache_CreateDeltaWatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDeltaWatch' +type MockcacheSnapshotCache_CreateDeltaWatch_Call struct { *mock.Call } @@ -97,29 +97,29 @@ type MockCacheSnapshotCache_CreateDeltaWatch_Call struct { // - _a0 *discoveryv3.DeltaDiscoveryRequest // - _a1 cache.Subscription // - _a2 chan cache.DeltaResponse -func (_e *MockCacheSnapshotCache_Expecter) CreateDeltaWatch(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockCacheSnapshotCache_CreateDeltaWatch_Call { - return &MockCacheSnapshotCache_CreateDeltaWatch_Call{Call: _e.mock.On("CreateDeltaWatch", _a0, _a1, _a2)} +func (_e *MockcacheSnapshotCache_Expecter) CreateDeltaWatch(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockcacheSnapshotCache_CreateDeltaWatch_Call { + return &MockcacheSnapshotCache_CreateDeltaWatch_Call{Call: _e.mock.On("CreateDeltaWatch", _a0, _a1, _a2)} } -func (_c *MockCacheSnapshotCache_CreateDeltaWatch_Call) Run(run func(_a0 *discoveryv3.DeltaDiscoveryRequest, _a1 cache.Subscription, _a2 chan cache.DeltaResponse)) *MockCacheSnapshotCache_CreateDeltaWatch_Call { +func (_c *MockcacheSnapshotCache_CreateDeltaWatch_Call) Run(run func(_a0 *discoveryv3.DeltaDiscoveryRequest, _a1 cache.Subscription, _a2 chan cache.DeltaResponse)) *MockcacheSnapshotCache_CreateDeltaWatch_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(*discoveryv3.DeltaDiscoveryRequest), args[1].(cache.Subscription), args[2].(chan cache.DeltaResponse)) }) return _c } -func (_c *MockCacheSnapshotCache_CreateDeltaWatch_Call) Return(cancel func(), err error) *MockCacheSnapshotCache_CreateDeltaWatch_Call { +func (_c *MockcacheSnapshotCache_CreateDeltaWatch_Call) Return(cancel func(), err error) *MockcacheSnapshotCache_CreateDeltaWatch_Call { _c.Call.Return(cancel, err) return _c } -func (_c *MockCacheSnapshotCache_CreateDeltaWatch_Call) RunAndReturn(run func(*discoveryv3.DeltaDiscoveryRequest, cache.Subscription, chan cache.DeltaResponse) (func(), error)) *MockCacheSnapshotCache_CreateDeltaWatch_Call { +func (_c *MockcacheSnapshotCache_CreateDeltaWatch_Call) RunAndReturn(run func(*discoveryv3.DeltaDiscoveryRequest, cache.Subscription, chan cache.DeltaResponse) (func(), error)) *MockcacheSnapshotCache_CreateDeltaWatch_Call { _c.Call.Return(run) return _c } // CreateWatch provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockCacheSnapshotCache) CreateWatch(_a0 *discoveryv3.DiscoveryRequest, _a1 cache.Subscription, _a2 chan cache.Response) (func(), error) { +func (_m *MockcacheSnapshotCache) CreateWatch(_a0 *discoveryv3.DiscoveryRequest, _a1 cache.Subscription, _a2 chan cache.Response) (func(), error) { ret := _m.Called(_a0, _a1, _a2) if len(ret) == 0 { @@ -148,8 +148,8 @@ func (_m *MockCacheSnapshotCache) CreateWatch(_a0 *discoveryv3.DiscoveryRequest, return r0, r1 } -// MockCacheSnapshotCache_CreateWatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateWatch' -type MockCacheSnapshotCache_CreateWatch_Call struct { +// MockcacheSnapshotCache_CreateWatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateWatch' +type MockcacheSnapshotCache_CreateWatch_Call struct { *mock.Call } @@ -157,29 +157,29 @@ type MockCacheSnapshotCache_CreateWatch_Call struct { // - _a0 *discoveryv3.DiscoveryRequest // - _a1 cache.Subscription // - _a2 chan cache.Response -func (_e *MockCacheSnapshotCache_Expecter) CreateWatch(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockCacheSnapshotCache_CreateWatch_Call { - return &MockCacheSnapshotCache_CreateWatch_Call{Call: _e.mock.On("CreateWatch", _a0, _a1, _a2)} +func (_e *MockcacheSnapshotCache_Expecter) CreateWatch(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockcacheSnapshotCache_CreateWatch_Call { + return &MockcacheSnapshotCache_CreateWatch_Call{Call: _e.mock.On("CreateWatch", _a0, _a1, _a2)} } -func (_c *MockCacheSnapshotCache_CreateWatch_Call) Run(run func(_a0 *discoveryv3.DiscoveryRequest, _a1 cache.Subscription, _a2 chan cache.Response)) *MockCacheSnapshotCache_CreateWatch_Call { +func (_c *MockcacheSnapshotCache_CreateWatch_Call) Run(run func(_a0 *discoveryv3.DiscoveryRequest, _a1 cache.Subscription, _a2 chan cache.Response)) *MockcacheSnapshotCache_CreateWatch_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(*discoveryv3.DiscoveryRequest), args[1].(cache.Subscription), args[2].(chan cache.Response)) }) return _c } -func (_c *MockCacheSnapshotCache_CreateWatch_Call) Return(cancel func(), err error) *MockCacheSnapshotCache_CreateWatch_Call { +func (_c *MockcacheSnapshotCache_CreateWatch_Call) Return(cancel func(), err error) *MockcacheSnapshotCache_CreateWatch_Call { _c.Call.Return(cancel, err) return _c } -func (_c *MockCacheSnapshotCache_CreateWatch_Call) RunAndReturn(run func(*discoveryv3.DiscoveryRequest, cache.Subscription, chan cache.Response) (func(), error)) *MockCacheSnapshotCache_CreateWatch_Call { +func (_c *MockcacheSnapshotCache_CreateWatch_Call) RunAndReturn(run func(*discoveryv3.DiscoveryRequest, cache.Subscription, chan cache.Response) (func(), error)) *MockcacheSnapshotCache_CreateWatch_Call { _c.Call.Return(run) return _c } // Fetch provides a mock function with given fields: _a0, _a1 -func (_m *MockCacheSnapshotCache) Fetch(_a0 context.Context, _a1 *discoveryv3.DiscoveryRequest) (cache.Response, error) { +func (_m *MockcacheSnapshotCache) Fetch(_a0 context.Context, _a1 *discoveryv3.DiscoveryRequest) (cache.Response, error) { ret := _m.Called(_a0, _a1) if len(ret) == 0 { @@ -208,37 +208,37 @@ func (_m *MockCacheSnapshotCache) Fetch(_a0 context.Context, _a1 *discoveryv3.Di return r0, r1 } -// MockCacheSnapshotCache_Fetch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fetch' -type MockCacheSnapshotCache_Fetch_Call struct { +// MockcacheSnapshotCache_Fetch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fetch' +type MockcacheSnapshotCache_Fetch_Call struct { *mock.Call } // Fetch is a helper method to define mock.On call // - _a0 context.Context // - _a1 *discoveryv3.DiscoveryRequest -func (_e *MockCacheSnapshotCache_Expecter) Fetch(_a0 interface{}, _a1 interface{}) *MockCacheSnapshotCache_Fetch_Call { - return &MockCacheSnapshotCache_Fetch_Call{Call: _e.mock.On("Fetch", _a0, _a1)} +func (_e *MockcacheSnapshotCache_Expecter) Fetch(_a0 interface{}, _a1 interface{}) *MockcacheSnapshotCache_Fetch_Call { + return &MockcacheSnapshotCache_Fetch_Call{Call: _e.mock.On("Fetch", _a0, _a1)} } -func (_c *MockCacheSnapshotCache_Fetch_Call) Run(run func(_a0 context.Context, _a1 *discoveryv3.DiscoveryRequest)) *MockCacheSnapshotCache_Fetch_Call { +func (_c *MockcacheSnapshotCache_Fetch_Call) Run(run func(_a0 context.Context, _a1 *discoveryv3.DiscoveryRequest)) *MockcacheSnapshotCache_Fetch_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(*discoveryv3.DiscoveryRequest)) }) return _c } -func (_c *MockCacheSnapshotCache_Fetch_Call) Return(_a0 cache.Response, _a1 error) *MockCacheSnapshotCache_Fetch_Call { +func (_c *MockcacheSnapshotCache_Fetch_Call) Return(_a0 cache.Response, _a1 error) *MockcacheSnapshotCache_Fetch_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCacheSnapshotCache_Fetch_Call) RunAndReturn(run func(context.Context, *discoveryv3.DiscoveryRequest) (cache.Response, error)) *MockCacheSnapshotCache_Fetch_Call { +func (_c *MockcacheSnapshotCache_Fetch_Call) RunAndReturn(run func(context.Context, *discoveryv3.DiscoveryRequest) (cache.Response, error)) *MockcacheSnapshotCache_Fetch_Call { _c.Call.Return(run) return _c } // GetSnapshot provides a mock function with given fields: node -func (_m *MockCacheSnapshotCache) GetSnapshot(node string) (cache.ResourceSnapshot, error) { +func (_m *MockcacheSnapshotCache) GetSnapshot(node string) (cache.ResourceSnapshot, error) { ret := _m.Called(node) if len(ret) == 0 { @@ -267,36 +267,36 @@ func (_m *MockCacheSnapshotCache) GetSnapshot(node string) (cache.ResourceSnapsh return r0, r1 } -// MockCacheSnapshotCache_GetSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSnapshot' -type MockCacheSnapshotCache_GetSnapshot_Call struct { +// MockcacheSnapshotCache_GetSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSnapshot' +type MockcacheSnapshotCache_GetSnapshot_Call struct { *mock.Call } // GetSnapshot is a helper method to define mock.On call // - node string -func (_e *MockCacheSnapshotCache_Expecter) GetSnapshot(node interface{}) *MockCacheSnapshotCache_GetSnapshot_Call { - return &MockCacheSnapshotCache_GetSnapshot_Call{Call: _e.mock.On("GetSnapshot", node)} +func (_e *MockcacheSnapshotCache_Expecter) GetSnapshot(node interface{}) *MockcacheSnapshotCache_GetSnapshot_Call { + return &MockcacheSnapshotCache_GetSnapshot_Call{Call: _e.mock.On("GetSnapshot", node)} } -func (_c *MockCacheSnapshotCache_GetSnapshot_Call) Run(run func(node string)) *MockCacheSnapshotCache_GetSnapshot_Call { +func (_c *MockcacheSnapshotCache_GetSnapshot_Call) Run(run func(node string)) *MockcacheSnapshotCache_GetSnapshot_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string)) }) return _c } -func (_c *MockCacheSnapshotCache_GetSnapshot_Call) Return(_a0 cache.ResourceSnapshot, _a1 error) *MockCacheSnapshotCache_GetSnapshot_Call { +func (_c *MockcacheSnapshotCache_GetSnapshot_Call) Return(_a0 cache.ResourceSnapshot, _a1 error) *MockcacheSnapshotCache_GetSnapshot_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCacheSnapshotCache_GetSnapshot_Call) RunAndReturn(run func(string) (cache.ResourceSnapshot, error)) *MockCacheSnapshotCache_GetSnapshot_Call { +func (_c *MockcacheSnapshotCache_GetSnapshot_Call) RunAndReturn(run func(string) (cache.ResourceSnapshot, error)) *MockcacheSnapshotCache_GetSnapshot_Call { _c.Call.Return(run) return _c } // GetStatusInfo provides a mock function with given fields: _a0 -func (_m *MockCacheSnapshotCache) GetStatusInfo(_a0 string) cache.StatusInfo { +func (_m *MockcacheSnapshotCache) GetStatusInfo(_a0 string) cache.StatusInfo { ret := _m.Called(_a0) if len(ret) == 0 { @@ -315,36 +315,36 @@ func (_m *MockCacheSnapshotCache) GetStatusInfo(_a0 string) cache.StatusInfo { return r0 } -// MockCacheSnapshotCache_GetStatusInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusInfo' -type MockCacheSnapshotCache_GetStatusInfo_Call struct { +// MockcacheSnapshotCache_GetStatusInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusInfo' +type MockcacheSnapshotCache_GetStatusInfo_Call struct { *mock.Call } // GetStatusInfo is a helper method to define mock.On call // - _a0 string -func (_e *MockCacheSnapshotCache_Expecter) GetStatusInfo(_a0 interface{}) *MockCacheSnapshotCache_GetStatusInfo_Call { - return &MockCacheSnapshotCache_GetStatusInfo_Call{Call: _e.mock.On("GetStatusInfo", _a0)} +func (_e *MockcacheSnapshotCache_Expecter) GetStatusInfo(_a0 interface{}) *MockcacheSnapshotCache_GetStatusInfo_Call { + return &MockcacheSnapshotCache_GetStatusInfo_Call{Call: _e.mock.On("GetStatusInfo", _a0)} } -func (_c *MockCacheSnapshotCache_GetStatusInfo_Call) Run(run func(_a0 string)) *MockCacheSnapshotCache_GetStatusInfo_Call { +func (_c *MockcacheSnapshotCache_GetStatusInfo_Call) Run(run func(_a0 string)) *MockcacheSnapshotCache_GetStatusInfo_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string)) }) return _c } -func (_c *MockCacheSnapshotCache_GetStatusInfo_Call) Return(_a0 cache.StatusInfo) *MockCacheSnapshotCache_GetStatusInfo_Call { +func (_c *MockcacheSnapshotCache_GetStatusInfo_Call) Return(_a0 cache.StatusInfo) *MockcacheSnapshotCache_GetStatusInfo_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCacheSnapshotCache_GetStatusInfo_Call) RunAndReturn(run func(string) cache.StatusInfo) *MockCacheSnapshotCache_GetStatusInfo_Call { +func (_c *MockcacheSnapshotCache_GetStatusInfo_Call) RunAndReturn(run func(string) cache.StatusInfo) *MockcacheSnapshotCache_GetStatusInfo_Call { _c.Call.Return(run) return _c } // GetStatusKeys provides a mock function with no fields -func (_m *MockCacheSnapshotCache) GetStatusKeys() []string { +func (_m *MockcacheSnapshotCache) GetStatusKeys() []string { ret := _m.Called() if len(ret) == 0 { @@ -363,35 +363,35 @@ func (_m *MockCacheSnapshotCache) GetStatusKeys() []string { return r0 } -// MockCacheSnapshotCache_GetStatusKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusKeys' -type MockCacheSnapshotCache_GetStatusKeys_Call struct { +// MockcacheSnapshotCache_GetStatusKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusKeys' +type MockcacheSnapshotCache_GetStatusKeys_Call struct { *mock.Call } // GetStatusKeys is a helper method to define mock.On call -func (_e *MockCacheSnapshotCache_Expecter) GetStatusKeys() *MockCacheSnapshotCache_GetStatusKeys_Call { - return &MockCacheSnapshotCache_GetStatusKeys_Call{Call: _e.mock.On("GetStatusKeys")} +func (_e *MockcacheSnapshotCache_Expecter) GetStatusKeys() *MockcacheSnapshotCache_GetStatusKeys_Call { + return &MockcacheSnapshotCache_GetStatusKeys_Call{Call: _e.mock.On("GetStatusKeys")} } -func (_c *MockCacheSnapshotCache_GetStatusKeys_Call) Run(run func()) *MockCacheSnapshotCache_GetStatusKeys_Call { +func (_c *MockcacheSnapshotCache_GetStatusKeys_Call) Run(run func()) *MockcacheSnapshotCache_GetStatusKeys_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } -func (_c *MockCacheSnapshotCache_GetStatusKeys_Call) Return(_a0 []string) *MockCacheSnapshotCache_GetStatusKeys_Call { +func (_c *MockcacheSnapshotCache_GetStatusKeys_Call) Return(_a0 []string) *MockcacheSnapshotCache_GetStatusKeys_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCacheSnapshotCache_GetStatusKeys_Call) RunAndReturn(run func() []string) *MockCacheSnapshotCache_GetStatusKeys_Call { +func (_c *MockcacheSnapshotCache_GetStatusKeys_Call) RunAndReturn(run func() []string) *MockcacheSnapshotCache_GetStatusKeys_Call { _c.Call.Return(run) return _c } // SetSnapshot provides a mock function with given fields: ctx, node, snapshot -func (_m *MockCacheSnapshotCache) SetSnapshot(ctx context.Context, node string, snapshot cache.ResourceSnapshot) error { +func (_m *MockcacheSnapshotCache) SetSnapshot(ctx context.Context, node string, snapshot cache.ResourceSnapshot) error { ret := _m.Called(ctx, node, snapshot) if len(ret) == 0 { @@ -408,8 +408,8 @@ func (_m *MockCacheSnapshotCache) SetSnapshot(ctx context.Context, node string, return r0 } -// MockCacheSnapshotCache_SetSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSnapshot' -type MockCacheSnapshotCache_SetSnapshot_Call struct { +// MockcacheSnapshotCache_SetSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSnapshot' +type MockcacheSnapshotCache_SetSnapshot_Call struct { *mock.Call } @@ -417,34 +417,34 @@ type MockCacheSnapshotCache_SetSnapshot_Call struct { // - ctx context.Context // - node string // - snapshot cache.ResourceSnapshot -func (_e *MockCacheSnapshotCache_Expecter) SetSnapshot(ctx interface{}, node interface{}, snapshot interface{}) *MockCacheSnapshotCache_SetSnapshot_Call { - return &MockCacheSnapshotCache_SetSnapshot_Call{Call: _e.mock.On("SetSnapshot", ctx, node, snapshot)} +func (_e *MockcacheSnapshotCache_Expecter) SetSnapshot(ctx interface{}, node interface{}, snapshot interface{}) *MockcacheSnapshotCache_SetSnapshot_Call { + return &MockcacheSnapshotCache_SetSnapshot_Call{Call: _e.mock.On("SetSnapshot", ctx, node, snapshot)} } -func (_c *MockCacheSnapshotCache_SetSnapshot_Call) Run(run func(ctx context.Context, node string, snapshot cache.ResourceSnapshot)) *MockCacheSnapshotCache_SetSnapshot_Call { +func (_c *MockcacheSnapshotCache_SetSnapshot_Call) Run(run func(ctx context.Context, node string, snapshot cache.ResourceSnapshot)) *MockcacheSnapshotCache_SetSnapshot_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(cache.ResourceSnapshot)) }) return _c } -func (_c *MockCacheSnapshotCache_SetSnapshot_Call) Return(_a0 error) *MockCacheSnapshotCache_SetSnapshot_Call { +func (_c *MockcacheSnapshotCache_SetSnapshot_Call) Return(_a0 error) *MockcacheSnapshotCache_SetSnapshot_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCacheSnapshotCache_SetSnapshot_Call) RunAndReturn(run func(context.Context, string, cache.ResourceSnapshot) error) *MockCacheSnapshotCache_SetSnapshot_Call { +func (_c *MockcacheSnapshotCache_SetSnapshot_Call) RunAndReturn(run func(context.Context, string, cache.ResourceSnapshot) error) *MockcacheSnapshotCache_SetSnapshot_Call { _c.Call.Return(run) return _c } -// NewMockCacheSnapshotCache creates a new instance of MockCacheSnapshotCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockcacheSnapshotCache creates a new instance of MockcacheSnapshotCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockCacheSnapshotCache(t interface { +func NewMockcacheSnapshotCache(t interface { mock.TestingT Cleanup(func()) -}) *MockCacheSnapshotCache { - mock := &MockCacheSnapshotCache{} +}) *MockcacheSnapshotCache { + mock := &MockcacheSnapshotCache{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/chunk_archive_repository.go b/internal/mock/chunk_archive_repository.go index 8104f4bfb..f2948ddc7 100644 --- a/internal/mock/chunk_archive_repository.go +++ b/internal/mock/chunk_archive_repository.go @@ -9,21 +9,21 @@ import ( mock "github.com/stretchr/testify/mock" ) -// MockChunkArchiveRepository is an autogenerated mock type for the ArchiveRepository type -type MockChunkArchiveRepository struct { +// MockchunkArchiveRepository is an autogenerated mock type for the ArchiveRepository type +type MockchunkArchiveRepository struct { mock.Mock } -type MockChunkArchiveRepository_Expecter struct { +type MockchunkArchiveRepository_Expecter struct { mock *mock.Mock } -func (_m *MockChunkArchiveRepository) EXPECT() *MockChunkArchiveRepository_Expecter { - return &MockChunkArchiveRepository_Expecter{mock: &_m.Mock} +func (_m *MockchunkArchiveRepository) EXPECT() *MockchunkArchiveRepository_Expecter { + return &MockchunkArchiveRepository_Expecter{mock: &_m.Mock} } // ArchiveChunk provides a mock function with given fields: ctx, _a1 -func (_m *MockChunkArchiveRepository) ArchiveChunk(ctx context.Context, _a1 resource.Chunk) error { +func (_m *MockchunkArchiveRepository) ArchiveChunk(ctx context.Context, _a1 resource.Chunk) error { ret := _m.Called(ctx, _a1) if len(ret) == 0 { @@ -40,37 +40,37 @@ func (_m *MockChunkArchiveRepository) ArchiveChunk(ctx context.Context, _a1 reso return r0 } -// MockChunkArchiveRepository_ArchiveChunk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArchiveChunk' -type MockChunkArchiveRepository_ArchiveChunk_Call struct { +// MockchunkArchiveRepository_ArchiveChunk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArchiveChunk' +type MockchunkArchiveRepository_ArchiveChunk_Call struct { *mock.Call } // ArchiveChunk is a helper method to define mock.On call // - ctx context.Context // - _a1 resource.Chunk -func (_e *MockChunkArchiveRepository_Expecter) ArchiveChunk(ctx interface{}, _a1 interface{}) *MockChunkArchiveRepository_ArchiveChunk_Call { - return &MockChunkArchiveRepository_ArchiveChunk_Call{Call: _e.mock.On("ArchiveChunk", ctx, _a1)} +func (_e *MockchunkArchiveRepository_Expecter) ArchiveChunk(ctx interface{}, _a1 interface{}) *MockchunkArchiveRepository_ArchiveChunk_Call { + return &MockchunkArchiveRepository_ArchiveChunk_Call{Call: _e.mock.On("ArchiveChunk", ctx, _a1)} } -func (_c *MockChunkArchiveRepository_ArchiveChunk_Call) Run(run func(ctx context.Context, _a1 resource.Chunk)) *MockChunkArchiveRepository_ArchiveChunk_Call { +func (_c *MockchunkArchiveRepository_ArchiveChunk_Call) Run(run func(ctx context.Context, _a1 resource.Chunk)) *MockchunkArchiveRepository_ArchiveChunk_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(resource.Chunk)) }) return _c } -func (_c *MockChunkArchiveRepository_ArchiveChunk_Call) Return(_a0 error) *MockChunkArchiveRepository_ArchiveChunk_Call { +func (_c *MockchunkArchiveRepository_ArchiveChunk_Call) Return(_a0 error) *MockchunkArchiveRepository_ArchiveChunk_Call { _c.Call.Return(_a0) return _c } -func (_c *MockChunkArchiveRepository_ArchiveChunk_Call) RunAndReturn(run func(context.Context, resource.Chunk) error) *MockChunkArchiveRepository_ArchiveChunk_Call { +func (_c *MockchunkArchiveRepository_ArchiveChunk_Call) RunAndReturn(run func(context.Context, resource.Chunk) error) *MockchunkArchiveRepository_ArchiveChunk_Call { _c.Call.Return(run) return _c } // ArchiveFlavor provides a mock function with given fields: ctx, chunkID, flavor -func (_m *MockChunkArchiveRepository) ArchiveFlavor(ctx context.Context, chunkID string, flavor resource.Flavor) error { +func (_m *MockchunkArchiveRepository) ArchiveFlavor(ctx context.Context, chunkID string, flavor resource.Flavor) error { ret := _m.Called(ctx, chunkID, flavor) if len(ret) == 0 { @@ -87,8 +87,8 @@ func (_m *MockChunkArchiveRepository) ArchiveFlavor(ctx context.Context, chunkID return r0 } -// MockChunkArchiveRepository_ArchiveFlavor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArchiveFlavor' -type MockChunkArchiveRepository_ArchiveFlavor_Call struct { +// MockchunkArchiveRepository_ArchiveFlavor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArchiveFlavor' +type MockchunkArchiveRepository_ArchiveFlavor_Call struct { *mock.Call } @@ -96,29 +96,29 @@ type MockChunkArchiveRepository_ArchiveFlavor_Call struct { // - ctx context.Context // - chunkID string // - flavor resource.Flavor -func (_e *MockChunkArchiveRepository_Expecter) ArchiveFlavor(ctx interface{}, chunkID interface{}, flavor interface{}) *MockChunkArchiveRepository_ArchiveFlavor_Call { - return &MockChunkArchiveRepository_ArchiveFlavor_Call{Call: _e.mock.On("ArchiveFlavor", ctx, chunkID, flavor)} +func (_e *MockchunkArchiveRepository_Expecter) ArchiveFlavor(ctx interface{}, chunkID interface{}, flavor interface{}) *MockchunkArchiveRepository_ArchiveFlavor_Call { + return &MockchunkArchiveRepository_ArchiveFlavor_Call{Call: _e.mock.On("ArchiveFlavor", ctx, chunkID, flavor)} } -func (_c *MockChunkArchiveRepository_ArchiveFlavor_Call) Run(run func(ctx context.Context, chunkID string, flavor resource.Flavor)) *MockChunkArchiveRepository_ArchiveFlavor_Call { +func (_c *MockchunkArchiveRepository_ArchiveFlavor_Call) Run(run func(ctx context.Context, chunkID string, flavor resource.Flavor)) *MockchunkArchiveRepository_ArchiveFlavor_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(resource.Flavor)) }) return _c } -func (_c *MockChunkArchiveRepository_ArchiveFlavor_Call) Return(_a0 error) *MockChunkArchiveRepository_ArchiveFlavor_Call { +func (_c *MockchunkArchiveRepository_ArchiveFlavor_Call) Return(_a0 error) *MockchunkArchiveRepository_ArchiveFlavor_Call { _c.Call.Return(_a0) return _c } -func (_c *MockChunkArchiveRepository_ArchiveFlavor_Call) RunAndReturn(run func(context.Context, string, resource.Flavor) error) *MockChunkArchiveRepository_ArchiveFlavor_Call { +func (_c *MockchunkArchiveRepository_ArchiveFlavor_Call) RunAndReturn(run func(context.Context, string, resource.Flavor) error) *MockchunkArchiveRepository_ArchiveFlavor_Call { _c.Call.Return(run) return _c } // ArchiveFlavorVersion provides a mock function with given fields: ctx, flavorID, version -func (_m *MockChunkArchiveRepository) ArchiveFlavorVersion(ctx context.Context, flavorID string, version resource.FlavorVersion) error { +func (_m *MockchunkArchiveRepository) ArchiveFlavorVersion(ctx context.Context, flavorID string, version resource.FlavorVersion) error { ret := _m.Called(ctx, flavorID, version) if len(ret) == 0 { @@ -135,8 +135,8 @@ func (_m *MockChunkArchiveRepository) ArchiveFlavorVersion(ctx context.Context, return r0 } -// MockChunkArchiveRepository_ArchiveFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArchiveFlavorVersion' -type MockChunkArchiveRepository_ArchiveFlavorVersion_Call struct { +// MockchunkArchiveRepository_ArchiveFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArchiveFlavorVersion' +type MockchunkArchiveRepository_ArchiveFlavorVersion_Call struct { *mock.Call } @@ -144,34 +144,34 @@ type MockChunkArchiveRepository_ArchiveFlavorVersion_Call struct { // - ctx context.Context // - flavorID string // - version resource.FlavorVersion -func (_e *MockChunkArchiveRepository_Expecter) ArchiveFlavorVersion(ctx interface{}, flavorID interface{}, version interface{}) *MockChunkArchiveRepository_ArchiveFlavorVersion_Call { - return &MockChunkArchiveRepository_ArchiveFlavorVersion_Call{Call: _e.mock.On("ArchiveFlavorVersion", ctx, flavorID, version)} +func (_e *MockchunkArchiveRepository_Expecter) ArchiveFlavorVersion(ctx interface{}, flavorID interface{}, version interface{}) *MockchunkArchiveRepository_ArchiveFlavorVersion_Call { + return &MockchunkArchiveRepository_ArchiveFlavorVersion_Call{Call: _e.mock.On("ArchiveFlavorVersion", ctx, flavorID, version)} } -func (_c *MockChunkArchiveRepository_ArchiveFlavorVersion_Call) Run(run func(ctx context.Context, flavorID string, version resource.FlavorVersion)) *MockChunkArchiveRepository_ArchiveFlavorVersion_Call { +func (_c *MockchunkArchiveRepository_ArchiveFlavorVersion_Call) Run(run func(ctx context.Context, flavorID string, version resource.FlavorVersion)) *MockchunkArchiveRepository_ArchiveFlavorVersion_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(resource.FlavorVersion)) }) return _c } -func (_c *MockChunkArchiveRepository_ArchiveFlavorVersion_Call) Return(_a0 error) *MockChunkArchiveRepository_ArchiveFlavorVersion_Call { +func (_c *MockchunkArchiveRepository_ArchiveFlavorVersion_Call) Return(_a0 error) *MockchunkArchiveRepository_ArchiveFlavorVersion_Call { _c.Call.Return(_a0) return _c } -func (_c *MockChunkArchiveRepository_ArchiveFlavorVersion_Call) RunAndReturn(run func(context.Context, string, resource.FlavorVersion) error) *MockChunkArchiveRepository_ArchiveFlavorVersion_Call { +func (_c *MockchunkArchiveRepository_ArchiveFlavorVersion_Call) RunAndReturn(run func(context.Context, string, resource.FlavorVersion) error) *MockchunkArchiveRepository_ArchiveFlavorVersion_Call { _c.Call.Return(run) return _c } -// NewMockChunkArchiveRepository creates a new instance of MockChunkArchiveRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockchunkArchiveRepository creates a new instance of MockchunkArchiveRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockChunkArchiveRepository(t interface { +func NewMockchunkArchiveRepository(t interface { mock.TestingT Cleanup(func()) -}) *MockChunkArchiveRepository { - mock := &MockChunkArchiveRepository{} +}) *MockchunkArchiveRepository { + mock := &MockchunkArchiveRepository{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/chunk_repository.go b/internal/mock/chunk_repository.go index 774702fa3..880ddcc86 100644 --- a/internal/mock/chunk_repository.go +++ b/internal/mock/chunk_repository.go @@ -11,21 +11,21 @@ import ( time "time" ) -// MockChunkRepository is an autogenerated mock type for the Repository type -type MockChunkRepository struct { +// MockchunkRepository is an autogenerated mock type for the Repository type +type MockchunkRepository struct { mock.Mock } -type MockChunkRepository_Expecter struct { +type MockchunkRepository_Expecter struct { mock *mock.Mock } -func (_m *MockChunkRepository) EXPECT() *MockChunkRepository_Expecter { - return &MockChunkRepository_Expecter{mock: &_m.Mock} +func (_m *MockchunkRepository) EXPECT() *MockchunkRepository_Expecter { + return &MockchunkRepository_Expecter{mock: &_m.Mock} } // AllChunkThumbnailHashes provides a mock function with given fields: ctx -func (_m *MockChunkRepository) AllChunkThumbnailHashes(ctx context.Context) (map[string]string, error) { +func (_m *MockchunkRepository) AllChunkThumbnailHashes(ctx context.Context) (map[string]string, error) { ret := _m.Called(ctx) if len(ret) == 0 { @@ -54,36 +54,36 @@ func (_m *MockChunkRepository) AllChunkThumbnailHashes(ctx context.Context) (map return r0, r1 } -// MockChunkRepository_AllChunkThumbnailHashes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllChunkThumbnailHashes' -type MockChunkRepository_AllChunkThumbnailHashes_Call struct { +// MockchunkRepository_AllChunkThumbnailHashes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllChunkThumbnailHashes' +type MockchunkRepository_AllChunkThumbnailHashes_Call struct { *mock.Call } // AllChunkThumbnailHashes is a helper method to define mock.On call // - ctx context.Context -func (_e *MockChunkRepository_Expecter) AllChunkThumbnailHashes(ctx interface{}) *MockChunkRepository_AllChunkThumbnailHashes_Call { - return &MockChunkRepository_AllChunkThumbnailHashes_Call{Call: _e.mock.On("AllChunkThumbnailHashes", ctx)} +func (_e *MockchunkRepository_Expecter) AllChunkThumbnailHashes(ctx interface{}) *MockchunkRepository_AllChunkThumbnailHashes_Call { + return &MockchunkRepository_AllChunkThumbnailHashes_Call{Call: _e.mock.On("AllChunkThumbnailHashes", ctx)} } -func (_c *MockChunkRepository_AllChunkThumbnailHashes_Call) Run(run func(ctx context.Context)) *MockChunkRepository_AllChunkThumbnailHashes_Call { +func (_c *MockchunkRepository_AllChunkThumbnailHashes_Call) Run(run func(ctx context.Context)) *MockchunkRepository_AllChunkThumbnailHashes_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context)) }) return _c } -func (_c *MockChunkRepository_AllChunkThumbnailHashes_Call) Return(_a0 map[string]string, _a1 error) *MockChunkRepository_AllChunkThumbnailHashes_Call { +func (_c *MockchunkRepository_AllChunkThumbnailHashes_Call) Return(_a0 map[string]string, _a1 error) *MockchunkRepository_AllChunkThumbnailHashes_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_AllChunkThumbnailHashes_Call) RunAndReturn(run func(context.Context) (map[string]string, error)) *MockChunkRepository_AllChunkThumbnailHashes_Call { +func (_c *MockchunkRepository_AllChunkThumbnailHashes_Call) RunAndReturn(run func(context.Context) (map[string]string, error)) *MockchunkRepository_AllChunkThumbnailHashes_Call { _c.Call.Return(run) return _c } // AllDeletedFlavors provides a mock function with given fields: ctx -func (_m *MockChunkRepository) AllDeletedFlavors(ctx context.Context) (map[string]string, error) { +func (_m *MockchunkRepository) AllDeletedFlavors(ctx context.Context) (map[string]string, error) { ret := _m.Called(ctx) if len(ret) == 0 { @@ -112,36 +112,36 @@ func (_m *MockChunkRepository) AllDeletedFlavors(ctx context.Context) (map[strin return r0, r1 } -// MockChunkRepository_AllDeletedFlavors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllDeletedFlavors' -type MockChunkRepository_AllDeletedFlavors_Call struct { +// MockchunkRepository_AllDeletedFlavors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllDeletedFlavors' +type MockchunkRepository_AllDeletedFlavors_Call struct { *mock.Call } // AllDeletedFlavors is a helper method to define mock.On call // - ctx context.Context -func (_e *MockChunkRepository_Expecter) AllDeletedFlavors(ctx interface{}) *MockChunkRepository_AllDeletedFlavors_Call { - return &MockChunkRepository_AllDeletedFlavors_Call{Call: _e.mock.On("AllDeletedFlavors", ctx)} +func (_e *MockchunkRepository_Expecter) AllDeletedFlavors(ctx interface{}) *MockchunkRepository_AllDeletedFlavors_Call { + return &MockchunkRepository_AllDeletedFlavors_Call{Call: _e.mock.On("AllDeletedFlavors", ctx)} } -func (_c *MockChunkRepository_AllDeletedFlavors_Call) Run(run func(ctx context.Context)) *MockChunkRepository_AllDeletedFlavors_Call { +func (_c *MockchunkRepository_AllDeletedFlavors_Call) Run(run func(ctx context.Context)) *MockchunkRepository_AllDeletedFlavors_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context)) }) return _c } -func (_c *MockChunkRepository_AllDeletedFlavors_Call) Return(_a0 map[string]string, _a1 error) *MockChunkRepository_AllDeletedFlavors_Call { +func (_c *MockchunkRepository_AllDeletedFlavors_Call) Return(_a0 map[string]string, _a1 error) *MockchunkRepository_AllDeletedFlavors_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_AllDeletedFlavors_Call) RunAndReturn(run func(context.Context) (map[string]string, error)) *MockChunkRepository_AllDeletedFlavors_Call { +func (_c *MockchunkRepository_AllDeletedFlavors_Call) RunAndReturn(run func(context.Context) (map[string]string, error)) *MockchunkRepository_AllDeletedFlavors_Call { _c.Call.Return(run) return _c } // CreateChunk provides a mock function with given fields: ctx, _a1 -func (_m *MockChunkRepository) CreateChunk(ctx context.Context, _a1 resource.Chunk) (resource.Chunk, error) { +func (_m *MockchunkRepository) CreateChunk(ctx context.Context, _a1 resource.Chunk) (resource.Chunk, error) { ret := _m.Called(ctx, _a1) if len(ret) == 0 { @@ -168,37 +168,37 @@ func (_m *MockChunkRepository) CreateChunk(ctx context.Context, _a1 resource.Chu return r0, r1 } -// MockChunkRepository_CreateChunk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateChunk' -type MockChunkRepository_CreateChunk_Call struct { +// MockchunkRepository_CreateChunk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateChunk' +type MockchunkRepository_CreateChunk_Call struct { *mock.Call } // CreateChunk is a helper method to define mock.On call // - ctx context.Context // - _a1 resource.Chunk -func (_e *MockChunkRepository_Expecter) CreateChunk(ctx interface{}, _a1 interface{}) *MockChunkRepository_CreateChunk_Call { - return &MockChunkRepository_CreateChunk_Call{Call: _e.mock.On("CreateChunk", ctx, _a1)} +func (_e *MockchunkRepository_Expecter) CreateChunk(ctx interface{}, _a1 interface{}) *MockchunkRepository_CreateChunk_Call { + return &MockchunkRepository_CreateChunk_Call{Call: _e.mock.On("CreateChunk", ctx, _a1)} } -func (_c *MockChunkRepository_CreateChunk_Call) Run(run func(ctx context.Context, _a1 resource.Chunk)) *MockChunkRepository_CreateChunk_Call { +func (_c *MockchunkRepository_CreateChunk_Call) Run(run func(ctx context.Context, _a1 resource.Chunk)) *MockchunkRepository_CreateChunk_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(resource.Chunk)) }) return _c } -func (_c *MockChunkRepository_CreateChunk_Call) Return(_a0 resource.Chunk, _a1 error) *MockChunkRepository_CreateChunk_Call { +func (_c *MockchunkRepository_CreateChunk_Call) Return(_a0 resource.Chunk, _a1 error) *MockchunkRepository_CreateChunk_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_CreateChunk_Call) RunAndReturn(run func(context.Context, resource.Chunk) (resource.Chunk, error)) *MockChunkRepository_CreateChunk_Call { +func (_c *MockchunkRepository_CreateChunk_Call) RunAndReturn(run func(context.Context, resource.Chunk) (resource.Chunk, error)) *MockchunkRepository_CreateChunk_Call { _c.Call.Return(run) return _c } // CreateFlavor provides a mock function with given fields: ctx, chunkID, flavor -func (_m *MockChunkRepository) CreateFlavor(ctx context.Context, chunkID string, flavor resource.Flavor) (resource.Flavor, error) { +func (_m *MockchunkRepository) CreateFlavor(ctx context.Context, chunkID string, flavor resource.Flavor) (resource.Flavor, error) { ret := _m.Called(ctx, chunkID, flavor) if len(ret) == 0 { @@ -225,8 +225,8 @@ func (_m *MockChunkRepository) CreateFlavor(ctx context.Context, chunkID string, return r0, r1 } -// MockChunkRepository_CreateFlavor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFlavor' -type MockChunkRepository_CreateFlavor_Call struct { +// MockchunkRepository_CreateFlavor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFlavor' +type MockchunkRepository_CreateFlavor_Call struct { *mock.Call } @@ -234,29 +234,29 @@ type MockChunkRepository_CreateFlavor_Call struct { // - ctx context.Context // - chunkID string // - flavor resource.Flavor -func (_e *MockChunkRepository_Expecter) CreateFlavor(ctx interface{}, chunkID interface{}, flavor interface{}) *MockChunkRepository_CreateFlavor_Call { - return &MockChunkRepository_CreateFlavor_Call{Call: _e.mock.On("CreateFlavor", ctx, chunkID, flavor)} +func (_e *MockchunkRepository_Expecter) CreateFlavor(ctx interface{}, chunkID interface{}, flavor interface{}) *MockchunkRepository_CreateFlavor_Call { + return &MockchunkRepository_CreateFlavor_Call{Call: _e.mock.On("CreateFlavor", ctx, chunkID, flavor)} } -func (_c *MockChunkRepository_CreateFlavor_Call) Run(run func(ctx context.Context, chunkID string, flavor resource.Flavor)) *MockChunkRepository_CreateFlavor_Call { +func (_c *MockchunkRepository_CreateFlavor_Call) Run(run func(ctx context.Context, chunkID string, flavor resource.Flavor)) *MockchunkRepository_CreateFlavor_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(resource.Flavor)) }) return _c } -func (_c *MockChunkRepository_CreateFlavor_Call) Return(_a0 resource.Flavor, _a1 error) *MockChunkRepository_CreateFlavor_Call { +func (_c *MockchunkRepository_CreateFlavor_Call) Return(_a0 resource.Flavor, _a1 error) *MockchunkRepository_CreateFlavor_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_CreateFlavor_Call) RunAndReturn(run func(context.Context, string, resource.Flavor) (resource.Flavor, error)) *MockChunkRepository_CreateFlavor_Call { +func (_c *MockchunkRepository_CreateFlavor_Call) RunAndReturn(run func(context.Context, string, resource.Flavor) (resource.Flavor, error)) *MockchunkRepository_CreateFlavor_Call { _c.Call.Return(run) return _c } // CreateFlavorVersion provides a mock function with given fields: ctx, flavorID, version, prevVersionID -func (_m *MockChunkRepository) CreateFlavorVersion(ctx context.Context, flavorID string, version resource.FlavorVersion, prevVersionID string) (resource.FlavorVersion, error) { +func (_m *MockchunkRepository) CreateFlavorVersion(ctx context.Context, flavorID string, version resource.FlavorVersion, prevVersionID string) (resource.FlavorVersion, error) { ret := _m.Called(ctx, flavorID, version, prevVersionID) if len(ret) == 0 { @@ -283,8 +283,8 @@ func (_m *MockChunkRepository) CreateFlavorVersion(ctx context.Context, flavorID return r0, r1 } -// MockChunkRepository_CreateFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFlavorVersion' -type MockChunkRepository_CreateFlavorVersion_Call struct { +// MockchunkRepository_CreateFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFlavorVersion' +type MockchunkRepository_CreateFlavorVersion_Call struct { *mock.Call } @@ -293,29 +293,29 @@ type MockChunkRepository_CreateFlavorVersion_Call struct { // - flavorID string // - version resource.FlavorVersion // - prevVersionID string -func (_e *MockChunkRepository_Expecter) CreateFlavorVersion(ctx interface{}, flavorID interface{}, version interface{}, prevVersionID interface{}) *MockChunkRepository_CreateFlavorVersion_Call { - return &MockChunkRepository_CreateFlavorVersion_Call{Call: _e.mock.On("CreateFlavorVersion", ctx, flavorID, version, prevVersionID)} +func (_e *MockchunkRepository_Expecter) CreateFlavorVersion(ctx interface{}, flavorID interface{}, version interface{}, prevVersionID interface{}) *MockchunkRepository_CreateFlavorVersion_Call { + return &MockchunkRepository_CreateFlavorVersion_Call{Call: _e.mock.On("CreateFlavorVersion", ctx, flavorID, version, prevVersionID)} } -func (_c *MockChunkRepository_CreateFlavorVersion_Call) Run(run func(ctx context.Context, flavorID string, version resource.FlavorVersion, prevVersionID string)) *MockChunkRepository_CreateFlavorVersion_Call { +func (_c *MockchunkRepository_CreateFlavorVersion_Call) Run(run func(ctx context.Context, flavorID string, version resource.FlavorVersion, prevVersionID string)) *MockchunkRepository_CreateFlavorVersion_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(resource.FlavorVersion), args[3].(string)) }) return _c } -func (_c *MockChunkRepository_CreateFlavorVersion_Call) Return(_a0 resource.FlavorVersion, _a1 error) *MockChunkRepository_CreateFlavorVersion_Call { +func (_c *MockchunkRepository_CreateFlavorVersion_Call) Return(_a0 resource.FlavorVersion, _a1 error) *MockchunkRepository_CreateFlavorVersion_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_CreateFlavorVersion_Call) RunAndReturn(run func(context.Context, string, resource.FlavorVersion, string) (resource.FlavorVersion, error)) *MockChunkRepository_CreateFlavorVersion_Call { +func (_c *MockchunkRepository_CreateFlavorVersion_Call) RunAndReturn(run func(context.Context, string, resource.FlavorVersion, string) (resource.FlavorVersion, error)) *MockchunkRepository_CreateFlavorVersion_Call { _c.Call.Return(run) return _c } // DeleteFlavor provides a mock function with given fields: ctx, id -func (_m *MockChunkRepository) DeleteFlavor(ctx context.Context, id string) error { +func (_m *MockchunkRepository) DeleteFlavor(ctx context.Context, id string) error { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -332,37 +332,37 @@ func (_m *MockChunkRepository) DeleteFlavor(ctx context.Context, id string) erro return r0 } -// MockChunkRepository_DeleteFlavor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteFlavor' -type MockChunkRepository_DeleteFlavor_Call struct { +// MockchunkRepository_DeleteFlavor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteFlavor' +type MockchunkRepository_DeleteFlavor_Call struct { *mock.Call } // DeleteFlavor is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockChunkRepository_Expecter) DeleteFlavor(ctx interface{}, id interface{}) *MockChunkRepository_DeleteFlavor_Call { - return &MockChunkRepository_DeleteFlavor_Call{Call: _e.mock.On("DeleteFlavor", ctx, id)} +func (_e *MockchunkRepository_Expecter) DeleteFlavor(ctx interface{}, id interface{}) *MockchunkRepository_DeleteFlavor_Call { + return &MockchunkRepository_DeleteFlavor_Call{Call: _e.mock.On("DeleteFlavor", ctx, id)} } -func (_c *MockChunkRepository_DeleteFlavor_Call) Run(run func(ctx context.Context, id string)) *MockChunkRepository_DeleteFlavor_Call { +func (_c *MockchunkRepository_DeleteFlavor_Call) Run(run func(ctx context.Context, id string)) *MockchunkRepository_DeleteFlavor_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_DeleteFlavor_Call) Return(_a0 error) *MockChunkRepository_DeleteFlavor_Call { +func (_c *MockchunkRepository_DeleteFlavor_Call) Return(_a0 error) *MockchunkRepository_DeleteFlavor_Call { _c.Call.Return(_a0) return _c } -func (_c *MockChunkRepository_DeleteFlavor_Call) RunAndReturn(run func(context.Context, string) error) *MockChunkRepository_DeleteFlavor_Call { +func (_c *MockchunkRepository_DeleteFlavor_Call) RunAndReturn(run func(context.Context, string) error) *MockchunkRepository_DeleteFlavor_Call { _c.Call.Return(run) return _c } // FlavorByID provides a mock function with given fields: ctx, id -func (_m *MockChunkRepository) FlavorByID(ctx context.Context, id string) (resource.Flavor, error) { +func (_m *MockchunkRepository) FlavorByID(ctx context.Context, id string) (resource.Flavor, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -389,37 +389,37 @@ func (_m *MockChunkRepository) FlavorByID(ctx context.Context, id string) (resou return r0, r1 } -// MockChunkRepository_FlavorByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorByID' -type MockChunkRepository_FlavorByID_Call struct { +// MockchunkRepository_FlavorByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorByID' +type MockchunkRepository_FlavorByID_Call struct { *mock.Call } // FlavorByID is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockChunkRepository_Expecter) FlavorByID(ctx interface{}, id interface{}) *MockChunkRepository_FlavorByID_Call { - return &MockChunkRepository_FlavorByID_Call{Call: _e.mock.On("FlavorByID", ctx, id)} +func (_e *MockchunkRepository_Expecter) FlavorByID(ctx interface{}, id interface{}) *MockchunkRepository_FlavorByID_Call { + return &MockchunkRepository_FlavorByID_Call{Call: _e.mock.On("FlavorByID", ctx, id)} } -func (_c *MockChunkRepository_FlavorByID_Call) Run(run func(ctx context.Context, id string)) *MockChunkRepository_FlavorByID_Call { +func (_c *MockchunkRepository_FlavorByID_Call) Run(run func(ctx context.Context, id string)) *MockchunkRepository_FlavorByID_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_FlavorByID_Call) Return(_a0 resource.Flavor, _a1 error) *MockChunkRepository_FlavorByID_Call { +func (_c *MockchunkRepository_FlavorByID_Call) Return(_a0 resource.Flavor, _a1 error) *MockchunkRepository_FlavorByID_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_FlavorByID_Call) RunAndReturn(run func(context.Context, string) (resource.Flavor, error)) *MockChunkRepository_FlavorByID_Call { +func (_c *MockchunkRepository_FlavorByID_Call) RunAndReturn(run func(context.Context, string) (resource.Flavor, error)) *MockchunkRepository_FlavorByID_Call { _c.Call.Return(run) return _c } // FlavorIDByFlavorVersionID provides a mock function with given fields: ctx, id -func (_m *MockChunkRepository) FlavorIDByFlavorVersionID(ctx context.Context, id string) (string, error) { +func (_m *MockchunkRepository) FlavorIDByFlavorVersionID(ctx context.Context, id string) (string, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -446,37 +446,37 @@ func (_m *MockChunkRepository) FlavorIDByFlavorVersionID(ctx context.Context, id return r0, r1 } -// MockChunkRepository_FlavorIDByFlavorVersionID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorIDByFlavorVersionID' -type MockChunkRepository_FlavorIDByFlavorVersionID_Call struct { +// MockchunkRepository_FlavorIDByFlavorVersionID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorIDByFlavorVersionID' +type MockchunkRepository_FlavorIDByFlavorVersionID_Call struct { *mock.Call } // FlavorIDByFlavorVersionID is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockChunkRepository_Expecter) FlavorIDByFlavorVersionID(ctx interface{}, id interface{}) *MockChunkRepository_FlavorIDByFlavorVersionID_Call { - return &MockChunkRepository_FlavorIDByFlavorVersionID_Call{Call: _e.mock.On("FlavorIDByFlavorVersionID", ctx, id)} +func (_e *MockchunkRepository_Expecter) FlavorIDByFlavorVersionID(ctx interface{}, id interface{}) *MockchunkRepository_FlavorIDByFlavorVersionID_Call { + return &MockchunkRepository_FlavorIDByFlavorVersionID_Call{Call: _e.mock.On("FlavorIDByFlavorVersionID", ctx, id)} } -func (_c *MockChunkRepository_FlavorIDByFlavorVersionID_Call) Run(run func(ctx context.Context, id string)) *MockChunkRepository_FlavorIDByFlavorVersionID_Call { +func (_c *MockchunkRepository_FlavorIDByFlavorVersionID_Call) Run(run func(ctx context.Context, id string)) *MockchunkRepository_FlavorIDByFlavorVersionID_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_FlavorIDByFlavorVersionID_Call) Return(_a0 string, _a1 error) *MockChunkRepository_FlavorIDByFlavorVersionID_Call { +func (_c *MockchunkRepository_FlavorIDByFlavorVersionID_Call) Return(_a0 string, _a1 error) *MockchunkRepository_FlavorIDByFlavorVersionID_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_FlavorIDByFlavorVersionID_Call) RunAndReturn(run func(context.Context, string) (string, error)) *MockChunkRepository_FlavorIDByFlavorVersionID_Call { +func (_c *MockchunkRepository_FlavorIDByFlavorVersionID_Call) RunAndReturn(run func(context.Context, string) (string, error)) *MockchunkRepository_FlavorIDByFlavorVersionID_Call { _c.Call.Return(run) return _c } // FlavorNameExists provides a mock function with given fields: ctx, chunkID, name -func (_m *MockChunkRepository) FlavorNameExists(ctx context.Context, chunkID string, name string) (bool, error) { +func (_m *MockchunkRepository) FlavorNameExists(ctx context.Context, chunkID string, name string) (bool, error) { ret := _m.Called(ctx, chunkID, name) if len(ret) == 0 { @@ -503,8 +503,8 @@ func (_m *MockChunkRepository) FlavorNameExists(ctx context.Context, chunkID str return r0, r1 } -// MockChunkRepository_FlavorNameExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorNameExists' -type MockChunkRepository_FlavorNameExists_Call struct { +// MockchunkRepository_FlavorNameExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorNameExists' +type MockchunkRepository_FlavorNameExists_Call struct { *mock.Call } @@ -512,29 +512,29 @@ type MockChunkRepository_FlavorNameExists_Call struct { // - ctx context.Context // - chunkID string // - name string -func (_e *MockChunkRepository_Expecter) FlavorNameExists(ctx interface{}, chunkID interface{}, name interface{}) *MockChunkRepository_FlavorNameExists_Call { - return &MockChunkRepository_FlavorNameExists_Call{Call: _e.mock.On("FlavorNameExists", ctx, chunkID, name)} +func (_e *MockchunkRepository_Expecter) FlavorNameExists(ctx interface{}, chunkID interface{}, name interface{}) *MockchunkRepository_FlavorNameExists_Call { + return &MockchunkRepository_FlavorNameExists_Call{Call: _e.mock.On("FlavorNameExists", ctx, chunkID, name)} } -func (_c *MockChunkRepository_FlavorNameExists_Call) Run(run func(ctx context.Context, chunkID string, name string)) *MockChunkRepository_FlavorNameExists_Call { +func (_c *MockchunkRepository_FlavorNameExists_Call) Run(run func(ctx context.Context, chunkID string, name string)) *MockchunkRepository_FlavorNameExists_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(string)) }) return _c } -func (_c *MockChunkRepository_FlavorNameExists_Call) Return(_a0 bool, _a1 error) *MockChunkRepository_FlavorNameExists_Call { +func (_c *MockchunkRepository_FlavorNameExists_Call) Return(_a0 bool, _a1 error) *MockchunkRepository_FlavorNameExists_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_FlavorNameExists_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *MockChunkRepository_FlavorNameExists_Call { +func (_c *MockchunkRepository_FlavorNameExists_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *MockchunkRepository_FlavorNameExists_Call { _c.Call.Return(run) return _c } // FlavorVersionByID provides a mock function with given fields: ctx, id -func (_m *MockChunkRepository) FlavorVersionByID(ctx context.Context, id string) (resource.FlavorVersion, error) { +func (_m *MockchunkRepository) FlavorVersionByID(ctx context.Context, id string) (resource.FlavorVersion, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -561,37 +561,37 @@ func (_m *MockChunkRepository) FlavorVersionByID(ctx context.Context, id string) return r0, r1 } -// MockChunkRepository_FlavorVersionByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorVersionByID' -type MockChunkRepository_FlavorVersionByID_Call struct { +// MockchunkRepository_FlavorVersionByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorVersionByID' +type MockchunkRepository_FlavorVersionByID_Call struct { *mock.Call } // FlavorVersionByID is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockChunkRepository_Expecter) FlavorVersionByID(ctx interface{}, id interface{}) *MockChunkRepository_FlavorVersionByID_Call { - return &MockChunkRepository_FlavorVersionByID_Call{Call: _e.mock.On("FlavorVersionByID", ctx, id)} +func (_e *MockchunkRepository_Expecter) FlavorVersionByID(ctx interface{}, id interface{}) *MockchunkRepository_FlavorVersionByID_Call { + return &MockchunkRepository_FlavorVersionByID_Call{Call: _e.mock.On("FlavorVersionByID", ctx, id)} } -func (_c *MockChunkRepository_FlavorVersionByID_Call) Run(run func(ctx context.Context, id string)) *MockChunkRepository_FlavorVersionByID_Call { +func (_c *MockchunkRepository_FlavorVersionByID_Call) Run(run func(ctx context.Context, id string)) *MockchunkRepository_FlavorVersionByID_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_FlavorVersionByID_Call) Return(_a0 resource.FlavorVersion, _a1 error) *MockChunkRepository_FlavorVersionByID_Call { +func (_c *MockchunkRepository_FlavorVersionByID_Call) Return(_a0 resource.FlavorVersion, _a1 error) *MockchunkRepository_FlavorVersionByID_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_FlavorVersionByID_Call) RunAndReturn(run func(context.Context, string) (resource.FlavorVersion, error)) *MockChunkRepository_FlavorVersionByID_Call { +func (_c *MockchunkRepository_FlavorVersionByID_Call) RunAndReturn(run func(context.Context, string) (resource.FlavorVersion, error)) *MockchunkRepository_FlavorVersionByID_Call { _c.Call.Return(run) return _c } // FlavorVersionExists provides a mock function with given fields: ctx, flavorID, version -func (_m *MockChunkRepository) FlavorVersionExists(ctx context.Context, flavorID string, version string) (bool, error) { +func (_m *MockchunkRepository) FlavorVersionExists(ctx context.Context, flavorID string, version string) (bool, error) { ret := _m.Called(ctx, flavorID, version) if len(ret) == 0 { @@ -618,8 +618,8 @@ func (_m *MockChunkRepository) FlavorVersionExists(ctx context.Context, flavorID return r0, r1 } -// MockChunkRepository_FlavorVersionExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorVersionExists' -type MockChunkRepository_FlavorVersionExists_Call struct { +// MockchunkRepository_FlavorVersionExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorVersionExists' +type MockchunkRepository_FlavorVersionExists_Call struct { *mock.Call } @@ -627,29 +627,29 @@ type MockChunkRepository_FlavorVersionExists_Call struct { // - ctx context.Context // - flavorID string // - version string -func (_e *MockChunkRepository_Expecter) FlavorVersionExists(ctx interface{}, flavorID interface{}, version interface{}) *MockChunkRepository_FlavorVersionExists_Call { - return &MockChunkRepository_FlavorVersionExists_Call{Call: _e.mock.On("FlavorVersionExists", ctx, flavorID, version)} +func (_e *MockchunkRepository_Expecter) FlavorVersionExists(ctx interface{}, flavorID interface{}, version interface{}) *MockchunkRepository_FlavorVersionExists_Call { + return &MockchunkRepository_FlavorVersionExists_Call{Call: _e.mock.On("FlavorVersionExists", ctx, flavorID, version)} } -func (_c *MockChunkRepository_FlavorVersionExists_Call) Run(run func(ctx context.Context, flavorID string, version string)) *MockChunkRepository_FlavorVersionExists_Call { +func (_c *MockchunkRepository_FlavorVersionExists_Call) Run(run func(ctx context.Context, flavorID string, version string)) *MockchunkRepository_FlavorVersionExists_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(string)) }) return _c } -func (_c *MockChunkRepository_FlavorVersionExists_Call) Return(_a0 bool, _a1 error) *MockChunkRepository_FlavorVersionExists_Call { +func (_c *MockchunkRepository_FlavorVersionExists_Call) Return(_a0 bool, _a1 error) *MockchunkRepository_FlavorVersionExists_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_FlavorVersionExists_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *MockChunkRepository_FlavorVersionExists_Call { +func (_c *MockchunkRepository_FlavorVersionExists_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *MockchunkRepository_FlavorVersionExists_Call { _c.Call.Return(run) return _c } // FlavorVersionHashByID provides a mock function with given fields: ctx, id -func (_m *MockChunkRepository) FlavorVersionHashByID(ctx context.Context, id string) (string, error) { +func (_m *MockchunkRepository) FlavorVersionHashByID(ctx context.Context, id string) (string, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -676,37 +676,37 @@ func (_m *MockChunkRepository) FlavorVersionHashByID(ctx context.Context, id str return r0, r1 } -// MockChunkRepository_FlavorVersionHashByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorVersionHashByID' -type MockChunkRepository_FlavorVersionHashByID_Call struct { +// MockchunkRepository_FlavorVersionHashByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorVersionHashByID' +type MockchunkRepository_FlavorVersionHashByID_Call struct { *mock.Call } // FlavorVersionHashByID is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockChunkRepository_Expecter) FlavorVersionHashByID(ctx interface{}, id interface{}) *MockChunkRepository_FlavorVersionHashByID_Call { - return &MockChunkRepository_FlavorVersionHashByID_Call{Call: _e.mock.On("FlavorVersionHashByID", ctx, id)} +func (_e *MockchunkRepository_Expecter) FlavorVersionHashByID(ctx interface{}, id interface{}) *MockchunkRepository_FlavorVersionHashByID_Call { + return &MockchunkRepository_FlavorVersionHashByID_Call{Call: _e.mock.On("FlavorVersionHashByID", ctx, id)} } -func (_c *MockChunkRepository_FlavorVersionHashByID_Call) Run(run func(ctx context.Context, id string)) *MockChunkRepository_FlavorVersionHashByID_Call { +func (_c *MockchunkRepository_FlavorVersionHashByID_Call) Run(run func(ctx context.Context, id string)) *MockchunkRepository_FlavorVersionHashByID_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_FlavorVersionHashByID_Call) Return(_a0 string, _a1 error) *MockChunkRepository_FlavorVersionHashByID_Call { +func (_c *MockchunkRepository_FlavorVersionHashByID_Call) Return(_a0 string, _a1 error) *MockchunkRepository_FlavorVersionHashByID_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_FlavorVersionHashByID_Call) RunAndReturn(run func(context.Context, string) (string, error)) *MockChunkRepository_FlavorVersionHashByID_Call { +func (_c *MockchunkRepository_FlavorVersionHashByID_Call) RunAndReturn(run func(context.Context, string) (string, error)) *MockchunkRepository_FlavorVersionHashByID_Call { _c.Call.Return(run) return _c } // GetChunkByID provides a mock function with given fields: ctx, id -func (_m *MockChunkRepository) GetChunkByID(ctx context.Context, id string) (resource.Chunk, error) { +func (_m *MockchunkRepository) GetChunkByID(ctx context.Context, id string) (resource.Chunk, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -733,37 +733,37 @@ func (_m *MockChunkRepository) GetChunkByID(ctx context.Context, id string) (res return r0, r1 } -// MockChunkRepository_GetChunkByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChunkByID' -type MockChunkRepository_GetChunkByID_Call struct { +// MockchunkRepository_GetChunkByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChunkByID' +type MockchunkRepository_GetChunkByID_Call struct { *mock.Call } // GetChunkByID is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockChunkRepository_Expecter) GetChunkByID(ctx interface{}, id interface{}) *MockChunkRepository_GetChunkByID_Call { - return &MockChunkRepository_GetChunkByID_Call{Call: _e.mock.On("GetChunkByID", ctx, id)} +func (_e *MockchunkRepository_Expecter) GetChunkByID(ctx interface{}, id interface{}) *MockchunkRepository_GetChunkByID_Call { + return &MockchunkRepository_GetChunkByID_Call{Call: _e.mock.On("GetChunkByID", ctx, id)} } -func (_c *MockChunkRepository_GetChunkByID_Call) Run(run func(ctx context.Context, id string)) *MockChunkRepository_GetChunkByID_Call { +func (_c *MockchunkRepository_GetChunkByID_Call) Run(run func(ctx context.Context, id string)) *MockchunkRepository_GetChunkByID_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_GetChunkByID_Call) Return(_a0 resource.Chunk, _a1 error) *MockChunkRepository_GetChunkByID_Call { +func (_c *MockchunkRepository_GetChunkByID_Call) Return(_a0 resource.Chunk, _a1 error) *MockchunkRepository_GetChunkByID_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_GetChunkByID_Call) RunAndReturn(run func(context.Context, string) (resource.Chunk, error)) *MockChunkRepository_GetChunkByID_Call { +func (_c *MockchunkRepository_GetChunkByID_Call) RunAndReturn(run func(context.Context, string) (resource.Chunk, error)) *MockchunkRepository_GetChunkByID_Call { _c.Call.Return(run) return _c } // GetMinecraftVersionByVersion provides a mock function with given fields: _a0, _a1 -func (_m *MockChunkRepository) GetMinecraftVersionByVersion(_a0 context.Context, _a1 string) (resource.MinecraftVersion, error) { +func (_m *MockchunkRepository) GetMinecraftVersionByVersion(_a0 context.Context, _a1 string) (resource.MinecraftVersion, error) { ret := _m.Called(_a0, _a1) if len(ret) == 0 { @@ -790,37 +790,37 @@ func (_m *MockChunkRepository) GetMinecraftVersionByVersion(_a0 context.Context, return r0, r1 } -// MockChunkRepository_GetMinecraftVersionByVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMinecraftVersionByVersion' -type MockChunkRepository_GetMinecraftVersionByVersion_Call struct { +// MockchunkRepository_GetMinecraftVersionByVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMinecraftVersionByVersion' +type MockchunkRepository_GetMinecraftVersionByVersion_Call struct { *mock.Call } // GetMinecraftVersionByVersion is a helper method to define mock.On call // - _a0 context.Context // - _a1 string -func (_e *MockChunkRepository_Expecter) GetMinecraftVersionByVersion(_a0 interface{}, _a1 interface{}) *MockChunkRepository_GetMinecraftVersionByVersion_Call { - return &MockChunkRepository_GetMinecraftVersionByVersion_Call{Call: _e.mock.On("GetMinecraftVersionByVersion", _a0, _a1)} +func (_e *MockchunkRepository_Expecter) GetMinecraftVersionByVersion(_a0 interface{}, _a1 interface{}) *MockchunkRepository_GetMinecraftVersionByVersion_Call { + return &MockchunkRepository_GetMinecraftVersionByVersion_Call{Call: _e.mock.On("GetMinecraftVersionByVersion", _a0, _a1)} } -func (_c *MockChunkRepository_GetMinecraftVersionByVersion_Call) Run(run func(_a0 context.Context, _a1 string)) *MockChunkRepository_GetMinecraftVersionByVersion_Call { +func (_c *MockchunkRepository_GetMinecraftVersionByVersion_Call) Run(run func(_a0 context.Context, _a1 string)) *MockchunkRepository_GetMinecraftVersionByVersion_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_GetMinecraftVersionByVersion_Call) Return(_a0 resource.MinecraftVersion, _a1 error) *MockChunkRepository_GetMinecraftVersionByVersion_Call { +func (_c *MockchunkRepository_GetMinecraftVersionByVersion_Call) Return(_a0 resource.MinecraftVersion, _a1 error) *MockchunkRepository_GetMinecraftVersionByVersion_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_GetMinecraftVersionByVersion_Call) RunAndReturn(run func(context.Context, string) (resource.MinecraftVersion, error)) *MockChunkRepository_GetMinecraftVersionByVersion_Call { +func (_c *MockchunkRepository_GetMinecraftVersionByVersion_Call) RunAndReturn(run func(context.Context, string) (resource.MinecraftVersion, error)) *MockchunkRepository_GetMinecraftVersionByVersion_Call { _c.Call.Return(run) return _c } // LatestFlavorVersion provides a mock function with given fields: ctx, flavorID -func (_m *MockChunkRepository) LatestFlavorVersion(ctx context.Context, flavorID string) (resource.FlavorVersion, error) { +func (_m *MockchunkRepository) LatestFlavorVersion(ctx context.Context, flavorID string) (resource.FlavorVersion, error) { ret := _m.Called(ctx, flavorID) if len(ret) == 0 { @@ -847,37 +847,37 @@ func (_m *MockChunkRepository) LatestFlavorVersion(ctx context.Context, flavorID return r0, r1 } -// MockChunkRepository_LatestFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestFlavorVersion' -type MockChunkRepository_LatestFlavorVersion_Call struct { +// MockchunkRepository_LatestFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestFlavorVersion' +type MockchunkRepository_LatestFlavorVersion_Call struct { *mock.Call } // LatestFlavorVersion is a helper method to define mock.On call // - ctx context.Context // - flavorID string -func (_e *MockChunkRepository_Expecter) LatestFlavorVersion(ctx interface{}, flavorID interface{}) *MockChunkRepository_LatestFlavorVersion_Call { - return &MockChunkRepository_LatestFlavorVersion_Call{Call: _e.mock.On("LatestFlavorVersion", ctx, flavorID)} +func (_e *MockchunkRepository_Expecter) LatestFlavorVersion(ctx interface{}, flavorID interface{}) *MockchunkRepository_LatestFlavorVersion_Call { + return &MockchunkRepository_LatestFlavorVersion_Call{Call: _e.mock.On("LatestFlavorVersion", ctx, flavorID)} } -func (_c *MockChunkRepository_LatestFlavorVersion_Call) Run(run func(ctx context.Context, flavorID string)) *MockChunkRepository_LatestFlavorVersion_Call { +func (_c *MockchunkRepository_LatestFlavorVersion_Call) Run(run func(ctx context.Context, flavorID string)) *MockchunkRepository_LatestFlavorVersion_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_LatestFlavorVersion_Call) Return(_a0 resource.FlavorVersion, _a1 error) *MockChunkRepository_LatestFlavorVersion_Call { +func (_c *MockchunkRepository_LatestFlavorVersion_Call) Return(_a0 resource.FlavorVersion, _a1 error) *MockchunkRepository_LatestFlavorVersion_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_LatestFlavorVersion_Call) RunAndReturn(run func(context.Context, string) (resource.FlavorVersion, error)) *MockChunkRepository_LatestFlavorVersion_Call { +func (_c *MockchunkRepository_LatestFlavorVersion_Call) RunAndReturn(run func(context.Context, string) (resource.FlavorVersion, error)) *MockchunkRepository_LatestFlavorVersion_Call { _c.Call.Return(run) return _c } // ListChunks provides a mock function with given fields: ctx, pageSize, afterID -func (_m *MockChunkRepository) ListChunks(ctx context.Context, pageSize int, afterID *string) ([]resource.Chunk, error) { +func (_m *MockchunkRepository) ListChunks(ctx context.Context, pageSize int, afterID *string) ([]resource.Chunk, error) { ret := _m.Called(ctx, pageSize, afterID) if len(ret) == 0 { @@ -906,8 +906,8 @@ func (_m *MockChunkRepository) ListChunks(ctx context.Context, pageSize int, aft return r0, r1 } -// MockChunkRepository_ListChunks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListChunks' -type MockChunkRepository_ListChunks_Call struct { +// MockchunkRepository_ListChunks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListChunks' +type MockchunkRepository_ListChunks_Call struct { *mock.Call } @@ -915,29 +915,29 @@ type MockChunkRepository_ListChunks_Call struct { // - ctx context.Context // - pageSize int // - afterID *string -func (_e *MockChunkRepository_Expecter) ListChunks(ctx interface{}, pageSize interface{}, afterID interface{}) *MockChunkRepository_ListChunks_Call { - return &MockChunkRepository_ListChunks_Call{Call: _e.mock.On("ListChunks", ctx, pageSize, afterID)} +func (_e *MockchunkRepository_Expecter) ListChunks(ctx interface{}, pageSize interface{}, afterID interface{}) *MockchunkRepository_ListChunks_Call { + return &MockchunkRepository_ListChunks_Call{Call: _e.mock.On("ListChunks", ctx, pageSize, afterID)} } -func (_c *MockChunkRepository_ListChunks_Call) Run(run func(ctx context.Context, pageSize int, afterID *string)) *MockChunkRepository_ListChunks_Call { +func (_c *MockchunkRepository_ListChunks_Call) Run(run func(ctx context.Context, pageSize int, afterID *string)) *MockchunkRepository_ListChunks_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(int), args[2].(*string)) }) return _c } -func (_c *MockChunkRepository_ListChunks_Call) Return(_a0 []resource.Chunk, _a1 error) *MockChunkRepository_ListChunks_Call { +func (_c *MockchunkRepository_ListChunks_Call) Return(_a0 []resource.Chunk, _a1 error) *MockchunkRepository_ListChunks_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_ListChunks_Call) RunAndReturn(run func(context.Context, int, *string) ([]resource.Chunk, error)) *MockChunkRepository_ListChunks_Call { +func (_c *MockchunkRepository_ListChunks_Call) RunAndReturn(run func(context.Context, int, *string) ([]resource.Chunk, error)) *MockchunkRepository_ListChunks_Call { _c.Call.Return(run) return _c } // MarkChunkAndFlavorsDeleted provides a mock function with given fields: ctx, id -func (_m *MockChunkRepository) MarkChunkAndFlavorsDeleted(ctx context.Context, id string) error { +func (_m *MockchunkRepository) MarkChunkAndFlavorsDeleted(ctx context.Context, id string) error { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -954,37 +954,37 @@ func (_m *MockChunkRepository) MarkChunkAndFlavorsDeleted(ctx context.Context, i return r0 } -// MockChunkRepository_MarkChunkAndFlavorsDeleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkChunkAndFlavorsDeleted' -type MockChunkRepository_MarkChunkAndFlavorsDeleted_Call struct { +// MockchunkRepository_MarkChunkAndFlavorsDeleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkChunkAndFlavorsDeleted' +type MockchunkRepository_MarkChunkAndFlavorsDeleted_Call struct { *mock.Call } // MarkChunkAndFlavorsDeleted is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockChunkRepository_Expecter) MarkChunkAndFlavorsDeleted(ctx interface{}, id interface{}) *MockChunkRepository_MarkChunkAndFlavorsDeleted_Call { - return &MockChunkRepository_MarkChunkAndFlavorsDeleted_Call{Call: _e.mock.On("MarkChunkAndFlavorsDeleted", ctx, id)} +func (_e *MockchunkRepository_Expecter) MarkChunkAndFlavorsDeleted(ctx interface{}, id interface{}) *MockchunkRepository_MarkChunkAndFlavorsDeleted_Call { + return &MockchunkRepository_MarkChunkAndFlavorsDeleted_Call{Call: _e.mock.On("MarkChunkAndFlavorsDeleted", ctx, id)} } -func (_c *MockChunkRepository_MarkChunkAndFlavorsDeleted_Call) Run(run func(ctx context.Context, id string)) *MockChunkRepository_MarkChunkAndFlavorsDeleted_Call { +func (_c *MockchunkRepository_MarkChunkAndFlavorsDeleted_Call) Run(run func(ctx context.Context, id string)) *MockchunkRepository_MarkChunkAndFlavorsDeleted_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_MarkChunkAndFlavorsDeleted_Call) Return(_a0 error) *MockChunkRepository_MarkChunkAndFlavorsDeleted_Call { +func (_c *MockchunkRepository_MarkChunkAndFlavorsDeleted_Call) Return(_a0 error) *MockchunkRepository_MarkChunkAndFlavorsDeleted_Call { _c.Call.Return(_a0) return _c } -func (_c *MockChunkRepository_MarkChunkAndFlavorsDeleted_Call) RunAndReturn(run func(context.Context, string) error) *MockChunkRepository_MarkChunkAndFlavorsDeleted_Call { +func (_c *MockchunkRepository_MarkChunkAndFlavorsDeleted_Call) RunAndReturn(run func(context.Context, string) error) *MockchunkRepository_MarkChunkAndFlavorsDeleted_Call { _c.Call.Return(run) return _c } // MarkFlavorDeleted provides a mock function with given fields: ctx, id -func (_m *MockChunkRepository) MarkFlavorDeleted(ctx context.Context, id string) error { +func (_m *MockchunkRepository) MarkFlavorDeleted(ctx context.Context, id string) error { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -1001,37 +1001,37 @@ func (_m *MockChunkRepository) MarkFlavorDeleted(ctx context.Context, id string) return r0 } -// MockChunkRepository_MarkFlavorDeleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkFlavorDeleted' -type MockChunkRepository_MarkFlavorDeleted_Call struct { +// MockchunkRepository_MarkFlavorDeleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkFlavorDeleted' +type MockchunkRepository_MarkFlavorDeleted_Call struct { *mock.Call } // MarkFlavorDeleted is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockChunkRepository_Expecter) MarkFlavorDeleted(ctx interface{}, id interface{}) *MockChunkRepository_MarkFlavorDeleted_Call { - return &MockChunkRepository_MarkFlavorDeleted_Call{Call: _e.mock.On("MarkFlavorDeleted", ctx, id)} +func (_e *MockchunkRepository_Expecter) MarkFlavorDeleted(ctx interface{}, id interface{}) *MockchunkRepository_MarkFlavorDeleted_Call { + return &MockchunkRepository_MarkFlavorDeleted_Call{Call: _e.mock.On("MarkFlavorDeleted", ctx, id)} } -func (_c *MockChunkRepository_MarkFlavorDeleted_Call) Run(run func(ctx context.Context, id string)) *MockChunkRepository_MarkFlavorDeleted_Call { +func (_c *MockchunkRepository_MarkFlavorDeleted_Call) Run(run func(ctx context.Context, id string)) *MockchunkRepository_MarkFlavorDeleted_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_MarkFlavorDeleted_Call) Return(_a0 error) *MockChunkRepository_MarkFlavorDeleted_Call { +func (_c *MockchunkRepository_MarkFlavorDeleted_Call) Return(_a0 error) *MockchunkRepository_MarkFlavorDeleted_Call { _c.Call.Return(_a0) return _c } -func (_c *MockChunkRepository_MarkFlavorDeleted_Call) RunAndReturn(run func(context.Context, string) error) *MockChunkRepository_MarkFlavorDeleted_Call { +func (_c *MockchunkRepository_MarkFlavorDeleted_Call) RunAndReturn(run func(context.Context, string) error) *MockchunkRepository_MarkFlavorDeleted_Call { _c.Call.Return(run) return _c } // MarkFlavorVersionFilesUploaded provides a mock function with given fields: ctx, flavorVersionID -func (_m *MockChunkRepository) MarkFlavorVersionFilesUploaded(ctx context.Context, flavorVersionID string) error { +func (_m *MockchunkRepository) MarkFlavorVersionFilesUploaded(ctx context.Context, flavorVersionID string) error { ret := _m.Called(ctx, flavorVersionID) if len(ret) == 0 { @@ -1048,37 +1048,37 @@ func (_m *MockChunkRepository) MarkFlavorVersionFilesUploaded(ctx context.Contex return r0 } -// MockChunkRepository_MarkFlavorVersionFilesUploaded_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkFlavorVersionFilesUploaded' -type MockChunkRepository_MarkFlavorVersionFilesUploaded_Call struct { +// MockchunkRepository_MarkFlavorVersionFilesUploaded_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkFlavorVersionFilesUploaded' +type MockchunkRepository_MarkFlavorVersionFilesUploaded_Call struct { *mock.Call } // MarkFlavorVersionFilesUploaded is a helper method to define mock.On call // - ctx context.Context // - flavorVersionID string -func (_e *MockChunkRepository_Expecter) MarkFlavorVersionFilesUploaded(ctx interface{}, flavorVersionID interface{}) *MockChunkRepository_MarkFlavorVersionFilesUploaded_Call { - return &MockChunkRepository_MarkFlavorVersionFilesUploaded_Call{Call: _e.mock.On("MarkFlavorVersionFilesUploaded", ctx, flavorVersionID)} +func (_e *MockchunkRepository_Expecter) MarkFlavorVersionFilesUploaded(ctx interface{}, flavorVersionID interface{}) *MockchunkRepository_MarkFlavorVersionFilesUploaded_Call { + return &MockchunkRepository_MarkFlavorVersionFilesUploaded_Call{Call: _e.mock.On("MarkFlavorVersionFilesUploaded", ctx, flavorVersionID)} } -func (_c *MockChunkRepository_MarkFlavorVersionFilesUploaded_Call) Run(run func(ctx context.Context, flavorVersionID string)) *MockChunkRepository_MarkFlavorVersionFilesUploaded_Call { +func (_c *MockchunkRepository_MarkFlavorVersionFilesUploaded_Call) Run(run func(ctx context.Context, flavorVersionID string)) *MockchunkRepository_MarkFlavorVersionFilesUploaded_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockChunkRepository_MarkFlavorVersionFilesUploaded_Call) Return(_a0 error) *MockChunkRepository_MarkFlavorVersionFilesUploaded_Call { +func (_c *MockchunkRepository_MarkFlavorVersionFilesUploaded_Call) Return(_a0 error) *MockchunkRepository_MarkFlavorVersionFilesUploaded_Call { _c.Call.Return(_a0) return _c } -func (_c *MockChunkRepository_MarkFlavorVersionFilesUploaded_Call) RunAndReturn(run func(context.Context, string) error) *MockChunkRepository_MarkFlavorVersionFilesUploaded_Call { +func (_c *MockchunkRepository_MarkFlavorVersionFilesUploaded_Call) RunAndReturn(run func(context.Context, string) error) *MockchunkRepository_MarkFlavorVersionFilesUploaded_Call { _c.Call.Return(run) return _c } // SupportedMinecraftVersions provides a mock function with given fields: ctx -func (_m *MockChunkRepository) SupportedMinecraftVersions(ctx context.Context) ([]string, error) { +func (_m *MockchunkRepository) SupportedMinecraftVersions(ctx context.Context) ([]string, error) { ret := _m.Called(ctx) if len(ret) == 0 { @@ -1107,36 +1107,36 @@ func (_m *MockChunkRepository) SupportedMinecraftVersions(ctx context.Context) ( return r0, r1 } -// MockChunkRepository_SupportedMinecraftVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SupportedMinecraftVersions' -type MockChunkRepository_SupportedMinecraftVersions_Call struct { +// MockchunkRepository_SupportedMinecraftVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SupportedMinecraftVersions' +type MockchunkRepository_SupportedMinecraftVersions_Call struct { *mock.Call } // SupportedMinecraftVersions is a helper method to define mock.On call // - ctx context.Context -func (_e *MockChunkRepository_Expecter) SupportedMinecraftVersions(ctx interface{}) *MockChunkRepository_SupportedMinecraftVersions_Call { - return &MockChunkRepository_SupportedMinecraftVersions_Call{Call: _e.mock.On("SupportedMinecraftVersions", ctx)} +func (_e *MockchunkRepository_Expecter) SupportedMinecraftVersions(ctx interface{}) *MockchunkRepository_SupportedMinecraftVersions_Call { + return &MockchunkRepository_SupportedMinecraftVersions_Call{Call: _e.mock.On("SupportedMinecraftVersions", ctx)} } -func (_c *MockChunkRepository_SupportedMinecraftVersions_Call) Run(run func(ctx context.Context)) *MockChunkRepository_SupportedMinecraftVersions_Call { +func (_c *MockchunkRepository_SupportedMinecraftVersions_Call) Run(run func(ctx context.Context)) *MockchunkRepository_SupportedMinecraftVersions_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context)) }) return _c } -func (_c *MockChunkRepository_SupportedMinecraftVersions_Call) Return(_a0 []string, _a1 error) *MockChunkRepository_SupportedMinecraftVersions_Call { +func (_c *MockchunkRepository_SupportedMinecraftVersions_Call) Return(_a0 []string, _a1 error) *MockchunkRepository_SupportedMinecraftVersions_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_SupportedMinecraftVersions_Call) RunAndReturn(run func(context.Context) ([]string, error)) *MockChunkRepository_SupportedMinecraftVersions_Call { +func (_c *MockchunkRepository_SupportedMinecraftVersions_Call) RunAndReturn(run func(context.Context) ([]string, error)) *MockchunkRepository_SupportedMinecraftVersions_Call { _c.Call.Return(run) return _c } // UpdateChunk provides a mock function with given fields: ctx, _a1 -func (_m *MockChunkRepository) UpdateChunk(ctx context.Context, _a1 resource.Chunk) (resource.Chunk, error) { +func (_m *MockchunkRepository) UpdateChunk(ctx context.Context, _a1 resource.Chunk) (resource.Chunk, error) { ret := _m.Called(ctx, _a1) if len(ret) == 0 { @@ -1163,37 +1163,37 @@ func (_m *MockChunkRepository) UpdateChunk(ctx context.Context, _a1 resource.Chu return r0, r1 } -// MockChunkRepository_UpdateChunk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateChunk' -type MockChunkRepository_UpdateChunk_Call struct { +// MockchunkRepository_UpdateChunk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateChunk' +type MockchunkRepository_UpdateChunk_Call struct { *mock.Call } // UpdateChunk is a helper method to define mock.On call // - ctx context.Context // - _a1 resource.Chunk -func (_e *MockChunkRepository_Expecter) UpdateChunk(ctx interface{}, _a1 interface{}) *MockChunkRepository_UpdateChunk_Call { - return &MockChunkRepository_UpdateChunk_Call{Call: _e.mock.On("UpdateChunk", ctx, _a1)} +func (_e *MockchunkRepository_Expecter) UpdateChunk(ctx interface{}, _a1 interface{}) *MockchunkRepository_UpdateChunk_Call { + return &MockchunkRepository_UpdateChunk_Call{Call: _e.mock.On("UpdateChunk", ctx, _a1)} } -func (_c *MockChunkRepository_UpdateChunk_Call) Run(run func(ctx context.Context, _a1 resource.Chunk)) *MockChunkRepository_UpdateChunk_Call { +func (_c *MockchunkRepository_UpdateChunk_Call) Run(run func(ctx context.Context, _a1 resource.Chunk)) *MockchunkRepository_UpdateChunk_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(resource.Chunk)) }) return _c } -func (_c *MockChunkRepository_UpdateChunk_Call) Return(_a0 resource.Chunk, _a1 error) *MockChunkRepository_UpdateChunk_Call { +func (_c *MockchunkRepository_UpdateChunk_Call) Return(_a0 resource.Chunk, _a1 error) *MockchunkRepository_UpdateChunk_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockChunkRepository_UpdateChunk_Call) RunAndReturn(run func(context.Context, resource.Chunk) (resource.Chunk, error)) *MockChunkRepository_UpdateChunk_Call { +func (_c *MockchunkRepository_UpdateChunk_Call) RunAndReturn(run func(context.Context, resource.Chunk) (resource.Chunk, error)) *MockchunkRepository_UpdateChunk_Call { _c.Call.Return(run) return _c } // UpdateFlavorVersionBuildStatus provides a mock function with given fields: ctx, flavorVersionID, status -func (_m *MockChunkRepository) UpdateFlavorVersionBuildStatus(ctx context.Context, flavorVersionID string, status resource.FlavorVersionBuildStatus) error { +func (_m *MockchunkRepository) UpdateFlavorVersionBuildStatus(ctx context.Context, flavorVersionID string, status resource.FlavorVersionBuildStatus) error { ret := _m.Called(ctx, flavorVersionID, status) if len(ret) == 0 { @@ -1210,8 +1210,8 @@ func (_m *MockChunkRepository) UpdateFlavorVersionBuildStatus(ctx context.Contex return r0 } -// MockChunkRepository_UpdateFlavorVersionBuildStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFlavorVersionBuildStatus' -type MockChunkRepository_UpdateFlavorVersionBuildStatus_Call struct { +// MockchunkRepository_UpdateFlavorVersionBuildStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFlavorVersionBuildStatus' +type MockchunkRepository_UpdateFlavorVersionBuildStatus_Call struct { *mock.Call } @@ -1219,29 +1219,29 @@ type MockChunkRepository_UpdateFlavorVersionBuildStatus_Call struct { // - ctx context.Context // - flavorVersionID string // - status resource.FlavorVersionBuildStatus -func (_e *MockChunkRepository_Expecter) UpdateFlavorVersionBuildStatus(ctx interface{}, flavorVersionID interface{}, status interface{}) *MockChunkRepository_UpdateFlavorVersionBuildStatus_Call { - return &MockChunkRepository_UpdateFlavorVersionBuildStatus_Call{Call: _e.mock.On("UpdateFlavorVersionBuildStatus", ctx, flavorVersionID, status)} +func (_e *MockchunkRepository_Expecter) UpdateFlavorVersionBuildStatus(ctx interface{}, flavorVersionID interface{}, status interface{}) *MockchunkRepository_UpdateFlavorVersionBuildStatus_Call { + return &MockchunkRepository_UpdateFlavorVersionBuildStatus_Call{Call: _e.mock.On("UpdateFlavorVersionBuildStatus", ctx, flavorVersionID, status)} } -func (_c *MockChunkRepository_UpdateFlavorVersionBuildStatus_Call) Run(run func(ctx context.Context, flavorVersionID string, status resource.FlavorVersionBuildStatus)) *MockChunkRepository_UpdateFlavorVersionBuildStatus_Call { +func (_c *MockchunkRepository_UpdateFlavorVersionBuildStatus_Call) Run(run func(ctx context.Context, flavorVersionID string, status resource.FlavorVersionBuildStatus)) *MockchunkRepository_UpdateFlavorVersionBuildStatus_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(resource.FlavorVersionBuildStatus)) }) return _c } -func (_c *MockChunkRepository_UpdateFlavorVersionBuildStatus_Call) Return(_a0 error) *MockChunkRepository_UpdateFlavorVersionBuildStatus_Call { +func (_c *MockchunkRepository_UpdateFlavorVersionBuildStatus_Call) Return(_a0 error) *MockchunkRepository_UpdateFlavorVersionBuildStatus_Call { _c.Call.Return(_a0) return _c } -func (_c *MockChunkRepository_UpdateFlavorVersionBuildStatus_Call) RunAndReturn(run func(context.Context, string, resource.FlavorVersionBuildStatus) error) *MockChunkRepository_UpdateFlavorVersionBuildStatus_Call { +func (_c *MockchunkRepository_UpdateFlavorVersionBuildStatus_Call) RunAndReturn(run func(context.Context, string, resource.FlavorVersionBuildStatus) error) *MockchunkRepository_UpdateFlavorVersionBuildStatus_Call { _c.Call.Return(run) return _c } // UpdateFlavorVersionPresignedURLData provides a mock function with given fields: ctx, flavorVersionID, date, url -func (_m *MockChunkRepository) UpdateFlavorVersionPresignedURLData(ctx context.Context, flavorVersionID string, date time.Time, url string) error { +func (_m *MockchunkRepository) UpdateFlavorVersionPresignedURLData(ctx context.Context, flavorVersionID string, date time.Time, url string) error { ret := _m.Called(ctx, flavorVersionID, date, url) if len(ret) == 0 { @@ -1258,8 +1258,8 @@ func (_m *MockChunkRepository) UpdateFlavorVersionPresignedURLData(ctx context.C return r0 } -// MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFlavorVersionPresignedURLData' -type MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call struct { +// MockchunkRepository_UpdateFlavorVersionPresignedURLData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFlavorVersionPresignedURLData' +type MockchunkRepository_UpdateFlavorVersionPresignedURLData_Call struct { *mock.Call } @@ -1268,29 +1268,29 @@ type MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call struct { // - flavorVersionID string // - date time.Time // - url string -func (_e *MockChunkRepository_Expecter) UpdateFlavorVersionPresignedURLData(ctx interface{}, flavorVersionID interface{}, date interface{}, url interface{}) *MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call { - return &MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call{Call: _e.mock.On("UpdateFlavorVersionPresignedURLData", ctx, flavorVersionID, date, url)} +func (_e *MockchunkRepository_Expecter) UpdateFlavorVersionPresignedURLData(ctx interface{}, flavorVersionID interface{}, date interface{}, url interface{}) *MockchunkRepository_UpdateFlavorVersionPresignedURLData_Call { + return &MockchunkRepository_UpdateFlavorVersionPresignedURLData_Call{Call: _e.mock.On("UpdateFlavorVersionPresignedURLData", ctx, flavorVersionID, date, url)} } -func (_c *MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call) Run(run func(ctx context.Context, flavorVersionID string, date time.Time, url string)) *MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call { +func (_c *MockchunkRepository_UpdateFlavorVersionPresignedURLData_Call) Run(run func(ctx context.Context, flavorVersionID string, date time.Time, url string)) *MockchunkRepository_UpdateFlavorVersionPresignedURLData_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(time.Time), args[3].(string)) }) return _c } -func (_c *MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call) Return(_a0 error) *MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call { +func (_c *MockchunkRepository_UpdateFlavorVersionPresignedURLData_Call) Return(_a0 error) *MockchunkRepository_UpdateFlavorVersionPresignedURLData_Call { _c.Call.Return(_a0) return _c } -func (_c *MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call) RunAndReturn(run func(context.Context, string, time.Time, string) error) *MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call { +func (_c *MockchunkRepository_UpdateFlavorVersionPresignedURLData_Call) RunAndReturn(run func(context.Context, string, time.Time, string) error) *MockchunkRepository_UpdateFlavorVersionPresignedURLData_Call { _c.Call.Return(run) return _c } // UpdateThumbnail provides a mock function with given fields: ctx, chunkID, imgHash -func (_m *MockChunkRepository) UpdateThumbnail(ctx context.Context, chunkID string, imgHash string) error { +func (_m *MockchunkRepository) UpdateThumbnail(ctx context.Context, chunkID string, imgHash string) error { ret := _m.Called(ctx, chunkID, imgHash) if len(ret) == 0 { @@ -1307,8 +1307,8 @@ func (_m *MockChunkRepository) UpdateThumbnail(ctx context.Context, chunkID stri return r0 } -// MockChunkRepository_UpdateThumbnail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateThumbnail' -type MockChunkRepository_UpdateThumbnail_Call struct { +// MockchunkRepository_UpdateThumbnail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateThumbnail' +type MockchunkRepository_UpdateThumbnail_Call struct { *mock.Call } @@ -1316,34 +1316,34 @@ type MockChunkRepository_UpdateThumbnail_Call struct { // - ctx context.Context // - chunkID string // - imgHash string -func (_e *MockChunkRepository_Expecter) UpdateThumbnail(ctx interface{}, chunkID interface{}, imgHash interface{}) *MockChunkRepository_UpdateThumbnail_Call { - return &MockChunkRepository_UpdateThumbnail_Call{Call: _e.mock.On("UpdateThumbnail", ctx, chunkID, imgHash)} +func (_e *MockchunkRepository_Expecter) UpdateThumbnail(ctx interface{}, chunkID interface{}, imgHash interface{}) *MockchunkRepository_UpdateThumbnail_Call { + return &MockchunkRepository_UpdateThumbnail_Call{Call: _e.mock.On("UpdateThumbnail", ctx, chunkID, imgHash)} } -func (_c *MockChunkRepository_UpdateThumbnail_Call) Run(run func(ctx context.Context, chunkID string, imgHash string)) *MockChunkRepository_UpdateThumbnail_Call { +func (_c *MockchunkRepository_UpdateThumbnail_Call) Run(run func(ctx context.Context, chunkID string, imgHash string)) *MockchunkRepository_UpdateThumbnail_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(string)) }) return _c } -func (_c *MockChunkRepository_UpdateThumbnail_Call) Return(_a0 error) *MockChunkRepository_UpdateThumbnail_Call { +func (_c *MockchunkRepository_UpdateThumbnail_Call) Return(_a0 error) *MockchunkRepository_UpdateThumbnail_Call { _c.Call.Return(_a0) return _c } -func (_c *MockChunkRepository_UpdateThumbnail_Call) RunAndReturn(run func(context.Context, string, string) error) *MockChunkRepository_UpdateThumbnail_Call { +func (_c *MockchunkRepository_UpdateThumbnail_Call) RunAndReturn(run func(context.Context, string, string) error) *MockchunkRepository_UpdateThumbnail_Call { _c.Call.Return(run) return _c } -// NewMockChunkRepository creates a new instance of MockChunkRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockchunkRepository creates a new instance of MockchunkRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockChunkRepository(t interface { +func NewMockchunkRepository(t interface { mock.TestingT Cleanup(func()) -}) *MockChunkRepository { - mock := &MockChunkRepository{} +}) *MockchunkRepository { + mock := &MockchunkRepository{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/cni_handler.go b/internal/mock/cni_handler.go index 99adf23fd..fa9b422d7 100644 --- a/internal/mock/cni_handler.go +++ b/internal/mock/cni_handler.go @@ -9,21 +9,21 @@ import ( net "net" ) -// MockCniHandler is an autogenerated mock type for the Handler type -type MockCniHandler struct { +// MockcniHandler is an autogenerated mock type for the Handler type +type MockcniHandler struct { mock.Mock } -type MockCniHandler_Expecter struct { +type MockcniHandler_Expecter struct { mock *mock.Mock } -func (_m *MockCniHandler) EXPECT() *MockCniHandler_Expecter { - return &MockCniHandler_Expecter{mock: &_m.Mock} +func (_m *MockcniHandler) EXPECT() *MockcniHandler_Expecter { + return &MockcniHandler_Expecter{mock: &_m.Mock} } // AddDNATTarget provides a mock function with given fields: veth, port -func (_m *MockCniHandler) AddDNATTarget(veth datapath.VethPair, port uint16) error { +func (_m *MockcniHandler) AddDNATTarget(veth datapath.VethPair, port uint16) error { ret := _m.Called(veth, port) if len(ret) == 0 { @@ -40,37 +40,37 @@ func (_m *MockCniHandler) AddDNATTarget(veth datapath.VethPair, port uint16) err return r0 } -// MockCniHandler_AddDNATTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddDNATTarget' -type MockCniHandler_AddDNATTarget_Call struct { +// MockcniHandler_AddDNATTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddDNATTarget' +type MockcniHandler_AddDNATTarget_Call struct { *mock.Call } // AddDNATTarget is a helper method to define mock.On call // - veth datapath.VethPair // - port uint16 -func (_e *MockCniHandler_Expecter) AddDNATTarget(veth interface{}, port interface{}) *MockCniHandler_AddDNATTarget_Call { - return &MockCniHandler_AddDNATTarget_Call{Call: _e.mock.On("AddDNATTarget", veth, port)} +func (_e *MockcniHandler_Expecter) AddDNATTarget(veth interface{}, port interface{}) *MockcniHandler_AddDNATTarget_Call { + return &MockcniHandler_AddDNATTarget_Call{Call: _e.mock.On("AddDNATTarget", veth, port)} } -func (_c *MockCniHandler_AddDNATTarget_Call) Run(run func(veth datapath.VethPair, port uint16)) *MockCniHandler_AddDNATTarget_Call { +func (_c *MockcniHandler_AddDNATTarget_Call) Run(run func(veth datapath.VethPair, port uint16)) *MockcniHandler_AddDNATTarget_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(datapath.VethPair), args[1].(uint16)) }) return _c } -func (_c *MockCniHandler_AddDNATTarget_Call) Return(_a0 error) *MockCniHandler_AddDNATTarget_Call { +func (_c *MockcniHandler_AddDNATTarget_Call) Return(_a0 error) *MockcniHandler_AddDNATTarget_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCniHandler_AddDNATTarget_Call) RunAndReturn(run func(datapath.VethPair, uint16) error) *MockCniHandler_AddDNATTarget_Call { +func (_c *MockcniHandler_AddDNATTarget_Call) RunAndReturn(run func(datapath.VethPair, uint16) error) *MockcniHandler_AddDNATTarget_Call { _c.Call.Return(run) return _c } // AddDefaultRoute provides a mock function with given fields: veth, nsPath -func (_m *MockCniHandler) AddDefaultRoute(veth datapath.VethPair, nsPath string) error { +func (_m *MockcniHandler) AddDefaultRoute(veth datapath.VethPair, nsPath string) error { ret := _m.Called(veth, nsPath) if len(ret) == 0 { @@ -87,37 +87,37 @@ func (_m *MockCniHandler) AddDefaultRoute(veth datapath.VethPair, nsPath string) return r0 } -// MockCniHandler_AddDefaultRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddDefaultRoute' -type MockCniHandler_AddDefaultRoute_Call struct { +// MockcniHandler_AddDefaultRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddDefaultRoute' +type MockcniHandler_AddDefaultRoute_Call struct { *mock.Call } // AddDefaultRoute is a helper method to define mock.On call // - veth datapath.VethPair // - nsPath string -func (_e *MockCniHandler_Expecter) AddDefaultRoute(veth interface{}, nsPath interface{}) *MockCniHandler_AddDefaultRoute_Call { - return &MockCniHandler_AddDefaultRoute_Call{Call: _e.mock.On("AddDefaultRoute", veth, nsPath)} +func (_e *MockcniHandler_Expecter) AddDefaultRoute(veth interface{}, nsPath interface{}) *MockcniHandler_AddDefaultRoute_Call { + return &MockcniHandler_AddDefaultRoute_Call{Call: _e.mock.On("AddDefaultRoute", veth, nsPath)} } -func (_c *MockCniHandler_AddDefaultRoute_Call) Run(run func(veth datapath.VethPair, nsPath string)) *MockCniHandler_AddDefaultRoute_Call { +func (_c *MockcniHandler_AddDefaultRoute_Call) Run(run func(veth datapath.VethPair, nsPath string)) *MockcniHandler_AddDefaultRoute_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(datapath.VethPair), args[1].(string)) }) return _c } -func (_c *MockCniHandler_AddDefaultRoute_Call) Return(_a0 error) *MockCniHandler_AddDefaultRoute_Call { +func (_c *MockcniHandler_AddDefaultRoute_Call) Return(_a0 error) *MockcniHandler_AddDefaultRoute_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCniHandler_AddDefaultRoute_Call) RunAndReturn(run func(datapath.VethPair, string) error) *MockCniHandler_AddDefaultRoute_Call { +func (_c *MockcniHandler_AddDefaultRoute_Call) RunAndReturn(run func(datapath.VethPair, string) error) *MockcniHandler_AddDefaultRoute_Call { _c.Call.Return(run) return _c } // AddFullMatchRoute provides a mock function with given fields: veth -func (_m *MockCniHandler) AddFullMatchRoute(veth datapath.VethPair) error { +func (_m *MockcniHandler) AddFullMatchRoute(veth datapath.VethPair) error { ret := _m.Called(veth) if len(ret) == 0 { @@ -134,36 +134,36 @@ func (_m *MockCniHandler) AddFullMatchRoute(veth datapath.VethPair) error { return r0 } -// MockCniHandler_AddFullMatchRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddFullMatchRoute' -type MockCniHandler_AddFullMatchRoute_Call struct { +// MockcniHandler_AddFullMatchRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddFullMatchRoute' +type MockcniHandler_AddFullMatchRoute_Call struct { *mock.Call } // AddFullMatchRoute is a helper method to define mock.On call // - veth datapath.VethPair -func (_e *MockCniHandler_Expecter) AddFullMatchRoute(veth interface{}) *MockCniHandler_AddFullMatchRoute_Call { - return &MockCniHandler_AddFullMatchRoute_Call{Call: _e.mock.On("AddFullMatchRoute", veth)} +func (_e *MockcniHandler_Expecter) AddFullMatchRoute(veth interface{}) *MockcniHandler_AddFullMatchRoute_Call { + return &MockcniHandler_AddFullMatchRoute_Call{Call: _e.mock.On("AddFullMatchRoute", veth)} } -func (_c *MockCniHandler_AddFullMatchRoute_Call) Run(run func(veth datapath.VethPair)) *MockCniHandler_AddFullMatchRoute_Call { +func (_c *MockcniHandler_AddFullMatchRoute_Call) Run(run func(veth datapath.VethPair)) *MockcniHandler_AddFullMatchRoute_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(datapath.VethPair)) }) return _c } -func (_c *MockCniHandler_AddFullMatchRoute_Call) Return(_a0 error) *MockCniHandler_AddFullMatchRoute_Call { +func (_c *MockcniHandler_AddFullMatchRoute_Call) Return(_a0 error) *MockcniHandler_AddFullMatchRoute_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCniHandler_AddFullMatchRoute_Call) RunAndReturn(run func(datapath.VethPair) error) *MockCniHandler_AddFullMatchRoute_Call { +func (_c *MockcniHandler_AddFullMatchRoute_Call) RunAndReturn(run func(datapath.VethPair) error) *MockcniHandler_AddFullMatchRoute_Call { _c.Call.Return(run) return _c } // AddNetData provides a mock function with given fields: data -func (_m *MockCniHandler) AddNetData(data datapath.NetData) error { +func (_m *MockcniHandler) AddNetData(data datapath.NetData) error { ret := _m.Called(data) if len(ret) == 0 { @@ -180,36 +180,36 @@ func (_m *MockCniHandler) AddNetData(data datapath.NetData) error { return r0 } -// MockCniHandler_AddNetData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddNetData' -type MockCniHandler_AddNetData_Call struct { +// MockcniHandler_AddNetData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddNetData' +type MockcniHandler_AddNetData_Call struct { *mock.Call } // AddNetData is a helper method to define mock.On call // - data datapath.NetData -func (_e *MockCniHandler_Expecter) AddNetData(data interface{}) *MockCniHandler_AddNetData_Call { - return &MockCniHandler_AddNetData_Call{Call: _e.mock.On("AddNetData", data)} +func (_e *MockcniHandler_Expecter) AddNetData(data interface{}) *MockcniHandler_AddNetData_Call { + return &MockcniHandler_AddNetData_Call{Call: _e.mock.On("AddNetData", data)} } -func (_c *MockCniHandler_AddNetData_Call) Run(run func(data datapath.NetData)) *MockCniHandler_AddNetData_Call { +func (_c *MockcniHandler_AddNetData_Call) Run(run func(data datapath.NetData)) *MockcniHandler_AddNetData_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(datapath.NetData)) }) return _c } -func (_c *MockCniHandler_AddNetData_Call) Return(_a0 error) *MockCniHandler_AddNetData_Call { +func (_c *MockcniHandler_AddNetData_Call) Return(_a0 error) *MockcniHandler_AddNetData_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCniHandler_AddNetData_Call) RunAndReturn(run func(datapath.NetData) error) *MockCniHandler_AddNetData_Call { +func (_c *MockcniHandler_AddNetData_Call) RunAndReturn(run func(datapath.NetData) error) *MockcniHandler_AddNetData_Call { _c.Call.Return(run) return _c } // AllocIPs provides a mock function with given fields: plugin, stdinData -func (_m *MockCniHandler) AllocIPs(plugin string, stdinData []byte) ([]net.IPNet, error) { +func (_m *MockcniHandler) AllocIPs(plugin string, stdinData []byte) ([]net.IPNet, error) { ret := _m.Called(plugin, stdinData) if len(ret) == 0 { @@ -238,37 +238,37 @@ func (_m *MockCniHandler) AllocIPs(plugin string, stdinData []byte) ([]net.IPNet return r0, r1 } -// MockCniHandler_AllocIPs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllocIPs' -type MockCniHandler_AllocIPs_Call struct { +// MockcniHandler_AllocIPs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllocIPs' +type MockcniHandler_AllocIPs_Call struct { *mock.Call } // AllocIPs is a helper method to define mock.On call // - plugin string // - stdinData []byte -func (_e *MockCniHandler_Expecter) AllocIPs(plugin interface{}, stdinData interface{}) *MockCniHandler_AllocIPs_Call { - return &MockCniHandler_AllocIPs_Call{Call: _e.mock.On("AllocIPs", plugin, stdinData)} +func (_e *MockcniHandler_Expecter) AllocIPs(plugin interface{}, stdinData interface{}) *MockcniHandler_AllocIPs_Call { + return &MockcniHandler_AllocIPs_Call{Call: _e.mock.On("AllocIPs", plugin, stdinData)} } -func (_c *MockCniHandler_AllocIPs_Call) Run(run func(plugin string, stdinData []byte)) *MockCniHandler_AllocIPs_Call { +func (_c *MockcniHandler_AllocIPs_Call) Run(run func(plugin string, stdinData []byte)) *MockcniHandler_AllocIPs_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string), args[1].([]byte)) }) return _c } -func (_c *MockCniHandler_AllocIPs_Call) Return(_a0 []net.IPNet, _a1 error) *MockCniHandler_AllocIPs_Call { +func (_c *MockcniHandler_AllocIPs_Call) Return(_a0 []net.IPNet, _a1 error) *MockcniHandler_AllocIPs_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCniHandler_AllocIPs_Call) RunAndReturn(run func(string, []byte) ([]net.IPNet, error)) *MockCniHandler_AllocIPs_Call { +func (_c *MockcniHandler_AllocIPs_Call) RunAndReturn(run func(string, []byte) ([]net.IPNet, error)) *MockcniHandler_AllocIPs_Call { _c.Call.Return(run) return _c } // AllocVethPair provides a mock function with given fields: netNS, hostAddr, podAddr -func (_m *MockCniHandler) AllocVethPair(netNS string, hostAddr net.IPNet, podAddr net.IPNet) (datapath.VethPair, error) { +func (_m *MockcniHandler) AllocVethPair(netNS string, hostAddr net.IPNet, podAddr net.IPNet) (datapath.VethPair, error) { ret := _m.Called(netNS, hostAddr, podAddr) if len(ret) == 0 { @@ -295,8 +295,8 @@ func (_m *MockCniHandler) AllocVethPair(netNS string, hostAddr net.IPNet, podAdd return r0, r1 } -// MockCniHandler_AllocVethPair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllocVethPair' -type MockCniHandler_AllocVethPair_Call struct { +// MockcniHandler_AllocVethPair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllocVethPair' +type MockcniHandler_AllocVethPair_Call struct { *mock.Call } @@ -304,29 +304,29 @@ type MockCniHandler_AllocVethPair_Call struct { // - netNS string // - hostAddr net.IPNet // - podAddr net.IPNet -func (_e *MockCniHandler_Expecter) AllocVethPair(netNS interface{}, hostAddr interface{}, podAddr interface{}) *MockCniHandler_AllocVethPair_Call { - return &MockCniHandler_AllocVethPair_Call{Call: _e.mock.On("AllocVethPair", netNS, hostAddr, podAddr)} +func (_e *MockcniHandler_Expecter) AllocVethPair(netNS interface{}, hostAddr interface{}, podAddr interface{}) *MockcniHandler_AllocVethPair_Call { + return &MockcniHandler_AllocVethPair_Call{Call: _e.mock.On("AllocVethPair", netNS, hostAddr, podAddr)} } -func (_c *MockCniHandler_AllocVethPair_Call) Run(run func(netNS string, hostAddr net.IPNet, podAddr net.IPNet)) *MockCniHandler_AllocVethPair_Call { +func (_c *MockcniHandler_AllocVethPair_Call) Run(run func(netNS string, hostAddr net.IPNet, podAddr net.IPNet)) *MockcniHandler_AllocVethPair_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string), args[1].(net.IPNet), args[2].(net.IPNet)) }) return _c } -func (_c *MockCniHandler_AllocVethPair_Call) Return(_a0 datapath.VethPair, _a1 error) *MockCniHandler_AllocVethPair_Call { +func (_c *MockcniHandler_AllocVethPair_Call) Return(_a0 datapath.VethPair, _a1 error) *MockcniHandler_AllocVethPair_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCniHandler_AllocVethPair_Call) RunAndReturn(run func(string, net.IPNet, net.IPNet) (datapath.VethPair, error)) *MockCniHandler_AllocVethPair_Call { +func (_c *MockcniHandler_AllocVethPair_Call) RunAndReturn(run func(string, net.IPNet, net.IPNet) (datapath.VethPair, error)) *MockcniHandler_AllocVethPair_Call { _c.Call.Return(run) return _c } // AttachCtrVethBPF provides a mock function with given fields: veth, netNS -func (_m *MockCniHandler) AttachCtrVethBPF(veth datapath.VethPair, netNS string) error { +func (_m *MockcniHandler) AttachCtrVethBPF(veth datapath.VethPair, netNS string) error { ret := _m.Called(veth, netNS) if len(ret) == 0 { @@ -343,37 +343,37 @@ func (_m *MockCniHandler) AttachCtrVethBPF(veth datapath.VethPair, netNS string) return r0 } -// MockCniHandler_AttachCtrVethBPF_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachCtrVethBPF' -type MockCniHandler_AttachCtrVethBPF_Call struct { +// MockcniHandler_AttachCtrVethBPF_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachCtrVethBPF' +type MockcniHandler_AttachCtrVethBPF_Call struct { *mock.Call } // AttachCtrVethBPF is a helper method to define mock.On call // - veth datapath.VethPair // - netNS string -func (_e *MockCniHandler_Expecter) AttachCtrVethBPF(veth interface{}, netNS interface{}) *MockCniHandler_AttachCtrVethBPF_Call { - return &MockCniHandler_AttachCtrVethBPF_Call{Call: _e.mock.On("AttachCtrVethBPF", veth, netNS)} +func (_e *MockcniHandler_Expecter) AttachCtrVethBPF(veth interface{}, netNS interface{}) *MockcniHandler_AttachCtrVethBPF_Call { + return &MockcniHandler_AttachCtrVethBPF_Call{Call: _e.mock.On("AttachCtrVethBPF", veth, netNS)} } -func (_c *MockCniHandler_AttachCtrVethBPF_Call) Run(run func(veth datapath.VethPair, netNS string)) *MockCniHandler_AttachCtrVethBPF_Call { +func (_c *MockcniHandler_AttachCtrVethBPF_Call) Run(run func(veth datapath.VethPair, netNS string)) *MockcniHandler_AttachCtrVethBPF_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(datapath.VethPair), args[1].(string)) }) return _c } -func (_c *MockCniHandler_AttachCtrVethBPF_Call) Return(_a0 error) *MockCniHandler_AttachCtrVethBPF_Call { +func (_c *MockcniHandler_AttachCtrVethBPF_Call) Return(_a0 error) *MockcniHandler_AttachCtrVethBPF_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCniHandler_AttachCtrVethBPF_Call) RunAndReturn(run func(datapath.VethPair, string) error) *MockCniHandler_AttachCtrVethBPF_Call { +func (_c *MockcniHandler_AttachCtrVethBPF_Call) RunAndReturn(run func(datapath.VethPair, string) error) *MockcniHandler_AttachCtrVethBPF_Call { _c.Call.Return(run) return _c } // AttachHostVethBPF provides a mock function with given fields: veth -func (_m *MockCniHandler) AttachHostVethBPF(veth datapath.VethPair) error { +func (_m *MockcniHandler) AttachHostVethBPF(veth datapath.VethPair) error { ret := _m.Called(veth) if len(ret) == 0 { @@ -390,36 +390,36 @@ func (_m *MockCniHandler) AttachHostVethBPF(veth datapath.VethPair) error { return r0 } -// MockCniHandler_AttachHostVethBPF_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachHostVethBPF' -type MockCniHandler_AttachHostVethBPF_Call struct { +// MockcniHandler_AttachHostVethBPF_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachHostVethBPF' +type MockcniHandler_AttachHostVethBPF_Call struct { *mock.Call } // AttachHostVethBPF is a helper method to define mock.On call // - veth datapath.VethPair -func (_e *MockCniHandler_Expecter) AttachHostVethBPF(veth interface{}) *MockCniHandler_AttachHostVethBPF_Call { - return &MockCniHandler_AttachHostVethBPF_Call{Call: _e.mock.On("AttachHostVethBPF", veth)} +func (_e *MockcniHandler_Expecter) AttachHostVethBPF(veth interface{}) *MockcniHandler_AttachHostVethBPF_Call { + return &MockcniHandler_AttachHostVethBPF_Call{Call: _e.mock.On("AttachHostVethBPF", veth)} } -func (_c *MockCniHandler_AttachHostVethBPF_Call) Run(run func(veth datapath.VethPair)) *MockCniHandler_AttachHostVethBPF_Call { +func (_c *MockcniHandler_AttachHostVethBPF_Call) Run(run func(veth datapath.VethPair)) *MockcniHandler_AttachHostVethBPF_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(datapath.VethPair)) }) return _c } -func (_c *MockCniHandler_AttachHostVethBPF_Call) Return(_a0 error) *MockCniHandler_AttachHostVethBPF_Call { +func (_c *MockcniHandler_AttachHostVethBPF_Call) Return(_a0 error) *MockcniHandler_AttachHostVethBPF_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCniHandler_AttachHostVethBPF_Call) RunAndReturn(run func(datapath.VethPair) error) *MockCniHandler_AttachHostVethBPF_Call { +func (_c *MockcniHandler_AttachHostVethBPF_Call) RunAndReturn(run func(datapath.VethPair) error) *MockcniHandler_AttachHostVethBPF_Call { _c.Call.Return(run) return _c } // DeallocIPs provides a mock function with given fields: plugin, stdinData -func (_m *MockCniHandler) DeallocIPs(plugin string, stdinData []byte) error { +func (_m *MockcniHandler) DeallocIPs(plugin string, stdinData []byte) error { ret := _m.Called(plugin, stdinData) if len(ret) == 0 { @@ -436,37 +436,37 @@ func (_m *MockCniHandler) DeallocIPs(plugin string, stdinData []byte) error { return r0 } -// MockCniHandler_DeallocIPs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeallocIPs' -type MockCniHandler_DeallocIPs_Call struct { +// MockcniHandler_DeallocIPs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeallocIPs' +type MockcniHandler_DeallocIPs_Call struct { *mock.Call } // DeallocIPs is a helper method to define mock.On call // - plugin string // - stdinData []byte -func (_e *MockCniHandler_Expecter) DeallocIPs(plugin interface{}, stdinData interface{}) *MockCniHandler_DeallocIPs_Call { - return &MockCniHandler_DeallocIPs_Call{Call: _e.mock.On("DeallocIPs", plugin, stdinData)} +func (_e *MockcniHandler_Expecter) DeallocIPs(plugin interface{}, stdinData interface{}) *MockcniHandler_DeallocIPs_Call { + return &MockcniHandler_DeallocIPs_Call{Call: _e.mock.On("DeallocIPs", plugin, stdinData)} } -func (_c *MockCniHandler_DeallocIPs_Call) Run(run func(plugin string, stdinData []byte)) *MockCniHandler_DeallocIPs_Call { +func (_c *MockcniHandler_DeallocIPs_Call) Run(run func(plugin string, stdinData []byte)) *MockcniHandler_DeallocIPs_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string), args[1].([]byte)) }) return _c } -func (_c *MockCniHandler_DeallocIPs_Call) Return(_a0 error) *MockCniHandler_DeallocIPs_Call { +func (_c *MockcniHandler_DeallocIPs_Call) Return(_a0 error) *MockcniHandler_DeallocIPs_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCniHandler_DeallocIPs_Call) RunAndReturn(run func(string, []byte) error) *MockCniHandler_DeallocIPs_Call { +func (_c *MockcniHandler_DeallocIPs_Call) RunAndReturn(run func(string, []byte) error) *MockcniHandler_DeallocIPs_Call { _c.Call.Return(run) return _c } // DeallocVethPair provides a mock function with given fields: veth -func (_m *MockCniHandler) DeallocVethPair(veth datapath.VethPair) error { +func (_m *MockcniHandler) DeallocVethPair(veth datapath.VethPair) error { ret := _m.Called(veth) if len(ret) == 0 { @@ -483,36 +483,36 @@ func (_m *MockCniHandler) DeallocVethPair(veth datapath.VethPair) error { return r0 } -// MockCniHandler_DeallocVethPair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeallocVethPair' -type MockCniHandler_DeallocVethPair_Call struct { +// MockcniHandler_DeallocVethPair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeallocVethPair' +type MockcniHandler_DeallocVethPair_Call struct { *mock.Call } // DeallocVethPair is a helper method to define mock.On call // - veth datapath.VethPair -func (_e *MockCniHandler_Expecter) DeallocVethPair(veth interface{}) *MockCniHandler_DeallocVethPair_Call { - return &MockCniHandler_DeallocVethPair_Call{Call: _e.mock.On("DeallocVethPair", veth)} +func (_e *MockcniHandler_Expecter) DeallocVethPair(veth interface{}) *MockcniHandler_DeallocVethPair_Call { + return &MockcniHandler_DeallocVethPair_Call{Call: _e.mock.On("DeallocVethPair", veth)} } -func (_c *MockCniHandler_DeallocVethPair_Call) Run(run func(veth datapath.VethPair)) *MockCniHandler_DeallocVethPair_Call { +func (_c *MockcniHandler_DeallocVethPair_Call) Run(run func(veth datapath.VethPair)) *MockcniHandler_DeallocVethPair_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(datapath.VethPair)) }) return _c } -func (_c *MockCniHandler_DeallocVethPair_Call) Return(_a0 error) *MockCniHandler_DeallocVethPair_Call { +func (_c *MockcniHandler_DeallocVethPair_Call) Return(_a0 error) *MockcniHandler_DeallocVethPair_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCniHandler_DeallocVethPair_Call) RunAndReturn(run func(datapath.VethPair) error) *MockCniHandler_DeallocVethPair_Call { +func (_c *MockcniHandler_DeallocVethPair_Call) RunAndReturn(run func(datapath.VethPair) error) *MockcniHandler_DeallocVethPair_Call { _c.Call.Return(run) return _c } // DelFullMatchRoute provides a mock function with given fields: veth -func (_m *MockCniHandler) DelFullMatchRoute(veth datapath.VethPair) error { +func (_m *MockcniHandler) DelFullMatchRoute(veth datapath.VethPair) error { ret := _m.Called(veth) if len(ret) == 0 { @@ -529,36 +529,36 @@ func (_m *MockCniHandler) DelFullMatchRoute(veth datapath.VethPair) error { return r0 } -// MockCniHandler_DelFullMatchRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DelFullMatchRoute' -type MockCniHandler_DelFullMatchRoute_Call struct { +// MockcniHandler_DelFullMatchRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DelFullMatchRoute' +type MockcniHandler_DelFullMatchRoute_Call struct { *mock.Call } // DelFullMatchRoute is a helper method to define mock.On call // - veth datapath.VethPair -func (_e *MockCniHandler_Expecter) DelFullMatchRoute(veth interface{}) *MockCniHandler_DelFullMatchRoute_Call { - return &MockCniHandler_DelFullMatchRoute_Call{Call: _e.mock.On("DelFullMatchRoute", veth)} +func (_e *MockcniHandler_Expecter) DelFullMatchRoute(veth interface{}) *MockcniHandler_DelFullMatchRoute_Call { + return &MockcniHandler_DelFullMatchRoute_Call{Call: _e.mock.On("DelFullMatchRoute", veth)} } -func (_c *MockCniHandler_DelFullMatchRoute_Call) Run(run func(veth datapath.VethPair)) *MockCniHandler_DelFullMatchRoute_Call { +func (_c *MockcniHandler_DelFullMatchRoute_Call) Run(run func(veth datapath.VethPair)) *MockcniHandler_DelFullMatchRoute_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(datapath.VethPair)) }) return _c } -func (_c *MockCniHandler_DelFullMatchRoute_Call) Return(_a0 error) *MockCniHandler_DelFullMatchRoute_Call { +func (_c *MockcniHandler_DelFullMatchRoute_Call) Return(_a0 error) *MockcniHandler_DelFullMatchRoute_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCniHandler_DelFullMatchRoute_Call) RunAndReturn(run func(datapath.VethPair) error) *MockCniHandler_DelFullMatchRoute_Call { +func (_c *MockcniHandler_DelFullMatchRoute_Call) RunAndReturn(run func(datapath.VethPair) error) *MockcniHandler_DelFullMatchRoute_Call { _c.Call.Return(run) return _c } // DelMapEntries provides a mock function with given fields: veth, hostPort -func (_m *MockCniHandler) DelMapEntries(veth datapath.VethPair, hostPort uint16) error { +func (_m *MockcniHandler) DelMapEntries(veth datapath.VethPair, hostPort uint16) error { ret := _m.Called(veth, hostPort) if len(ret) == 0 { @@ -575,37 +575,37 @@ func (_m *MockCniHandler) DelMapEntries(veth datapath.VethPair, hostPort uint16) return r0 } -// MockCniHandler_DelMapEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DelMapEntries' -type MockCniHandler_DelMapEntries_Call struct { +// MockcniHandler_DelMapEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DelMapEntries' +type MockcniHandler_DelMapEntries_Call struct { *mock.Call } // DelMapEntries is a helper method to define mock.On call // - veth datapath.VethPair // - hostPort uint16 -func (_e *MockCniHandler_Expecter) DelMapEntries(veth interface{}, hostPort interface{}) *MockCniHandler_DelMapEntries_Call { - return &MockCniHandler_DelMapEntries_Call{Call: _e.mock.On("DelMapEntries", veth, hostPort)} +func (_e *MockcniHandler_Expecter) DelMapEntries(veth interface{}, hostPort interface{}) *MockcniHandler_DelMapEntries_Call { + return &MockcniHandler_DelMapEntries_Call{Call: _e.mock.On("DelMapEntries", veth, hostPort)} } -func (_c *MockCniHandler_DelMapEntries_Call) Run(run func(veth datapath.VethPair, hostPort uint16)) *MockCniHandler_DelMapEntries_Call { +func (_c *MockcniHandler_DelMapEntries_Call) Run(run func(veth datapath.VethPair, hostPort uint16)) *MockcniHandler_DelMapEntries_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(datapath.VethPair), args[1].(uint16)) }) return _c } -func (_c *MockCniHandler_DelMapEntries_Call) Return(_a0 error) *MockCniHandler_DelMapEntries_Call { +func (_c *MockcniHandler_DelMapEntries_Call) Return(_a0 error) *MockcniHandler_DelMapEntries_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCniHandler_DelMapEntries_Call) RunAndReturn(run func(datapath.VethPair, uint16) error) *MockCniHandler_DelMapEntries_Call { +func (_c *MockcniHandler_DelMapEntries_Call) RunAndReturn(run func(datapath.VethPair, uint16) error) *MockcniHandler_DelMapEntries_Call { _c.Call.Return(run) return _c } // GetVethPair provides a mock function with given fields: hostPort -func (_m *MockCniHandler) GetVethPair(hostPort uint16) (datapath.VethPair, error) { +func (_m *MockcniHandler) GetVethPair(hostPort uint16) (datapath.VethPair, error) { ret := _m.Called(hostPort) if len(ret) == 0 { @@ -632,41 +632,41 @@ func (_m *MockCniHandler) GetVethPair(hostPort uint16) (datapath.VethPair, error return r0, r1 } -// MockCniHandler_GetVethPair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVethPair' -type MockCniHandler_GetVethPair_Call struct { +// MockcniHandler_GetVethPair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVethPair' +type MockcniHandler_GetVethPair_Call struct { *mock.Call } // GetVethPair is a helper method to define mock.On call // - hostPort uint16 -func (_e *MockCniHandler_Expecter) GetVethPair(hostPort interface{}) *MockCniHandler_GetVethPair_Call { - return &MockCniHandler_GetVethPair_Call{Call: _e.mock.On("GetVethPair", hostPort)} +func (_e *MockcniHandler_Expecter) GetVethPair(hostPort interface{}) *MockcniHandler_GetVethPair_Call { + return &MockcniHandler_GetVethPair_Call{Call: _e.mock.On("GetVethPair", hostPort)} } -func (_c *MockCniHandler_GetVethPair_Call) Run(run func(hostPort uint16)) *MockCniHandler_GetVethPair_Call { +func (_c *MockcniHandler_GetVethPair_Call) Run(run func(hostPort uint16)) *MockcniHandler_GetVethPair_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(uint16)) }) return _c } -func (_c *MockCniHandler_GetVethPair_Call) Return(_a0 datapath.VethPair, _a1 error) *MockCniHandler_GetVethPair_Call { +func (_c *MockcniHandler_GetVethPair_Call) Return(_a0 datapath.VethPair, _a1 error) *MockcniHandler_GetVethPair_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCniHandler_GetVethPair_Call) RunAndReturn(run func(uint16) (datapath.VethPair, error)) *MockCniHandler_GetVethPair_Call { +func (_c *MockcniHandler_GetVethPair_Call) RunAndReturn(run func(uint16) (datapath.VethPair, error)) *MockcniHandler_GetVethPair_Call { _c.Call.Return(run) return _c } -// NewMockCniHandler creates a new instance of MockCniHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockcniHandler creates a new instance of MockcniHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockCniHandler(t interface { +func NewMockcniHandler(t interface { mock.TestingT Cleanup(func()) -}) *MockCniHandler { - mock := &MockCniHandler{} +}) *MockcniHandler { + mock := &MockcniHandler{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/cri_service.go b/internal/mock/cri_service.go index 80ec1170a..284817034 100644 --- a/internal/mock/cri_service.go +++ b/internal/mock/cri_service.go @@ -13,21 +13,21 @@ import ( v1 "k8s.io/cri-api/pkg/apis/runtime/v1" ) -// MockCriService is an autogenerated mock type for the Service type -type MockCriService struct { +// MockcriService is an autogenerated mock type for the Service type +type MockcriService struct { mock.Mock } -type MockCriService_Expecter struct { +type MockcriService_Expecter struct { mock *mock.Mock } -func (_m *MockCriService) EXPECT() *MockCriService_Expecter { - return &MockCriService_Expecter{mock: &_m.Mock} +func (_m *MockcriService) EXPECT() *MockcriService_Expecter { + return &MockcriService_Expecter{mock: &_m.Mock} } // Attach provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) Attach(ctx context.Context, in *v1.AttachRequest, opts ...grpc.CallOption) (*v1.AttachResponse, error) { +func (_m *MockcriService) Attach(ctx context.Context, in *v1.AttachRequest, opts ...grpc.CallOption) (*v1.AttachResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -63,8 +63,8 @@ func (_m *MockCriService) Attach(ctx context.Context, in *v1.AttachRequest, opts return r0, r1 } -// MockCriService_Attach_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attach' -type MockCriService_Attach_Call struct { +// MockcriService_Attach_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attach' +type MockcriService_Attach_Call struct { *mock.Call } @@ -72,12 +72,12 @@ type MockCriService_Attach_Call struct { // - ctx context.Context // - in *v1.AttachRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) Attach(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_Attach_Call { - return &MockCriService_Attach_Call{Call: _e.mock.On("Attach", +func (_e *MockcriService_Expecter) Attach(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_Attach_Call { + return &MockcriService_Attach_Call{Call: _e.mock.On("Attach", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_Attach_Call) Run(run func(ctx context.Context, in *v1.AttachRequest, opts ...grpc.CallOption)) *MockCriService_Attach_Call { +func (_c *MockcriService_Attach_Call) Run(run func(ctx context.Context, in *v1.AttachRequest, opts ...grpc.CallOption)) *MockcriService_Attach_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -90,18 +90,18 @@ func (_c *MockCriService_Attach_Call) Run(run func(ctx context.Context, in *v1.A return _c } -func (_c *MockCriService_Attach_Call) Return(_a0 *v1.AttachResponse, _a1 error) *MockCriService_Attach_Call { +func (_c *MockcriService_Attach_Call) Return(_a0 *v1.AttachResponse, _a1 error) *MockcriService_Attach_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_Attach_Call) RunAndReturn(run func(context.Context, *v1.AttachRequest, ...grpc.CallOption) (*v1.AttachResponse, error)) *MockCriService_Attach_Call { +func (_c *MockcriService_Attach_Call) RunAndReturn(run func(context.Context, *v1.AttachRequest, ...grpc.CallOption) (*v1.AttachResponse, error)) *MockcriService_Attach_Call { _c.Call.Return(run) return _c } // CheckpointContainer provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) CheckpointContainer(ctx context.Context, in *v1.CheckpointContainerRequest, opts ...grpc.CallOption) (*v1.CheckpointContainerResponse, error) { +func (_m *MockcriService) CheckpointContainer(ctx context.Context, in *v1.CheckpointContainerRequest, opts ...grpc.CallOption) (*v1.CheckpointContainerResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -137,8 +137,8 @@ func (_m *MockCriService) CheckpointContainer(ctx context.Context, in *v1.Checkp return r0, r1 } -// MockCriService_CheckpointContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckpointContainer' -type MockCriService_CheckpointContainer_Call struct { +// MockcriService_CheckpointContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckpointContainer' +type MockcriService_CheckpointContainer_Call struct { *mock.Call } @@ -146,12 +146,12 @@ type MockCriService_CheckpointContainer_Call struct { // - ctx context.Context // - in *v1.CheckpointContainerRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) CheckpointContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_CheckpointContainer_Call { - return &MockCriService_CheckpointContainer_Call{Call: _e.mock.On("CheckpointContainer", +func (_e *MockcriService_Expecter) CheckpointContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_CheckpointContainer_Call { + return &MockcriService_CheckpointContainer_Call{Call: _e.mock.On("CheckpointContainer", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_CheckpointContainer_Call) Run(run func(ctx context.Context, in *v1.CheckpointContainerRequest, opts ...grpc.CallOption)) *MockCriService_CheckpointContainer_Call { +func (_c *MockcriService_CheckpointContainer_Call) Run(run func(ctx context.Context, in *v1.CheckpointContainerRequest, opts ...grpc.CallOption)) *MockcriService_CheckpointContainer_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -164,18 +164,18 @@ func (_c *MockCriService_CheckpointContainer_Call) Run(run func(ctx context.Cont return _c } -func (_c *MockCriService_CheckpointContainer_Call) Return(_a0 *v1.CheckpointContainerResponse, _a1 error) *MockCriService_CheckpointContainer_Call { +func (_c *MockcriService_CheckpointContainer_Call) Return(_a0 *v1.CheckpointContainerResponse, _a1 error) *MockcriService_CheckpointContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_CheckpointContainer_Call) RunAndReturn(run func(context.Context, *v1.CheckpointContainerRequest, ...grpc.CallOption) (*v1.CheckpointContainerResponse, error)) *MockCriService_CheckpointContainer_Call { +func (_c *MockcriService_CheckpointContainer_Call) RunAndReturn(run func(context.Context, *v1.CheckpointContainerRequest, ...grpc.CallOption) (*v1.CheckpointContainerResponse, error)) *MockcriService_CheckpointContainer_Call { _c.Call.Return(run) return _c } // ContainerInfo provides a mock function with given fields: ctx, id -func (_m *MockCriService) ContainerInfo(ctx context.Context, id string) (cri.ContainerInfo, error) { +func (_m *MockcriService) ContainerInfo(ctx context.Context, id string) (cri.ContainerInfo, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -202,37 +202,37 @@ func (_m *MockCriService) ContainerInfo(ctx context.Context, id string) (cri.Con return r0, r1 } -// MockCriService_ContainerInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerInfo' -type MockCriService_ContainerInfo_Call struct { +// MockcriService_ContainerInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerInfo' +type MockcriService_ContainerInfo_Call struct { *mock.Call } // ContainerInfo is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockCriService_Expecter) ContainerInfo(ctx interface{}, id interface{}) *MockCriService_ContainerInfo_Call { - return &MockCriService_ContainerInfo_Call{Call: _e.mock.On("ContainerInfo", ctx, id)} +func (_e *MockcriService_Expecter) ContainerInfo(ctx interface{}, id interface{}) *MockcriService_ContainerInfo_Call { + return &MockcriService_ContainerInfo_Call{Call: _e.mock.On("ContainerInfo", ctx, id)} } -func (_c *MockCriService_ContainerInfo_Call) Run(run func(ctx context.Context, id string)) *MockCriService_ContainerInfo_Call { +func (_c *MockcriService_ContainerInfo_Call) Run(run func(ctx context.Context, id string)) *MockcriService_ContainerInfo_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockCriService_ContainerInfo_Call) Return(_a0 cri.ContainerInfo, _a1 error) *MockCriService_ContainerInfo_Call { +func (_c *MockcriService_ContainerInfo_Call) Return(_a0 cri.ContainerInfo, _a1 error) *MockcriService_ContainerInfo_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ContainerInfo_Call) RunAndReturn(run func(context.Context, string) (cri.ContainerInfo, error)) *MockCriService_ContainerInfo_Call { +func (_c *MockcriService_ContainerInfo_Call) RunAndReturn(run func(context.Context, string) (cri.ContainerInfo, error)) *MockcriService_ContainerInfo_Call { _c.Call.Return(run) return _c } // ContainerStats provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) ContainerStats(ctx context.Context, in *v1.ContainerStatsRequest, opts ...grpc.CallOption) (*v1.ContainerStatsResponse, error) { +func (_m *MockcriService) ContainerStats(ctx context.Context, in *v1.ContainerStatsRequest, opts ...grpc.CallOption) (*v1.ContainerStatsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -268,8 +268,8 @@ func (_m *MockCriService) ContainerStats(ctx context.Context, in *v1.ContainerSt return r0, r1 } -// MockCriService_ContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStats' -type MockCriService_ContainerStats_Call struct { +// MockcriService_ContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStats' +type MockcriService_ContainerStats_Call struct { *mock.Call } @@ -277,12 +277,12 @@ type MockCriService_ContainerStats_Call struct { // - ctx context.Context // - in *v1.ContainerStatsRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) ContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ContainerStats_Call { - return &MockCriService_ContainerStats_Call{Call: _e.mock.On("ContainerStats", +func (_e *MockcriService_Expecter) ContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_ContainerStats_Call { + return &MockcriService_ContainerStats_Call{Call: _e.mock.On("ContainerStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_ContainerStats_Call) Run(run func(ctx context.Context, in *v1.ContainerStatsRequest, opts ...grpc.CallOption)) *MockCriService_ContainerStats_Call { +func (_c *MockcriService_ContainerStats_Call) Run(run func(ctx context.Context, in *v1.ContainerStatsRequest, opts ...grpc.CallOption)) *MockcriService_ContainerStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -295,18 +295,18 @@ func (_c *MockCriService_ContainerStats_Call) Run(run func(ctx context.Context, return _c } -func (_c *MockCriService_ContainerStats_Call) Return(_a0 *v1.ContainerStatsResponse, _a1 error) *MockCriService_ContainerStats_Call { +func (_c *MockcriService_ContainerStats_Call) Return(_a0 *v1.ContainerStatsResponse, _a1 error) *MockcriService_ContainerStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ContainerStats_Call) RunAndReturn(run func(context.Context, *v1.ContainerStatsRequest, ...grpc.CallOption) (*v1.ContainerStatsResponse, error)) *MockCriService_ContainerStats_Call { +func (_c *MockcriService_ContainerStats_Call) RunAndReturn(run func(context.Context, *v1.ContainerStatsRequest, ...grpc.CallOption) (*v1.ContainerStatsResponse, error)) *MockcriService_ContainerStats_Call { _c.Call.Return(run) return _c } // ContainerStatus provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) ContainerStatus(ctx context.Context, in *v1.ContainerStatusRequest, opts ...grpc.CallOption) (*v1.ContainerStatusResponse, error) { +func (_m *MockcriService) ContainerStatus(ctx context.Context, in *v1.ContainerStatusRequest, opts ...grpc.CallOption) (*v1.ContainerStatusResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -342,8 +342,8 @@ func (_m *MockCriService) ContainerStatus(ctx context.Context, in *v1.ContainerS return r0, r1 } -// MockCriService_ContainerStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStatus' -type MockCriService_ContainerStatus_Call struct { +// MockcriService_ContainerStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStatus' +type MockcriService_ContainerStatus_Call struct { *mock.Call } @@ -351,12 +351,12 @@ type MockCriService_ContainerStatus_Call struct { // - ctx context.Context // - in *v1.ContainerStatusRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) ContainerStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ContainerStatus_Call { - return &MockCriService_ContainerStatus_Call{Call: _e.mock.On("ContainerStatus", +func (_e *MockcriService_Expecter) ContainerStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_ContainerStatus_Call { + return &MockcriService_ContainerStatus_Call{Call: _e.mock.On("ContainerStatus", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_ContainerStatus_Call) Run(run func(ctx context.Context, in *v1.ContainerStatusRequest, opts ...grpc.CallOption)) *MockCriService_ContainerStatus_Call { +func (_c *MockcriService_ContainerStatus_Call) Run(run func(ctx context.Context, in *v1.ContainerStatusRequest, opts ...grpc.CallOption)) *MockcriService_ContainerStatus_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -369,18 +369,18 @@ func (_c *MockCriService_ContainerStatus_Call) Run(run func(ctx context.Context, return _c } -func (_c *MockCriService_ContainerStatus_Call) Return(_a0 *v1.ContainerStatusResponse, _a1 error) *MockCriService_ContainerStatus_Call { +func (_c *MockcriService_ContainerStatus_Call) Return(_a0 *v1.ContainerStatusResponse, _a1 error) *MockcriService_ContainerStatus_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ContainerStatus_Call) RunAndReturn(run func(context.Context, *v1.ContainerStatusRequest, ...grpc.CallOption) (*v1.ContainerStatusResponse, error)) *MockCriService_ContainerStatus_Call { +func (_c *MockcriService_ContainerStatus_Call) RunAndReturn(run func(context.Context, *v1.ContainerStatusRequest, ...grpc.CallOption) (*v1.ContainerStatusResponse, error)) *MockcriService_ContainerStatus_Call { _c.Call.Return(run) return _c } // CreateContainer provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) CreateContainer(ctx context.Context, in *v1.CreateContainerRequest, opts ...grpc.CallOption) (*v1.CreateContainerResponse, error) { +func (_m *MockcriService) CreateContainer(ctx context.Context, in *v1.CreateContainerRequest, opts ...grpc.CallOption) (*v1.CreateContainerResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -416,8 +416,8 @@ func (_m *MockCriService) CreateContainer(ctx context.Context, in *v1.CreateCont return r0, r1 } -// MockCriService_CreateContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateContainer' -type MockCriService_CreateContainer_Call struct { +// MockcriService_CreateContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateContainer' +type MockcriService_CreateContainer_Call struct { *mock.Call } @@ -425,12 +425,12 @@ type MockCriService_CreateContainer_Call struct { // - ctx context.Context // - in *v1.CreateContainerRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) CreateContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_CreateContainer_Call { - return &MockCriService_CreateContainer_Call{Call: _e.mock.On("CreateContainer", +func (_e *MockcriService_Expecter) CreateContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_CreateContainer_Call { + return &MockcriService_CreateContainer_Call{Call: _e.mock.On("CreateContainer", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_CreateContainer_Call) Run(run func(ctx context.Context, in *v1.CreateContainerRequest, opts ...grpc.CallOption)) *MockCriService_CreateContainer_Call { +func (_c *MockcriService_CreateContainer_Call) Run(run func(ctx context.Context, in *v1.CreateContainerRequest, opts ...grpc.CallOption)) *MockcriService_CreateContainer_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -443,18 +443,18 @@ func (_c *MockCriService_CreateContainer_Call) Run(run func(ctx context.Context, return _c } -func (_c *MockCriService_CreateContainer_Call) Return(_a0 *v1.CreateContainerResponse, _a1 error) *MockCriService_CreateContainer_Call { +func (_c *MockcriService_CreateContainer_Call) Return(_a0 *v1.CreateContainerResponse, _a1 error) *MockcriService_CreateContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_CreateContainer_Call) RunAndReturn(run func(context.Context, *v1.CreateContainerRequest, ...grpc.CallOption) (*v1.CreateContainerResponse, error)) *MockCriService_CreateContainer_Call { +func (_c *MockcriService_CreateContainer_Call) RunAndReturn(run func(context.Context, *v1.CreateContainerRequest, ...grpc.CallOption) (*v1.CreateContainerResponse, error)) *MockcriService_CreateContainer_Call { _c.Call.Return(run) return _c } // EnsureImage provides a mock function with given fields: ctx, imageURL, auth -func (_m *MockCriService) EnsureImage(ctx context.Context, imageURL string, auth cri.RegistryAuth) (bool, error) { +func (_m *MockcriService) EnsureImage(ctx context.Context, imageURL string, auth cri.RegistryAuth) (bool, error) { ret := _m.Called(ctx, imageURL, auth) if len(ret) == 0 { @@ -481,8 +481,8 @@ func (_m *MockCriService) EnsureImage(ctx context.Context, imageURL string, auth return r0, r1 } -// MockCriService_EnsureImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureImage' -type MockCriService_EnsureImage_Call struct { +// MockcriService_EnsureImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureImage' +type MockcriService_EnsureImage_Call struct { *mock.Call } @@ -490,29 +490,29 @@ type MockCriService_EnsureImage_Call struct { // - ctx context.Context // - imageURL string // - auth cri.RegistryAuth -func (_e *MockCriService_Expecter) EnsureImage(ctx interface{}, imageURL interface{}, auth interface{}) *MockCriService_EnsureImage_Call { - return &MockCriService_EnsureImage_Call{Call: _e.mock.On("EnsureImage", ctx, imageURL, auth)} +func (_e *MockcriService_Expecter) EnsureImage(ctx interface{}, imageURL interface{}, auth interface{}) *MockcriService_EnsureImage_Call { + return &MockcriService_EnsureImage_Call{Call: _e.mock.On("EnsureImage", ctx, imageURL, auth)} } -func (_c *MockCriService_EnsureImage_Call) Run(run func(ctx context.Context, imageURL string, auth cri.RegistryAuth)) *MockCriService_EnsureImage_Call { +func (_c *MockcriService_EnsureImage_Call) Run(run func(ctx context.Context, imageURL string, auth cri.RegistryAuth)) *MockcriService_EnsureImage_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(cri.RegistryAuth)) }) return _c } -func (_c *MockCriService_EnsureImage_Call) Return(_a0 bool, _a1 error) *MockCriService_EnsureImage_Call { +func (_c *MockcriService_EnsureImage_Call) Return(_a0 bool, _a1 error) *MockcriService_EnsureImage_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_EnsureImage_Call) RunAndReturn(run func(context.Context, string, cri.RegistryAuth) (bool, error)) *MockCriService_EnsureImage_Call { +func (_c *MockcriService_EnsureImage_Call) RunAndReturn(run func(context.Context, string, cri.RegistryAuth) (bool, error)) *MockcriService_EnsureImage_Call { _c.Call.Return(run) return _c } // EnsurePod provides a mock function with given fields: ctx, opts -func (_m *MockCriService) EnsurePod(ctx context.Context, opts cri.RunOptions) error { +func (_m *MockcriService) EnsurePod(ctx context.Context, opts cri.RunOptions) error { ret := _m.Called(ctx, opts) if len(ret) == 0 { @@ -529,37 +529,37 @@ func (_m *MockCriService) EnsurePod(ctx context.Context, opts cri.RunOptions) er return r0 } -// MockCriService_EnsurePod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsurePod' -type MockCriService_EnsurePod_Call struct { +// MockcriService_EnsurePod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsurePod' +type MockcriService_EnsurePod_Call struct { *mock.Call } // EnsurePod is a helper method to define mock.On call // - ctx context.Context // - opts cri.RunOptions -func (_e *MockCriService_Expecter) EnsurePod(ctx interface{}, opts interface{}) *MockCriService_EnsurePod_Call { - return &MockCriService_EnsurePod_Call{Call: _e.mock.On("EnsurePod", ctx, opts)} +func (_e *MockcriService_Expecter) EnsurePod(ctx interface{}, opts interface{}) *MockcriService_EnsurePod_Call { + return &MockcriService_EnsurePod_Call{Call: _e.mock.On("EnsurePod", ctx, opts)} } -func (_c *MockCriService_EnsurePod_Call) Run(run func(ctx context.Context, opts cri.RunOptions)) *MockCriService_EnsurePod_Call { +func (_c *MockcriService_EnsurePod_Call) Run(run func(ctx context.Context, opts cri.RunOptions)) *MockcriService_EnsurePod_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(cri.RunOptions)) }) return _c } -func (_c *MockCriService_EnsurePod_Call) Return(_a0 error) *MockCriService_EnsurePod_Call { +func (_c *MockcriService_EnsurePod_Call) Return(_a0 error) *MockcriService_EnsurePod_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCriService_EnsurePod_Call) RunAndReturn(run func(context.Context, cri.RunOptions) error) *MockCriService_EnsurePod_Call { +func (_c *MockcriService_EnsurePod_Call) RunAndReturn(run func(context.Context, cri.RunOptions) error) *MockcriService_EnsurePod_Call { _c.Call.Return(run) return _c } // Exec provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) Exec(ctx context.Context, in *v1.ExecRequest, opts ...grpc.CallOption) (*v1.ExecResponse, error) { +func (_m *MockcriService) Exec(ctx context.Context, in *v1.ExecRequest, opts ...grpc.CallOption) (*v1.ExecResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -595,8 +595,8 @@ func (_m *MockCriService) Exec(ctx context.Context, in *v1.ExecRequest, opts ... return r0, r1 } -// MockCriService_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec' -type MockCriService_Exec_Call struct { +// MockcriService_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec' +type MockcriService_Exec_Call struct { *mock.Call } @@ -604,12 +604,12 @@ type MockCriService_Exec_Call struct { // - ctx context.Context // - in *v1.ExecRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) Exec(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_Exec_Call { - return &MockCriService_Exec_Call{Call: _e.mock.On("Exec", +func (_e *MockcriService_Expecter) Exec(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_Exec_Call { + return &MockcriService_Exec_Call{Call: _e.mock.On("Exec", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_Exec_Call) Run(run func(ctx context.Context, in *v1.ExecRequest, opts ...grpc.CallOption)) *MockCriService_Exec_Call { +func (_c *MockcriService_Exec_Call) Run(run func(ctx context.Context, in *v1.ExecRequest, opts ...grpc.CallOption)) *MockcriService_Exec_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -622,18 +622,18 @@ func (_c *MockCriService_Exec_Call) Run(run func(ctx context.Context, in *v1.Exe return _c } -func (_c *MockCriService_Exec_Call) Return(_a0 *v1.ExecResponse, _a1 error) *MockCriService_Exec_Call { +func (_c *MockcriService_Exec_Call) Return(_a0 *v1.ExecResponse, _a1 error) *MockcriService_Exec_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_Exec_Call) RunAndReturn(run func(context.Context, *v1.ExecRequest, ...grpc.CallOption) (*v1.ExecResponse, error)) *MockCriService_Exec_Call { +func (_c *MockcriService_Exec_Call) RunAndReturn(run func(context.Context, *v1.ExecRequest, ...grpc.CallOption) (*v1.ExecResponse, error)) *MockcriService_Exec_Call { _c.Call.Return(run) return _c } // ExecSync provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) ExecSync(ctx context.Context, in *v1.ExecSyncRequest, opts ...grpc.CallOption) (*v1.ExecSyncResponse, error) { +func (_m *MockcriService) ExecSync(ctx context.Context, in *v1.ExecSyncRequest, opts ...grpc.CallOption) (*v1.ExecSyncResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -669,8 +669,8 @@ func (_m *MockCriService) ExecSync(ctx context.Context, in *v1.ExecSyncRequest, return r0, r1 } -// MockCriService_ExecSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecSync' -type MockCriService_ExecSync_Call struct { +// MockcriService_ExecSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecSync' +type MockcriService_ExecSync_Call struct { *mock.Call } @@ -678,12 +678,12 @@ type MockCriService_ExecSync_Call struct { // - ctx context.Context // - in *v1.ExecSyncRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) ExecSync(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ExecSync_Call { - return &MockCriService_ExecSync_Call{Call: _e.mock.On("ExecSync", +func (_e *MockcriService_Expecter) ExecSync(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_ExecSync_Call { + return &MockcriService_ExecSync_Call{Call: _e.mock.On("ExecSync", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_ExecSync_Call) Run(run func(ctx context.Context, in *v1.ExecSyncRequest, opts ...grpc.CallOption)) *MockCriService_ExecSync_Call { +func (_c *MockcriService_ExecSync_Call) Run(run func(ctx context.Context, in *v1.ExecSyncRequest, opts ...grpc.CallOption)) *MockcriService_ExecSync_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -696,18 +696,18 @@ func (_c *MockCriService_ExecSync_Call) Run(run func(ctx context.Context, in *v1 return _c } -func (_c *MockCriService_ExecSync_Call) Return(_a0 *v1.ExecSyncResponse, _a1 error) *MockCriService_ExecSync_Call { +func (_c *MockcriService_ExecSync_Call) Return(_a0 *v1.ExecSyncResponse, _a1 error) *MockcriService_ExecSync_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ExecSync_Call) RunAndReturn(run func(context.Context, *v1.ExecSyncRequest, ...grpc.CallOption) (*v1.ExecSyncResponse, error)) *MockCriService_ExecSync_Call { +func (_c *MockcriService_ExecSync_Call) RunAndReturn(run func(context.Context, *v1.ExecSyncRequest, ...grpc.CallOption) (*v1.ExecSyncResponse, error)) *MockcriService_ExecSync_Call { _c.Call.Return(run) return _c } // GetContainerEvents provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) GetContainerEvents(ctx context.Context, in *v1.GetEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.ContainerEventResponse], error) { +func (_m *MockcriService) GetContainerEvents(ctx context.Context, in *v1.GetEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.ContainerEventResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -743,8 +743,8 @@ func (_m *MockCriService) GetContainerEvents(ctx context.Context, in *v1.GetEven return r0, r1 } -// MockCriService_GetContainerEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContainerEvents' -type MockCriService_GetContainerEvents_Call struct { +// MockcriService_GetContainerEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContainerEvents' +type MockcriService_GetContainerEvents_Call struct { *mock.Call } @@ -752,12 +752,12 @@ type MockCriService_GetContainerEvents_Call struct { // - ctx context.Context // - in *v1.GetEventsRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) GetContainerEvents(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_GetContainerEvents_Call { - return &MockCriService_GetContainerEvents_Call{Call: _e.mock.On("GetContainerEvents", +func (_e *MockcriService_Expecter) GetContainerEvents(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_GetContainerEvents_Call { + return &MockcriService_GetContainerEvents_Call{Call: _e.mock.On("GetContainerEvents", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_GetContainerEvents_Call) Run(run func(ctx context.Context, in *v1.GetEventsRequest, opts ...grpc.CallOption)) *MockCriService_GetContainerEvents_Call { +func (_c *MockcriService_GetContainerEvents_Call) Run(run func(ctx context.Context, in *v1.GetEventsRequest, opts ...grpc.CallOption)) *MockcriService_GetContainerEvents_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -770,18 +770,18 @@ func (_c *MockCriService_GetContainerEvents_Call) Run(run func(ctx context.Conte return _c } -func (_c *MockCriService_GetContainerEvents_Call) Return(_a0 grpc.ServerStreamingClient[v1.ContainerEventResponse], _a1 error) *MockCriService_GetContainerEvents_Call { +func (_c *MockcriService_GetContainerEvents_Call) Return(_a0 grpc.ServerStreamingClient[v1.ContainerEventResponse], _a1 error) *MockcriService_GetContainerEvents_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_GetContainerEvents_Call) RunAndReturn(run func(context.Context, *v1.GetEventsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.ContainerEventResponse], error)) *MockCriService_GetContainerEvents_Call { +func (_c *MockcriService_GetContainerEvents_Call) RunAndReturn(run func(context.Context, *v1.GetEventsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.ContainerEventResponse], error)) *MockcriService_GetContainerEvents_Call { _c.Call.Return(run) return _c } // ListContainerStats provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) ListContainerStats(ctx context.Context, in *v1.ListContainerStatsRequest, opts ...grpc.CallOption) (*v1.ListContainerStatsResponse, error) { +func (_m *MockcriService) ListContainerStats(ctx context.Context, in *v1.ListContainerStatsRequest, opts ...grpc.CallOption) (*v1.ListContainerStatsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -817,8 +817,8 @@ func (_m *MockCriService) ListContainerStats(ctx context.Context, in *v1.ListCon return r0, r1 } -// MockCriService_ListContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainerStats' -type MockCriService_ListContainerStats_Call struct { +// MockcriService_ListContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainerStats' +type MockcriService_ListContainerStats_Call struct { *mock.Call } @@ -826,12 +826,12 @@ type MockCriService_ListContainerStats_Call struct { // - ctx context.Context // - in *v1.ListContainerStatsRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) ListContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListContainerStats_Call { - return &MockCriService_ListContainerStats_Call{Call: _e.mock.On("ListContainerStats", +func (_e *MockcriService_Expecter) ListContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_ListContainerStats_Call { + return &MockcriService_ListContainerStats_Call{Call: _e.mock.On("ListContainerStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_ListContainerStats_Call) Run(run func(ctx context.Context, in *v1.ListContainerStatsRequest, opts ...grpc.CallOption)) *MockCriService_ListContainerStats_Call { +func (_c *MockcriService_ListContainerStats_Call) Run(run func(ctx context.Context, in *v1.ListContainerStatsRequest, opts ...grpc.CallOption)) *MockcriService_ListContainerStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -844,18 +844,18 @@ func (_c *MockCriService_ListContainerStats_Call) Run(run func(ctx context.Conte return _c } -func (_c *MockCriService_ListContainerStats_Call) Return(_a0 *v1.ListContainerStatsResponse, _a1 error) *MockCriService_ListContainerStats_Call { +func (_c *MockcriService_ListContainerStats_Call) Return(_a0 *v1.ListContainerStatsResponse, _a1 error) *MockcriService_ListContainerStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ListContainerStats_Call) RunAndReturn(run func(context.Context, *v1.ListContainerStatsRequest, ...grpc.CallOption) (*v1.ListContainerStatsResponse, error)) *MockCriService_ListContainerStats_Call { +func (_c *MockcriService_ListContainerStats_Call) RunAndReturn(run func(context.Context, *v1.ListContainerStatsRequest, ...grpc.CallOption) (*v1.ListContainerStatsResponse, error)) *MockcriService_ListContainerStats_Call { _c.Call.Return(run) return _c } // ListContainers provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) ListContainers(ctx context.Context, in *v1.ListContainersRequest, opts ...grpc.CallOption) (*v1.ListContainersResponse, error) { +func (_m *MockcriService) ListContainers(ctx context.Context, in *v1.ListContainersRequest, opts ...grpc.CallOption) (*v1.ListContainersResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -891,8 +891,8 @@ func (_m *MockCriService) ListContainers(ctx context.Context, in *v1.ListContain return r0, r1 } -// MockCriService_ListContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainers' -type MockCriService_ListContainers_Call struct { +// MockcriService_ListContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainers' +type MockcriService_ListContainers_Call struct { *mock.Call } @@ -900,12 +900,12 @@ type MockCriService_ListContainers_Call struct { // - ctx context.Context // - in *v1.ListContainersRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) ListContainers(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListContainers_Call { - return &MockCriService_ListContainers_Call{Call: _e.mock.On("ListContainers", +func (_e *MockcriService_Expecter) ListContainers(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_ListContainers_Call { + return &MockcriService_ListContainers_Call{Call: _e.mock.On("ListContainers", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_ListContainers_Call) Run(run func(ctx context.Context, in *v1.ListContainersRequest, opts ...grpc.CallOption)) *MockCriService_ListContainers_Call { +func (_c *MockcriService_ListContainers_Call) Run(run func(ctx context.Context, in *v1.ListContainersRequest, opts ...grpc.CallOption)) *MockcriService_ListContainers_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -918,18 +918,18 @@ func (_c *MockCriService_ListContainers_Call) Run(run func(ctx context.Context, return _c } -func (_c *MockCriService_ListContainers_Call) Return(_a0 *v1.ListContainersResponse, _a1 error) *MockCriService_ListContainers_Call { +func (_c *MockcriService_ListContainers_Call) Return(_a0 *v1.ListContainersResponse, _a1 error) *MockcriService_ListContainers_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ListContainers_Call) RunAndReturn(run func(context.Context, *v1.ListContainersRequest, ...grpc.CallOption) (*v1.ListContainersResponse, error)) *MockCriService_ListContainers_Call { +func (_c *MockcriService_ListContainers_Call) RunAndReturn(run func(context.Context, *v1.ListContainersRequest, ...grpc.CallOption) (*v1.ListContainersResponse, error)) *MockcriService_ListContainers_Call { _c.Call.Return(run) return _c } // ListMetricDescriptors provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) ListMetricDescriptors(ctx context.Context, in *v1.ListMetricDescriptorsRequest, opts ...grpc.CallOption) (*v1.ListMetricDescriptorsResponse, error) { +func (_m *MockcriService) ListMetricDescriptors(ctx context.Context, in *v1.ListMetricDescriptorsRequest, opts ...grpc.CallOption) (*v1.ListMetricDescriptorsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -965,8 +965,8 @@ func (_m *MockCriService) ListMetricDescriptors(ctx context.Context, in *v1.List return r0, r1 } -// MockCriService_ListMetricDescriptors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListMetricDescriptors' -type MockCriService_ListMetricDescriptors_Call struct { +// MockcriService_ListMetricDescriptors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListMetricDescriptors' +type MockcriService_ListMetricDescriptors_Call struct { *mock.Call } @@ -974,12 +974,12 @@ type MockCriService_ListMetricDescriptors_Call struct { // - ctx context.Context // - in *v1.ListMetricDescriptorsRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) ListMetricDescriptors(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListMetricDescriptors_Call { - return &MockCriService_ListMetricDescriptors_Call{Call: _e.mock.On("ListMetricDescriptors", +func (_e *MockcriService_Expecter) ListMetricDescriptors(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_ListMetricDescriptors_Call { + return &MockcriService_ListMetricDescriptors_Call{Call: _e.mock.On("ListMetricDescriptors", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_ListMetricDescriptors_Call) Run(run func(ctx context.Context, in *v1.ListMetricDescriptorsRequest, opts ...grpc.CallOption)) *MockCriService_ListMetricDescriptors_Call { +func (_c *MockcriService_ListMetricDescriptors_Call) Run(run func(ctx context.Context, in *v1.ListMetricDescriptorsRequest, opts ...grpc.CallOption)) *MockcriService_ListMetricDescriptors_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -992,18 +992,18 @@ func (_c *MockCriService_ListMetricDescriptors_Call) Run(run func(ctx context.Co return _c } -func (_c *MockCriService_ListMetricDescriptors_Call) Return(_a0 *v1.ListMetricDescriptorsResponse, _a1 error) *MockCriService_ListMetricDescriptors_Call { +func (_c *MockcriService_ListMetricDescriptors_Call) Return(_a0 *v1.ListMetricDescriptorsResponse, _a1 error) *MockcriService_ListMetricDescriptors_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ListMetricDescriptors_Call) RunAndReturn(run func(context.Context, *v1.ListMetricDescriptorsRequest, ...grpc.CallOption) (*v1.ListMetricDescriptorsResponse, error)) *MockCriService_ListMetricDescriptors_Call { +func (_c *MockcriService_ListMetricDescriptors_Call) RunAndReturn(run func(context.Context, *v1.ListMetricDescriptorsRequest, ...grpc.CallOption) (*v1.ListMetricDescriptorsResponse, error)) *MockcriService_ListMetricDescriptors_Call { _c.Call.Return(run) return _c } // ListPodSandbox provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) ListPodSandbox(ctx context.Context, in *v1.ListPodSandboxRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxResponse, error) { +func (_m *MockcriService) ListPodSandbox(ctx context.Context, in *v1.ListPodSandboxRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1039,8 +1039,8 @@ func (_m *MockCriService) ListPodSandbox(ctx context.Context, in *v1.ListPodSand return r0, r1 } -// MockCriService_ListPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandbox' -type MockCriService_ListPodSandbox_Call struct { +// MockcriService_ListPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandbox' +type MockcriService_ListPodSandbox_Call struct { *mock.Call } @@ -1048,12 +1048,12 @@ type MockCriService_ListPodSandbox_Call struct { // - ctx context.Context // - in *v1.ListPodSandboxRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) ListPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListPodSandbox_Call { - return &MockCriService_ListPodSandbox_Call{Call: _e.mock.On("ListPodSandbox", +func (_e *MockcriService_Expecter) ListPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_ListPodSandbox_Call { + return &MockcriService_ListPodSandbox_Call{Call: _e.mock.On("ListPodSandbox", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_ListPodSandbox_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxRequest, opts ...grpc.CallOption)) *MockCriService_ListPodSandbox_Call { +func (_c *MockcriService_ListPodSandbox_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxRequest, opts ...grpc.CallOption)) *MockcriService_ListPodSandbox_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1066,18 +1066,18 @@ func (_c *MockCriService_ListPodSandbox_Call) Run(run func(ctx context.Context, return _c } -func (_c *MockCriService_ListPodSandbox_Call) Return(_a0 *v1.ListPodSandboxResponse, _a1 error) *MockCriService_ListPodSandbox_Call { +func (_c *MockcriService_ListPodSandbox_Call) Return(_a0 *v1.ListPodSandboxResponse, _a1 error) *MockcriService_ListPodSandbox_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ListPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxRequest, ...grpc.CallOption) (*v1.ListPodSandboxResponse, error)) *MockCriService_ListPodSandbox_Call { +func (_c *MockcriService_ListPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxRequest, ...grpc.CallOption) (*v1.ListPodSandboxResponse, error)) *MockcriService_ListPodSandbox_Call { _c.Call.Return(run) return _c } // ListPodSandboxMetrics provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) ListPodSandboxMetrics(ctx context.Context, in *v1.ListPodSandboxMetricsRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxMetricsResponse, error) { +func (_m *MockcriService) ListPodSandboxMetrics(ctx context.Context, in *v1.ListPodSandboxMetricsRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxMetricsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1113,8 +1113,8 @@ func (_m *MockCriService) ListPodSandboxMetrics(ctx context.Context, in *v1.List return r0, r1 } -// MockCriService_ListPodSandboxMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxMetrics' -type MockCriService_ListPodSandboxMetrics_Call struct { +// MockcriService_ListPodSandboxMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxMetrics' +type MockcriService_ListPodSandboxMetrics_Call struct { *mock.Call } @@ -1122,12 +1122,12 @@ type MockCriService_ListPodSandboxMetrics_Call struct { // - ctx context.Context // - in *v1.ListPodSandboxMetricsRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) ListPodSandboxMetrics(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListPodSandboxMetrics_Call { - return &MockCriService_ListPodSandboxMetrics_Call{Call: _e.mock.On("ListPodSandboxMetrics", +func (_e *MockcriService_Expecter) ListPodSandboxMetrics(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_ListPodSandboxMetrics_Call { + return &MockcriService_ListPodSandboxMetrics_Call{Call: _e.mock.On("ListPodSandboxMetrics", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_ListPodSandboxMetrics_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxMetricsRequest, opts ...grpc.CallOption)) *MockCriService_ListPodSandboxMetrics_Call { +func (_c *MockcriService_ListPodSandboxMetrics_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxMetricsRequest, opts ...grpc.CallOption)) *MockcriService_ListPodSandboxMetrics_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1140,18 +1140,18 @@ func (_c *MockCriService_ListPodSandboxMetrics_Call) Run(run func(ctx context.Co return _c } -func (_c *MockCriService_ListPodSandboxMetrics_Call) Return(_a0 *v1.ListPodSandboxMetricsResponse, _a1 error) *MockCriService_ListPodSandboxMetrics_Call { +func (_c *MockcriService_ListPodSandboxMetrics_Call) Return(_a0 *v1.ListPodSandboxMetricsResponse, _a1 error) *MockcriService_ListPodSandboxMetrics_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ListPodSandboxMetrics_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxMetricsRequest, ...grpc.CallOption) (*v1.ListPodSandboxMetricsResponse, error)) *MockCriService_ListPodSandboxMetrics_Call { +func (_c *MockcriService_ListPodSandboxMetrics_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxMetricsRequest, ...grpc.CallOption) (*v1.ListPodSandboxMetricsResponse, error)) *MockcriService_ListPodSandboxMetrics_Call { _c.Call.Return(run) return _c } // ListPodSandboxStats provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) ListPodSandboxStats(ctx context.Context, in *v1.ListPodSandboxStatsRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxStatsResponse, error) { +func (_m *MockcriService) ListPodSandboxStats(ctx context.Context, in *v1.ListPodSandboxStatsRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxStatsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1187,8 +1187,8 @@ func (_m *MockCriService) ListPodSandboxStats(ctx context.Context, in *v1.ListPo return r0, r1 } -// MockCriService_ListPodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxStats' -type MockCriService_ListPodSandboxStats_Call struct { +// MockcriService_ListPodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxStats' +type MockcriService_ListPodSandboxStats_Call struct { *mock.Call } @@ -1196,12 +1196,12 @@ type MockCriService_ListPodSandboxStats_Call struct { // - ctx context.Context // - in *v1.ListPodSandboxStatsRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) ListPodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListPodSandboxStats_Call { - return &MockCriService_ListPodSandboxStats_Call{Call: _e.mock.On("ListPodSandboxStats", +func (_e *MockcriService_Expecter) ListPodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_ListPodSandboxStats_Call { + return &MockcriService_ListPodSandboxStats_Call{Call: _e.mock.On("ListPodSandboxStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_ListPodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxStatsRequest, opts ...grpc.CallOption)) *MockCriService_ListPodSandboxStats_Call { +func (_c *MockcriService_ListPodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxStatsRequest, opts ...grpc.CallOption)) *MockcriService_ListPodSandboxStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1214,18 +1214,18 @@ func (_c *MockCriService_ListPodSandboxStats_Call) Run(run func(ctx context.Cont return _c } -func (_c *MockCriService_ListPodSandboxStats_Call) Return(_a0 *v1.ListPodSandboxStatsResponse, _a1 error) *MockCriService_ListPodSandboxStats_Call { +func (_c *MockcriService_ListPodSandboxStats_Call) Return(_a0 *v1.ListPodSandboxStatsResponse, _a1 error) *MockcriService_ListPodSandboxStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ListPodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxStatsRequest, ...grpc.CallOption) (*v1.ListPodSandboxStatsResponse, error)) *MockCriService_ListPodSandboxStats_Call { +func (_c *MockcriService_ListPodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxStatsRequest, ...grpc.CallOption) (*v1.ListPodSandboxStatsResponse, error)) *MockcriService_ListPodSandboxStats_Call { _c.Call.Return(run) return _c } // PodSandboxStats provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) PodSandboxStats(ctx context.Context, in *v1.PodSandboxStatsRequest, opts ...grpc.CallOption) (*v1.PodSandboxStatsResponse, error) { +func (_m *MockcriService) PodSandboxStats(ctx context.Context, in *v1.PodSandboxStatsRequest, opts ...grpc.CallOption) (*v1.PodSandboxStatsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1261,8 +1261,8 @@ func (_m *MockCriService) PodSandboxStats(ctx context.Context, in *v1.PodSandbox return r0, r1 } -// MockCriService_PodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStats' -type MockCriService_PodSandboxStats_Call struct { +// MockcriService_PodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStats' +type MockcriService_PodSandboxStats_Call struct { *mock.Call } @@ -1270,12 +1270,12 @@ type MockCriService_PodSandboxStats_Call struct { // - ctx context.Context // - in *v1.PodSandboxStatsRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) PodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_PodSandboxStats_Call { - return &MockCriService_PodSandboxStats_Call{Call: _e.mock.On("PodSandboxStats", +func (_e *MockcriService_Expecter) PodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_PodSandboxStats_Call { + return &MockcriService_PodSandboxStats_Call{Call: _e.mock.On("PodSandboxStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_PodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.PodSandboxStatsRequest, opts ...grpc.CallOption)) *MockCriService_PodSandboxStats_Call { +func (_c *MockcriService_PodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.PodSandboxStatsRequest, opts ...grpc.CallOption)) *MockcriService_PodSandboxStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1288,18 +1288,18 @@ func (_c *MockCriService_PodSandboxStats_Call) Run(run func(ctx context.Context, return _c } -func (_c *MockCriService_PodSandboxStats_Call) Return(_a0 *v1.PodSandboxStatsResponse, _a1 error) *MockCriService_PodSandboxStats_Call { +func (_c *MockcriService_PodSandboxStats_Call) Return(_a0 *v1.PodSandboxStatsResponse, _a1 error) *MockcriService_PodSandboxStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_PodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.PodSandboxStatsRequest, ...grpc.CallOption) (*v1.PodSandboxStatsResponse, error)) *MockCriService_PodSandboxStats_Call { +func (_c *MockcriService_PodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.PodSandboxStatsRequest, ...grpc.CallOption) (*v1.PodSandboxStatsResponse, error)) *MockcriService_PodSandboxStats_Call { _c.Call.Return(run) return _c } // PodSandboxStatus provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) PodSandboxStatus(ctx context.Context, in *v1.PodSandboxStatusRequest, opts ...grpc.CallOption) (*v1.PodSandboxStatusResponse, error) { +func (_m *MockcriService) PodSandboxStatus(ctx context.Context, in *v1.PodSandboxStatusRequest, opts ...grpc.CallOption) (*v1.PodSandboxStatusResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1335,8 +1335,8 @@ func (_m *MockCriService) PodSandboxStatus(ctx context.Context, in *v1.PodSandbo return r0, r1 } -// MockCriService_PodSandboxStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStatus' -type MockCriService_PodSandboxStatus_Call struct { +// MockcriService_PodSandboxStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStatus' +type MockcriService_PodSandboxStatus_Call struct { *mock.Call } @@ -1344,12 +1344,12 @@ type MockCriService_PodSandboxStatus_Call struct { // - ctx context.Context // - in *v1.PodSandboxStatusRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) PodSandboxStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_PodSandboxStatus_Call { - return &MockCriService_PodSandboxStatus_Call{Call: _e.mock.On("PodSandboxStatus", +func (_e *MockcriService_Expecter) PodSandboxStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_PodSandboxStatus_Call { + return &MockcriService_PodSandboxStatus_Call{Call: _e.mock.On("PodSandboxStatus", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_PodSandboxStatus_Call) Run(run func(ctx context.Context, in *v1.PodSandboxStatusRequest, opts ...grpc.CallOption)) *MockCriService_PodSandboxStatus_Call { +func (_c *MockcriService_PodSandboxStatus_Call) Run(run func(ctx context.Context, in *v1.PodSandboxStatusRequest, opts ...grpc.CallOption)) *MockcriService_PodSandboxStatus_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1362,18 +1362,18 @@ func (_c *MockCriService_PodSandboxStatus_Call) Run(run func(ctx context.Context return _c } -func (_c *MockCriService_PodSandboxStatus_Call) Return(_a0 *v1.PodSandboxStatusResponse, _a1 error) *MockCriService_PodSandboxStatus_Call { +func (_c *MockcriService_PodSandboxStatus_Call) Return(_a0 *v1.PodSandboxStatusResponse, _a1 error) *MockcriService_PodSandboxStatus_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_PodSandboxStatus_Call) RunAndReturn(run func(context.Context, *v1.PodSandboxStatusRequest, ...grpc.CallOption) (*v1.PodSandboxStatusResponse, error)) *MockCriService_PodSandboxStatus_Call { +func (_c *MockcriService_PodSandboxStatus_Call) RunAndReturn(run func(context.Context, *v1.PodSandboxStatusRequest, ...grpc.CallOption) (*v1.PodSandboxStatusResponse, error)) *MockcriService_PodSandboxStatus_Call { _c.Call.Return(run) return _c } // PortForward provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) PortForward(ctx context.Context, in *v1.PortForwardRequest, opts ...grpc.CallOption) (*v1.PortForwardResponse, error) { +func (_m *MockcriService) PortForward(ctx context.Context, in *v1.PortForwardRequest, opts ...grpc.CallOption) (*v1.PortForwardResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1409,8 +1409,8 @@ func (_m *MockCriService) PortForward(ctx context.Context, in *v1.PortForwardReq return r0, r1 } -// MockCriService_PortForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PortForward' -type MockCriService_PortForward_Call struct { +// MockcriService_PortForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PortForward' +type MockcriService_PortForward_Call struct { *mock.Call } @@ -1418,12 +1418,12 @@ type MockCriService_PortForward_Call struct { // - ctx context.Context // - in *v1.PortForwardRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) PortForward(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_PortForward_Call { - return &MockCriService_PortForward_Call{Call: _e.mock.On("PortForward", +func (_e *MockcriService_Expecter) PortForward(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_PortForward_Call { + return &MockcriService_PortForward_Call{Call: _e.mock.On("PortForward", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_PortForward_Call) Run(run func(ctx context.Context, in *v1.PortForwardRequest, opts ...grpc.CallOption)) *MockCriService_PortForward_Call { +func (_c *MockcriService_PortForward_Call) Run(run func(ctx context.Context, in *v1.PortForwardRequest, opts ...grpc.CallOption)) *MockcriService_PortForward_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1436,18 +1436,18 @@ func (_c *MockCriService_PortForward_Call) Run(run func(ctx context.Context, in return _c } -func (_c *MockCriService_PortForward_Call) Return(_a0 *v1.PortForwardResponse, _a1 error) *MockCriService_PortForward_Call { +func (_c *MockcriService_PortForward_Call) Return(_a0 *v1.PortForwardResponse, _a1 error) *MockcriService_PortForward_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_PortForward_Call) RunAndReturn(run func(context.Context, *v1.PortForwardRequest, ...grpc.CallOption) (*v1.PortForwardResponse, error)) *MockCriService_PortForward_Call { +func (_c *MockcriService_PortForward_Call) RunAndReturn(run func(context.Context, *v1.PortForwardRequest, ...grpc.CallOption) (*v1.PortForwardResponse, error)) *MockcriService_PortForward_Call { _c.Call.Return(run) return _c } // RemoveContainer provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) RemoveContainer(ctx context.Context, in *v1.RemoveContainerRequest, opts ...grpc.CallOption) (*v1.RemoveContainerResponse, error) { +func (_m *MockcriService) RemoveContainer(ctx context.Context, in *v1.RemoveContainerRequest, opts ...grpc.CallOption) (*v1.RemoveContainerResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1483,8 +1483,8 @@ func (_m *MockCriService) RemoveContainer(ctx context.Context, in *v1.RemoveCont return r0, r1 } -// MockCriService_RemoveContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveContainer' -type MockCriService_RemoveContainer_Call struct { +// MockcriService_RemoveContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveContainer' +type MockcriService_RemoveContainer_Call struct { *mock.Call } @@ -1492,12 +1492,12 @@ type MockCriService_RemoveContainer_Call struct { // - ctx context.Context // - in *v1.RemoveContainerRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) RemoveContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_RemoveContainer_Call { - return &MockCriService_RemoveContainer_Call{Call: _e.mock.On("RemoveContainer", +func (_e *MockcriService_Expecter) RemoveContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_RemoveContainer_Call { + return &MockcriService_RemoveContainer_Call{Call: _e.mock.On("RemoveContainer", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_RemoveContainer_Call) Run(run func(ctx context.Context, in *v1.RemoveContainerRequest, opts ...grpc.CallOption)) *MockCriService_RemoveContainer_Call { +func (_c *MockcriService_RemoveContainer_Call) Run(run func(ctx context.Context, in *v1.RemoveContainerRequest, opts ...grpc.CallOption)) *MockcriService_RemoveContainer_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1510,18 +1510,18 @@ func (_c *MockCriService_RemoveContainer_Call) Run(run func(ctx context.Context, return _c } -func (_c *MockCriService_RemoveContainer_Call) Return(_a0 *v1.RemoveContainerResponse, _a1 error) *MockCriService_RemoveContainer_Call { +func (_c *MockcriService_RemoveContainer_Call) Return(_a0 *v1.RemoveContainerResponse, _a1 error) *MockcriService_RemoveContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_RemoveContainer_Call) RunAndReturn(run func(context.Context, *v1.RemoveContainerRequest, ...grpc.CallOption) (*v1.RemoveContainerResponse, error)) *MockCriService_RemoveContainer_Call { +func (_c *MockcriService_RemoveContainer_Call) RunAndReturn(run func(context.Context, *v1.RemoveContainerRequest, ...grpc.CallOption) (*v1.RemoveContainerResponse, error)) *MockcriService_RemoveContainer_Call { _c.Call.Return(run) return _c } // RemovePodSandbox provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) RemovePodSandbox(ctx context.Context, in *v1.RemovePodSandboxRequest, opts ...grpc.CallOption) (*v1.RemovePodSandboxResponse, error) { +func (_m *MockcriService) RemovePodSandbox(ctx context.Context, in *v1.RemovePodSandboxRequest, opts ...grpc.CallOption) (*v1.RemovePodSandboxResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1557,8 +1557,8 @@ func (_m *MockCriService) RemovePodSandbox(ctx context.Context, in *v1.RemovePod return r0, r1 } -// MockCriService_RemovePodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePodSandbox' -type MockCriService_RemovePodSandbox_Call struct { +// MockcriService_RemovePodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePodSandbox' +type MockcriService_RemovePodSandbox_Call struct { *mock.Call } @@ -1566,12 +1566,12 @@ type MockCriService_RemovePodSandbox_Call struct { // - ctx context.Context // - in *v1.RemovePodSandboxRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) RemovePodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_RemovePodSandbox_Call { - return &MockCriService_RemovePodSandbox_Call{Call: _e.mock.On("RemovePodSandbox", +func (_e *MockcriService_Expecter) RemovePodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_RemovePodSandbox_Call { + return &MockcriService_RemovePodSandbox_Call{Call: _e.mock.On("RemovePodSandbox", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_RemovePodSandbox_Call) Run(run func(ctx context.Context, in *v1.RemovePodSandboxRequest, opts ...grpc.CallOption)) *MockCriService_RemovePodSandbox_Call { +func (_c *MockcriService_RemovePodSandbox_Call) Run(run func(ctx context.Context, in *v1.RemovePodSandboxRequest, opts ...grpc.CallOption)) *MockcriService_RemovePodSandbox_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1584,18 +1584,18 @@ func (_c *MockCriService_RemovePodSandbox_Call) Run(run func(ctx context.Context return _c } -func (_c *MockCriService_RemovePodSandbox_Call) Return(_a0 *v1.RemovePodSandboxResponse, _a1 error) *MockCriService_RemovePodSandbox_Call { +func (_c *MockcriService_RemovePodSandbox_Call) Return(_a0 *v1.RemovePodSandboxResponse, _a1 error) *MockcriService_RemovePodSandbox_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_RemovePodSandbox_Call) RunAndReturn(run func(context.Context, *v1.RemovePodSandboxRequest, ...grpc.CallOption) (*v1.RemovePodSandboxResponse, error)) *MockCriService_RemovePodSandbox_Call { +func (_c *MockcriService_RemovePodSandbox_Call) RunAndReturn(run func(context.Context, *v1.RemovePodSandboxRequest, ...grpc.CallOption) (*v1.RemovePodSandboxResponse, error)) *MockcriService_RemovePodSandbox_Call { _c.Call.Return(run) return _c } // ReopenContainerLog provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) ReopenContainerLog(ctx context.Context, in *v1.ReopenContainerLogRequest, opts ...grpc.CallOption) (*v1.ReopenContainerLogResponse, error) { +func (_m *MockcriService) ReopenContainerLog(ctx context.Context, in *v1.ReopenContainerLogRequest, opts ...grpc.CallOption) (*v1.ReopenContainerLogResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1631,8 +1631,8 @@ func (_m *MockCriService) ReopenContainerLog(ctx context.Context, in *v1.ReopenC return r0, r1 } -// MockCriService_ReopenContainerLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReopenContainerLog' -type MockCriService_ReopenContainerLog_Call struct { +// MockcriService_ReopenContainerLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReopenContainerLog' +type MockcriService_ReopenContainerLog_Call struct { *mock.Call } @@ -1640,12 +1640,12 @@ type MockCriService_ReopenContainerLog_Call struct { // - ctx context.Context // - in *v1.ReopenContainerLogRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) ReopenContainerLog(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ReopenContainerLog_Call { - return &MockCriService_ReopenContainerLog_Call{Call: _e.mock.On("ReopenContainerLog", +func (_e *MockcriService_Expecter) ReopenContainerLog(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_ReopenContainerLog_Call { + return &MockcriService_ReopenContainerLog_Call{Call: _e.mock.On("ReopenContainerLog", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_ReopenContainerLog_Call) Run(run func(ctx context.Context, in *v1.ReopenContainerLogRequest, opts ...grpc.CallOption)) *MockCriService_ReopenContainerLog_Call { +func (_c *MockcriService_ReopenContainerLog_Call) Run(run func(ctx context.Context, in *v1.ReopenContainerLogRequest, opts ...grpc.CallOption)) *MockcriService_ReopenContainerLog_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1658,18 +1658,18 @@ func (_c *MockCriService_ReopenContainerLog_Call) Run(run func(ctx context.Conte return _c } -func (_c *MockCriService_ReopenContainerLog_Call) Return(_a0 *v1.ReopenContainerLogResponse, _a1 error) *MockCriService_ReopenContainerLog_Call { +func (_c *MockcriService_ReopenContainerLog_Call) Return(_a0 *v1.ReopenContainerLogResponse, _a1 error) *MockcriService_ReopenContainerLog_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_ReopenContainerLog_Call) RunAndReturn(run func(context.Context, *v1.ReopenContainerLogRequest, ...grpc.CallOption) (*v1.ReopenContainerLogResponse, error)) *MockCriService_ReopenContainerLog_Call { +func (_c *MockcriService_ReopenContainerLog_Call) RunAndReturn(run func(context.Context, *v1.ReopenContainerLogRequest, ...grpc.CallOption) (*v1.ReopenContainerLogResponse, error)) *MockcriService_ReopenContainerLog_Call { _c.Call.Return(run) return _c } // RunContainer provides a mock function with given fields: ctx, req -func (_m *MockCriService) RunContainer(ctx context.Context, req *v1.CreateContainerRequest) (string, error) { +func (_m *MockcriService) RunContainer(ctx context.Context, req *v1.CreateContainerRequest) (string, error) { ret := _m.Called(ctx, req) if len(ret) == 0 { @@ -1696,37 +1696,37 @@ func (_m *MockCriService) RunContainer(ctx context.Context, req *v1.CreateContai return r0, r1 } -// MockCriService_RunContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunContainer' -type MockCriService_RunContainer_Call struct { +// MockcriService_RunContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunContainer' +type MockcriService_RunContainer_Call struct { *mock.Call } // RunContainer is a helper method to define mock.On call // - ctx context.Context // - req *v1.CreateContainerRequest -func (_e *MockCriService_Expecter) RunContainer(ctx interface{}, req interface{}) *MockCriService_RunContainer_Call { - return &MockCriService_RunContainer_Call{Call: _e.mock.On("RunContainer", ctx, req)} +func (_e *MockcriService_Expecter) RunContainer(ctx interface{}, req interface{}) *MockcriService_RunContainer_Call { + return &MockcriService_RunContainer_Call{Call: _e.mock.On("RunContainer", ctx, req)} } -func (_c *MockCriService_RunContainer_Call) Run(run func(ctx context.Context, req *v1.CreateContainerRequest)) *MockCriService_RunContainer_Call { +func (_c *MockcriService_RunContainer_Call) Run(run func(ctx context.Context, req *v1.CreateContainerRequest)) *MockcriService_RunContainer_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(*v1.CreateContainerRequest)) }) return _c } -func (_c *MockCriService_RunContainer_Call) Return(_a0 string, _a1 error) *MockCriService_RunContainer_Call { +func (_c *MockcriService_RunContainer_Call) Return(_a0 string, _a1 error) *MockcriService_RunContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_RunContainer_Call) RunAndReturn(run func(context.Context, *v1.CreateContainerRequest) (string, error)) *MockCriService_RunContainer_Call { +func (_c *MockcriService_RunContainer_Call) RunAndReturn(run func(context.Context, *v1.CreateContainerRequest) (string, error)) *MockcriService_RunContainer_Call { _c.Call.Return(run) return _c } // RunPodSandbox provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) RunPodSandbox(ctx context.Context, in *v1.RunPodSandboxRequest, opts ...grpc.CallOption) (*v1.RunPodSandboxResponse, error) { +func (_m *MockcriService) RunPodSandbox(ctx context.Context, in *v1.RunPodSandboxRequest, opts ...grpc.CallOption) (*v1.RunPodSandboxResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1762,8 +1762,8 @@ func (_m *MockCriService) RunPodSandbox(ctx context.Context, in *v1.RunPodSandbo return r0, r1 } -// MockCriService_RunPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunPodSandbox' -type MockCriService_RunPodSandbox_Call struct { +// MockcriService_RunPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunPodSandbox' +type MockcriService_RunPodSandbox_Call struct { *mock.Call } @@ -1771,12 +1771,12 @@ type MockCriService_RunPodSandbox_Call struct { // - ctx context.Context // - in *v1.RunPodSandboxRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) RunPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_RunPodSandbox_Call { - return &MockCriService_RunPodSandbox_Call{Call: _e.mock.On("RunPodSandbox", +func (_e *MockcriService_Expecter) RunPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_RunPodSandbox_Call { + return &MockcriService_RunPodSandbox_Call{Call: _e.mock.On("RunPodSandbox", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_RunPodSandbox_Call) Run(run func(ctx context.Context, in *v1.RunPodSandboxRequest, opts ...grpc.CallOption)) *MockCriService_RunPodSandbox_Call { +func (_c *MockcriService_RunPodSandbox_Call) Run(run func(ctx context.Context, in *v1.RunPodSandboxRequest, opts ...grpc.CallOption)) *MockcriService_RunPodSandbox_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1789,18 +1789,18 @@ func (_c *MockCriService_RunPodSandbox_Call) Run(run func(ctx context.Context, i return _c } -func (_c *MockCriService_RunPodSandbox_Call) Return(_a0 *v1.RunPodSandboxResponse, _a1 error) *MockCriService_RunPodSandbox_Call { +func (_c *MockcriService_RunPodSandbox_Call) Return(_a0 *v1.RunPodSandboxResponse, _a1 error) *MockcriService_RunPodSandbox_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_RunPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.RunPodSandboxRequest, ...grpc.CallOption) (*v1.RunPodSandboxResponse, error)) *MockCriService_RunPodSandbox_Call { +func (_c *MockcriService_RunPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.RunPodSandboxRequest, ...grpc.CallOption) (*v1.RunPodSandboxResponse, error)) *MockcriService_RunPodSandbox_Call { _c.Call.Return(run) return _c } // RuntimeConfig provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) RuntimeConfig(ctx context.Context, in *v1.RuntimeConfigRequest, opts ...grpc.CallOption) (*v1.RuntimeConfigResponse, error) { +func (_m *MockcriService) RuntimeConfig(ctx context.Context, in *v1.RuntimeConfigRequest, opts ...grpc.CallOption) (*v1.RuntimeConfigResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1836,8 +1836,8 @@ func (_m *MockCriService) RuntimeConfig(ctx context.Context, in *v1.RuntimeConfi return r0, r1 } -// MockCriService_RuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RuntimeConfig' -type MockCriService_RuntimeConfig_Call struct { +// MockcriService_RuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RuntimeConfig' +type MockcriService_RuntimeConfig_Call struct { *mock.Call } @@ -1845,12 +1845,12 @@ type MockCriService_RuntimeConfig_Call struct { // - ctx context.Context // - in *v1.RuntimeConfigRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) RuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_RuntimeConfig_Call { - return &MockCriService_RuntimeConfig_Call{Call: _e.mock.On("RuntimeConfig", +func (_e *MockcriService_Expecter) RuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_RuntimeConfig_Call { + return &MockcriService_RuntimeConfig_Call{Call: _e.mock.On("RuntimeConfig", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_RuntimeConfig_Call) Run(run func(ctx context.Context, in *v1.RuntimeConfigRequest, opts ...grpc.CallOption)) *MockCriService_RuntimeConfig_Call { +func (_c *MockcriService_RuntimeConfig_Call) Run(run func(ctx context.Context, in *v1.RuntimeConfigRequest, opts ...grpc.CallOption)) *MockcriService_RuntimeConfig_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1863,18 +1863,18 @@ func (_c *MockCriService_RuntimeConfig_Call) Run(run func(ctx context.Context, i return _c } -func (_c *MockCriService_RuntimeConfig_Call) Return(_a0 *v1.RuntimeConfigResponse, _a1 error) *MockCriService_RuntimeConfig_Call { +func (_c *MockcriService_RuntimeConfig_Call) Return(_a0 *v1.RuntimeConfigResponse, _a1 error) *MockcriService_RuntimeConfig_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_RuntimeConfig_Call) RunAndReturn(run func(context.Context, *v1.RuntimeConfigRequest, ...grpc.CallOption) (*v1.RuntimeConfigResponse, error)) *MockCriService_RuntimeConfig_Call { +func (_c *MockcriService_RuntimeConfig_Call) RunAndReturn(run func(context.Context, *v1.RuntimeConfigRequest, ...grpc.CallOption) (*v1.RuntimeConfigResponse, error)) *MockcriService_RuntimeConfig_Call { _c.Call.Return(run) return _c } // StartContainer provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) StartContainer(ctx context.Context, in *v1.StartContainerRequest, opts ...grpc.CallOption) (*v1.StartContainerResponse, error) { +func (_m *MockcriService) StartContainer(ctx context.Context, in *v1.StartContainerRequest, opts ...grpc.CallOption) (*v1.StartContainerResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1910,8 +1910,8 @@ func (_m *MockCriService) StartContainer(ctx context.Context, in *v1.StartContai return r0, r1 } -// MockCriService_StartContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartContainer' -type MockCriService_StartContainer_Call struct { +// MockcriService_StartContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartContainer' +type MockcriService_StartContainer_Call struct { *mock.Call } @@ -1919,12 +1919,12 @@ type MockCriService_StartContainer_Call struct { // - ctx context.Context // - in *v1.StartContainerRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) StartContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StartContainer_Call { - return &MockCriService_StartContainer_Call{Call: _e.mock.On("StartContainer", +func (_e *MockcriService_Expecter) StartContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_StartContainer_Call { + return &MockcriService_StartContainer_Call{Call: _e.mock.On("StartContainer", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_StartContainer_Call) Run(run func(ctx context.Context, in *v1.StartContainerRequest, opts ...grpc.CallOption)) *MockCriService_StartContainer_Call { +func (_c *MockcriService_StartContainer_Call) Run(run func(ctx context.Context, in *v1.StartContainerRequest, opts ...grpc.CallOption)) *MockcriService_StartContainer_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1937,18 +1937,18 @@ func (_c *MockCriService_StartContainer_Call) Run(run func(ctx context.Context, return _c } -func (_c *MockCriService_StartContainer_Call) Return(_a0 *v1.StartContainerResponse, _a1 error) *MockCriService_StartContainer_Call { +func (_c *MockcriService_StartContainer_Call) Return(_a0 *v1.StartContainerResponse, _a1 error) *MockcriService_StartContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_StartContainer_Call) RunAndReturn(run func(context.Context, *v1.StartContainerRequest, ...grpc.CallOption) (*v1.StartContainerResponse, error)) *MockCriService_StartContainer_Call { +func (_c *MockcriService_StartContainer_Call) RunAndReturn(run func(context.Context, *v1.StartContainerRequest, ...grpc.CallOption) (*v1.StartContainerResponse, error)) *MockcriService_StartContainer_Call { _c.Call.Return(run) return _c } // Status provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) Status(ctx context.Context, in *v1.StatusRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error) { +func (_m *MockcriService) Status(ctx context.Context, in *v1.StatusRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1984,8 +1984,8 @@ func (_m *MockCriService) Status(ctx context.Context, in *v1.StatusRequest, opts return r0, r1 } -// MockCriService_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status' -type MockCriService_Status_Call struct { +// MockcriService_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status' +type MockcriService_Status_Call struct { *mock.Call } @@ -1993,12 +1993,12 @@ type MockCriService_Status_Call struct { // - ctx context.Context // - in *v1.StatusRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) Status(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_Status_Call { - return &MockCriService_Status_Call{Call: _e.mock.On("Status", +func (_e *MockcriService_Expecter) Status(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_Status_Call { + return &MockcriService_Status_Call{Call: _e.mock.On("Status", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_Status_Call) Run(run func(ctx context.Context, in *v1.StatusRequest, opts ...grpc.CallOption)) *MockCriService_Status_Call { +func (_c *MockcriService_Status_Call) Run(run func(ctx context.Context, in *v1.StatusRequest, opts ...grpc.CallOption)) *MockcriService_Status_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2011,18 +2011,18 @@ func (_c *MockCriService_Status_Call) Run(run func(ctx context.Context, in *v1.S return _c } -func (_c *MockCriService_Status_Call) Return(_a0 *v1.StatusResponse, _a1 error) *MockCriService_Status_Call { +func (_c *MockcriService_Status_Call) Return(_a0 *v1.StatusResponse, _a1 error) *MockcriService_Status_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_Status_Call) RunAndReturn(run func(context.Context, *v1.StatusRequest, ...grpc.CallOption) (*v1.StatusResponse, error)) *MockCriService_Status_Call { +func (_c *MockcriService_Status_Call) RunAndReturn(run func(context.Context, *v1.StatusRequest, ...grpc.CallOption) (*v1.StatusResponse, error)) *MockcriService_Status_Call { _c.Call.Return(run) return _c } // StopContainer provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) StopContainer(ctx context.Context, in *v1.StopContainerRequest, opts ...grpc.CallOption) (*v1.StopContainerResponse, error) { +func (_m *MockcriService) StopContainer(ctx context.Context, in *v1.StopContainerRequest, opts ...grpc.CallOption) (*v1.StopContainerResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2058,8 +2058,8 @@ func (_m *MockCriService) StopContainer(ctx context.Context, in *v1.StopContaine return r0, r1 } -// MockCriService_StopContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopContainer' -type MockCriService_StopContainer_Call struct { +// MockcriService_StopContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopContainer' +type MockcriService_StopContainer_Call struct { *mock.Call } @@ -2067,12 +2067,12 @@ type MockCriService_StopContainer_Call struct { // - ctx context.Context // - in *v1.StopContainerRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) StopContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StopContainer_Call { - return &MockCriService_StopContainer_Call{Call: _e.mock.On("StopContainer", +func (_e *MockcriService_Expecter) StopContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_StopContainer_Call { + return &MockcriService_StopContainer_Call{Call: _e.mock.On("StopContainer", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_StopContainer_Call) Run(run func(ctx context.Context, in *v1.StopContainerRequest, opts ...grpc.CallOption)) *MockCriService_StopContainer_Call { +func (_c *MockcriService_StopContainer_Call) Run(run func(ctx context.Context, in *v1.StopContainerRequest, opts ...grpc.CallOption)) *MockcriService_StopContainer_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2085,18 +2085,18 @@ func (_c *MockCriService_StopContainer_Call) Run(run func(ctx context.Context, i return _c } -func (_c *MockCriService_StopContainer_Call) Return(_a0 *v1.StopContainerResponse, _a1 error) *MockCriService_StopContainer_Call { +func (_c *MockcriService_StopContainer_Call) Return(_a0 *v1.StopContainerResponse, _a1 error) *MockcriService_StopContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_StopContainer_Call) RunAndReturn(run func(context.Context, *v1.StopContainerRequest, ...grpc.CallOption) (*v1.StopContainerResponse, error)) *MockCriService_StopContainer_Call { +func (_c *MockcriService_StopContainer_Call) RunAndReturn(run func(context.Context, *v1.StopContainerRequest, ...grpc.CallOption) (*v1.StopContainerResponse, error)) *MockcriService_StopContainer_Call { _c.Call.Return(run) return _c } // StopPodSandbox provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) StopPodSandbox(ctx context.Context, in *v1.StopPodSandboxRequest, opts ...grpc.CallOption) (*v1.StopPodSandboxResponse, error) { +func (_m *MockcriService) StopPodSandbox(ctx context.Context, in *v1.StopPodSandboxRequest, opts ...grpc.CallOption) (*v1.StopPodSandboxResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2132,8 +2132,8 @@ func (_m *MockCriService) StopPodSandbox(ctx context.Context, in *v1.StopPodSand return r0, r1 } -// MockCriService_StopPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopPodSandbox' -type MockCriService_StopPodSandbox_Call struct { +// MockcriService_StopPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopPodSandbox' +type MockcriService_StopPodSandbox_Call struct { *mock.Call } @@ -2141,12 +2141,12 @@ type MockCriService_StopPodSandbox_Call struct { // - ctx context.Context // - in *v1.StopPodSandboxRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) StopPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StopPodSandbox_Call { - return &MockCriService_StopPodSandbox_Call{Call: _e.mock.On("StopPodSandbox", +func (_e *MockcriService_Expecter) StopPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_StopPodSandbox_Call { + return &MockcriService_StopPodSandbox_Call{Call: _e.mock.On("StopPodSandbox", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_StopPodSandbox_Call) Run(run func(ctx context.Context, in *v1.StopPodSandboxRequest, opts ...grpc.CallOption)) *MockCriService_StopPodSandbox_Call { +func (_c *MockcriService_StopPodSandbox_Call) Run(run func(ctx context.Context, in *v1.StopPodSandboxRequest, opts ...grpc.CallOption)) *MockcriService_StopPodSandbox_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2159,18 +2159,18 @@ func (_c *MockCriService_StopPodSandbox_Call) Run(run func(ctx context.Context, return _c } -func (_c *MockCriService_StopPodSandbox_Call) Return(_a0 *v1.StopPodSandboxResponse, _a1 error) *MockCriService_StopPodSandbox_Call { +func (_c *MockcriService_StopPodSandbox_Call) Return(_a0 *v1.StopPodSandboxResponse, _a1 error) *MockcriService_StopPodSandbox_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_StopPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.StopPodSandboxRequest, ...grpc.CallOption) (*v1.StopPodSandboxResponse, error)) *MockCriService_StopPodSandbox_Call { +func (_c *MockcriService_StopPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.StopPodSandboxRequest, ...grpc.CallOption) (*v1.StopPodSandboxResponse, error)) *MockcriService_StopPodSandbox_Call { _c.Call.Return(run) return _c } // StreamContainerStats provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) StreamContainerStats(ctx context.Context, in *v1.StreamContainerStatsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], error) { +func (_m *MockcriService) StreamContainerStats(ctx context.Context, in *v1.StreamContainerStatsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2206,8 +2206,8 @@ func (_m *MockCriService) StreamContainerStats(ctx context.Context, in *v1.Strea return r0, r1 } -// MockCriService_StreamContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamContainerStats' -type MockCriService_StreamContainerStats_Call struct { +// MockcriService_StreamContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamContainerStats' +type MockcriService_StreamContainerStats_Call struct { *mock.Call } @@ -2215,12 +2215,12 @@ type MockCriService_StreamContainerStats_Call struct { // - ctx context.Context // - in *v1.StreamContainerStatsRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) StreamContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StreamContainerStats_Call { - return &MockCriService_StreamContainerStats_Call{Call: _e.mock.On("StreamContainerStats", +func (_e *MockcriService_Expecter) StreamContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_StreamContainerStats_Call { + return &MockcriService_StreamContainerStats_Call{Call: _e.mock.On("StreamContainerStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_StreamContainerStats_Call) Run(run func(ctx context.Context, in *v1.StreamContainerStatsRequest, opts ...grpc.CallOption)) *MockCriService_StreamContainerStats_Call { +func (_c *MockcriService_StreamContainerStats_Call) Run(run func(ctx context.Context, in *v1.StreamContainerStatsRequest, opts ...grpc.CallOption)) *MockcriService_StreamContainerStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2233,18 +2233,18 @@ func (_c *MockCriService_StreamContainerStats_Call) Run(run func(ctx context.Con return _c } -func (_c *MockCriService_StreamContainerStats_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], _a1 error) *MockCriService_StreamContainerStats_Call { +func (_c *MockcriService_StreamContainerStats_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], _a1 error) *MockcriService_StreamContainerStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_StreamContainerStats_Call) RunAndReturn(run func(context.Context, *v1.StreamContainerStatsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], error)) *MockCriService_StreamContainerStats_Call { +func (_c *MockcriService_StreamContainerStats_Call) RunAndReturn(run func(context.Context, *v1.StreamContainerStatsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], error)) *MockcriService_StreamContainerStats_Call { _c.Call.Return(run) return _c } // StreamContainers provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) StreamContainers(ctx context.Context, in *v1.StreamContainersRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainersResponse], error) { +func (_m *MockcriService) StreamContainers(ctx context.Context, in *v1.StreamContainersRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainersResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2280,8 +2280,8 @@ func (_m *MockCriService) StreamContainers(ctx context.Context, in *v1.StreamCon return r0, r1 } -// MockCriService_StreamContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamContainers' -type MockCriService_StreamContainers_Call struct { +// MockcriService_StreamContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamContainers' +type MockcriService_StreamContainers_Call struct { *mock.Call } @@ -2289,12 +2289,12 @@ type MockCriService_StreamContainers_Call struct { // - ctx context.Context // - in *v1.StreamContainersRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) StreamContainers(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StreamContainers_Call { - return &MockCriService_StreamContainers_Call{Call: _e.mock.On("StreamContainers", +func (_e *MockcriService_Expecter) StreamContainers(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_StreamContainers_Call { + return &MockcriService_StreamContainers_Call{Call: _e.mock.On("StreamContainers", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_StreamContainers_Call) Run(run func(ctx context.Context, in *v1.StreamContainersRequest, opts ...grpc.CallOption)) *MockCriService_StreamContainers_Call { +func (_c *MockcriService_StreamContainers_Call) Run(run func(ctx context.Context, in *v1.StreamContainersRequest, opts ...grpc.CallOption)) *MockcriService_StreamContainers_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2307,18 +2307,18 @@ func (_c *MockCriService_StreamContainers_Call) Run(run func(ctx context.Context return _c } -func (_c *MockCriService_StreamContainers_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamContainersResponse], _a1 error) *MockCriService_StreamContainers_Call { +func (_c *MockcriService_StreamContainers_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamContainersResponse], _a1 error) *MockcriService_StreamContainers_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_StreamContainers_Call) RunAndReturn(run func(context.Context, *v1.StreamContainersRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainersResponse], error)) *MockCriService_StreamContainers_Call { +func (_c *MockcriService_StreamContainers_Call) RunAndReturn(run func(context.Context, *v1.StreamContainersRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainersResponse], error)) *MockcriService_StreamContainers_Call { _c.Call.Return(run) return _c } // StreamPodSandboxMetrics provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) StreamPodSandboxMetrics(ctx context.Context, in *v1.StreamPodSandboxMetricsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], error) { +func (_m *MockcriService) StreamPodSandboxMetrics(ctx context.Context, in *v1.StreamPodSandboxMetricsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2354,8 +2354,8 @@ func (_m *MockCriService) StreamPodSandboxMetrics(ctx context.Context, in *v1.St return r0, r1 } -// MockCriService_StreamPodSandboxMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxMetrics' -type MockCriService_StreamPodSandboxMetrics_Call struct { +// MockcriService_StreamPodSandboxMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxMetrics' +type MockcriService_StreamPodSandboxMetrics_Call struct { *mock.Call } @@ -2363,12 +2363,12 @@ type MockCriService_StreamPodSandboxMetrics_Call struct { // - ctx context.Context // - in *v1.StreamPodSandboxMetricsRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) StreamPodSandboxMetrics(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StreamPodSandboxMetrics_Call { - return &MockCriService_StreamPodSandboxMetrics_Call{Call: _e.mock.On("StreamPodSandboxMetrics", +func (_e *MockcriService_Expecter) StreamPodSandboxMetrics(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_StreamPodSandboxMetrics_Call { + return &MockcriService_StreamPodSandboxMetrics_Call{Call: _e.mock.On("StreamPodSandboxMetrics", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_StreamPodSandboxMetrics_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxMetricsRequest, opts ...grpc.CallOption)) *MockCriService_StreamPodSandboxMetrics_Call { +func (_c *MockcriService_StreamPodSandboxMetrics_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxMetricsRequest, opts ...grpc.CallOption)) *MockcriService_StreamPodSandboxMetrics_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2381,18 +2381,18 @@ func (_c *MockCriService_StreamPodSandboxMetrics_Call) Run(run func(ctx context. return _c } -func (_c *MockCriService_StreamPodSandboxMetrics_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], _a1 error) *MockCriService_StreamPodSandboxMetrics_Call { +func (_c *MockcriService_StreamPodSandboxMetrics_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], _a1 error) *MockcriService_StreamPodSandboxMetrics_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_StreamPodSandboxMetrics_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxMetricsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], error)) *MockCriService_StreamPodSandboxMetrics_Call { +func (_c *MockcriService_StreamPodSandboxMetrics_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxMetricsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], error)) *MockcriService_StreamPodSandboxMetrics_Call { _c.Call.Return(run) return _c } // StreamPodSandboxStats provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) StreamPodSandboxStats(ctx context.Context, in *v1.StreamPodSandboxStatsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], error) { +func (_m *MockcriService) StreamPodSandboxStats(ctx context.Context, in *v1.StreamPodSandboxStatsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2428,8 +2428,8 @@ func (_m *MockCriService) StreamPodSandboxStats(ctx context.Context, in *v1.Stre return r0, r1 } -// MockCriService_StreamPodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxStats' -type MockCriService_StreamPodSandboxStats_Call struct { +// MockcriService_StreamPodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxStats' +type MockcriService_StreamPodSandboxStats_Call struct { *mock.Call } @@ -2437,12 +2437,12 @@ type MockCriService_StreamPodSandboxStats_Call struct { // - ctx context.Context // - in *v1.StreamPodSandboxStatsRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) StreamPodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StreamPodSandboxStats_Call { - return &MockCriService_StreamPodSandboxStats_Call{Call: _e.mock.On("StreamPodSandboxStats", +func (_e *MockcriService_Expecter) StreamPodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_StreamPodSandboxStats_Call { + return &MockcriService_StreamPodSandboxStats_Call{Call: _e.mock.On("StreamPodSandboxStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_StreamPodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxStatsRequest, opts ...grpc.CallOption)) *MockCriService_StreamPodSandboxStats_Call { +func (_c *MockcriService_StreamPodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxStatsRequest, opts ...grpc.CallOption)) *MockcriService_StreamPodSandboxStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2455,18 +2455,18 @@ func (_c *MockCriService_StreamPodSandboxStats_Call) Run(run func(ctx context.Co return _c } -func (_c *MockCriService_StreamPodSandboxStats_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], _a1 error) *MockCriService_StreamPodSandboxStats_Call { +func (_c *MockcriService_StreamPodSandboxStats_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], _a1 error) *MockcriService_StreamPodSandboxStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_StreamPodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxStatsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], error)) *MockCriService_StreamPodSandboxStats_Call { +func (_c *MockcriService_StreamPodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxStatsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], error)) *MockcriService_StreamPodSandboxStats_Call { _c.Call.Return(run) return _c } // StreamPodSandboxes provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) StreamPodSandboxes(ctx context.Context, in *v1.StreamPodSandboxesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], error) { +func (_m *MockcriService) StreamPodSandboxes(ctx context.Context, in *v1.StreamPodSandboxesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2502,8 +2502,8 @@ func (_m *MockCriService) StreamPodSandboxes(ctx context.Context, in *v1.StreamP return r0, r1 } -// MockCriService_StreamPodSandboxes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxes' -type MockCriService_StreamPodSandboxes_Call struct { +// MockcriService_StreamPodSandboxes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxes' +type MockcriService_StreamPodSandboxes_Call struct { *mock.Call } @@ -2511,12 +2511,12 @@ type MockCriService_StreamPodSandboxes_Call struct { // - ctx context.Context // - in *v1.StreamPodSandboxesRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) StreamPodSandboxes(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StreamPodSandboxes_Call { - return &MockCriService_StreamPodSandboxes_Call{Call: _e.mock.On("StreamPodSandboxes", +func (_e *MockcriService_Expecter) StreamPodSandboxes(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_StreamPodSandboxes_Call { + return &MockcriService_StreamPodSandboxes_Call{Call: _e.mock.On("StreamPodSandboxes", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_StreamPodSandboxes_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxesRequest, opts ...grpc.CallOption)) *MockCriService_StreamPodSandboxes_Call { +func (_c *MockcriService_StreamPodSandboxes_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxesRequest, opts ...grpc.CallOption)) *MockcriService_StreamPodSandboxes_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2529,18 +2529,18 @@ func (_c *MockCriService_StreamPodSandboxes_Call) Run(run func(ctx context.Conte return _c } -func (_c *MockCriService_StreamPodSandboxes_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], _a1 error) *MockCriService_StreamPodSandboxes_Call { +func (_c *MockcriService_StreamPodSandboxes_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], _a1 error) *MockcriService_StreamPodSandboxes_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_StreamPodSandboxes_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxesRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], error)) *MockCriService_StreamPodSandboxes_Call { +func (_c *MockcriService_StreamPodSandboxes_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxesRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], error)) *MockcriService_StreamPodSandboxes_Call { _c.Call.Return(run) return _c } // UpdateContainerResources provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) UpdateContainerResources(ctx context.Context, in *v1.UpdateContainerResourcesRequest, opts ...grpc.CallOption) (*v1.UpdateContainerResourcesResponse, error) { +func (_m *MockcriService) UpdateContainerResources(ctx context.Context, in *v1.UpdateContainerResourcesRequest, opts ...grpc.CallOption) (*v1.UpdateContainerResourcesResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2576,8 +2576,8 @@ func (_m *MockCriService) UpdateContainerResources(ctx context.Context, in *v1.U return r0, r1 } -// MockCriService_UpdateContainerResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateContainerResources' -type MockCriService_UpdateContainerResources_Call struct { +// MockcriService_UpdateContainerResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateContainerResources' +type MockcriService_UpdateContainerResources_Call struct { *mock.Call } @@ -2585,12 +2585,12 @@ type MockCriService_UpdateContainerResources_Call struct { // - ctx context.Context // - in *v1.UpdateContainerResourcesRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) UpdateContainerResources(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_UpdateContainerResources_Call { - return &MockCriService_UpdateContainerResources_Call{Call: _e.mock.On("UpdateContainerResources", +func (_e *MockcriService_Expecter) UpdateContainerResources(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_UpdateContainerResources_Call { + return &MockcriService_UpdateContainerResources_Call{Call: _e.mock.On("UpdateContainerResources", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_UpdateContainerResources_Call) Run(run func(ctx context.Context, in *v1.UpdateContainerResourcesRequest, opts ...grpc.CallOption)) *MockCriService_UpdateContainerResources_Call { +func (_c *MockcriService_UpdateContainerResources_Call) Run(run func(ctx context.Context, in *v1.UpdateContainerResourcesRequest, opts ...grpc.CallOption)) *MockcriService_UpdateContainerResources_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2603,18 +2603,18 @@ func (_c *MockCriService_UpdateContainerResources_Call) Run(run func(ctx context return _c } -func (_c *MockCriService_UpdateContainerResources_Call) Return(_a0 *v1.UpdateContainerResourcesResponse, _a1 error) *MockCriService_UpdateContainerResources_Call { +func (_c *MockcriService_UpdateContainerResources_Call) Return(_a0 *v1.UpdateContainerResourcesResponse, _a1 error) *MockcriService_UpdateContainerResources_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_UpdateContainerResources_Call) RunAndReturn(run func(context.Context, *v1.UpdateContainerResourcesRequest, ...grpc.CallOption) (*v1.UpdateContainerResourcesResponse, error)) *MockCriService_UpdateContainerResources_Call { +func (_c *MockcriService_UpdateContainerResources_Call) RunAndReturn(run func(context.Context, *v1.UpdateContainerResourcesRequest, ...grpc.CallOption) (*v1.UpdateContainerResourcesResponse, error)) *MockcriService_UpdateContainerResources_Call { _c.Call.Return(run) return _c } // UpdatePodSandboxResources provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) UpdatePodSandboxResources(ctx context.Context, in *v1.UpdatePodSandboxResourcesRequest, opts ...grpc.CallOption) (*v1.UpdatePodSandboxResourcesResponse, error) { +func (_m *MockcriService) UpdatePodSandboxResources(ctx context.Context, in *v1.UpdatePodSandboxResourcesRequest, opts ...grpc.CallOption) (*v1.UpdatePodSandboxResourcesResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2650,8 +2650,8 @@ func (_m *MockCriService) UpdatePodSandboxResources(ctx context.Context, in *v1. return r0, r1 } -// MockCriService_UpdatePodSandboxResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePodSandboxResources' -type MockCriService_UpdatePodSandboxResources_Call struct { +// MockcriService_UpdatePodSandboxResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePodSandboxResources' +type MockcriService_UpdatePodSandboxResources_Call struct { *mock.Call } @@ -2659,12 +2659,12 @@ type MockCriService_UpdatePodSandboxResources_Call struct { // - ctx context.Context // - in *v1.UpdatePodSandboxResourcesRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) UpdatePodSandboxResources(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_UpdatePodSandboxResources_Call { - return &MockCriService_UpdatePodSandboxResources_Call{Call: _e.mock.On("UpdatePodSandboxResources", +func (_e *MockcriService_Expecter) UpdatePodSandboxResources(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_UpdatePodSandboxResources_Call { + return &MockcriService_UpdatePodSandboxResources_Call{Call: _e.mock.On("UpdatePodSandboxResources", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_UpdatePodSandboxResources_Call) Run(run func(ctx context.Context, in *v1.UpdatePodSandboxResourcesRequest, opts ...grpc.CallOption)) *MockCriService_UpdatePodSandboxResources_Call { +func (_c *MockcriService_UpdatePodSandboxResources_Call) Run(run func(ctx context.Context, in *v1.UpdatePodSandboxResourcesRequest, opts ...grpc.CallOption)) *MockcriService_UpdatePodSandboxResources_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2677,18 +2677,18 @@ func (_c *MockCriService_UpdatePodSandboxResources_Call) Run(run func(ctx contex return _c } -func (_c *MockCriService_UpdatePodSandboxResources_Call) Return(_a0 *v1.UpdatePodSandboxResourcesResponse, _a1 error) *MockCriService_UpdatePodSandboxResources_Call { +func (_c *MockcriService_UpdatePodSandboxResources_Call) Return(_a0 *v1.UpdatePodSandboxResourcesResponse, _a1 error) *MockcriService_UpdatePodSandboxResources_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_UpdatePodSandboxResources_Call) RunAndReturn(run func(context.Context, *v1.UpdatePodSandboxResourcesRequest, ...grpc.CallOption) (*v1.UpdatePodSandboxResourcesResponse, error)) *MockCriService_UpdatePodSandboxResources_Call { +func (_c *MockcriService_UpdatePodSandboxResources_Call) RunAndReturn(run func(context.Context, *v1.UpdatePodSandboxResourcesRequest, ...grpc.CallOption) (*v1.UpdatePodSandboxResourcesResponse, error)) *MockcriService_UpdatePodSandboxResources_Call { _c.Call.Return(run) return _c } // UpdateRuntimeConfig provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) UpdateRuntimeConfig(ctx context.Context, in *v1.UpdateRuntimeConfigRequest, opts ...grpc.CallOption) (*v1.UpdateRuntimeConfigResponse, error) { +func (_m *MockcriService) UpdateRuntimeConfig(ctx context.Context, in *v1.UpdateRuntimeConfigRequest, opts ...grpc.CallOption) (*v1.UpdateRuntimeConfigResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2724,8 +2724,8 @@ func (_m *MockCriService) UpdateRuntimeConfig(ctx context.Context, in *v1.Update return r0, r1 } -// MockCriService_UpdateRuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRuntimeConfig' -type MockCriService_UpdateRuntimeConfig_Call struct { +// MockcriService_UpdateRuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRuntimeConfig' +type MockcriService_UpdateRuntimeConfig_Call struct { *mock.Call } @@ -2733,12 +2733,12 @@ type MockCriService_UpdateRuntimeConfig_Call struct { // - ctx context.Context // - in *v1.UpdateRuntimeConfigRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) UpdateRuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_UpdateRuntimeConfig_Call { - return &MockCriService_UpdateRuntimeConfig_Call{Call: _e.mock.On("UpdateRuntimeConfig", +func (_e *MockcriService_Expecter) UpdateRuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_UpdateRuntimeConfig_Call { + return &MockcriService_UpdateRuntimeConfig_Call{Call: _e.mock.On("UpdateRuntimeConfig", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_UpdateRuntimeConfig_Call) Run(run func(ctx context.Context, in *v1.UpdateRuntimeConfigRequest, opts ...grpc.CallOption)) *MockCriService_UpdateRuntimeConfig_Call { +func (_c *MockcriService_UpdateRuntimeConfig_Call) Run(run func(ctx context.Context, in *v1.UpdateRuntimeConfigRequest, opts ...grpc.CallOption)) *MockcriService_UpdateRuntimeConfig_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2751,18 +2751,18 @@ func (_c *MockCriService_UpdateRuntimeConfig_Call) Run(run func(ctx context.Cont return _c } -func (_c *MockCriService_UpdateRuntimeConfig_Call) Return(_a0 *v1.UpdateRuntimeConfigResponse, _a1 error) *MockCriService_UpdateRuntimeConfig_Call { +func (_c *MockcriService_UpdateRuntimeConfig_Call) Return(_a0 *v1.UpdateRuntimeConfigResponse, _a1 error) *MockcriService_UpdateRuntimeConfig_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_UpdateRuntimeConfig_Call) RunAndReturn(run func(context.Context, *v1.UpdateRuntimeConfigRequest, ...grpc.CallOption) (*v1.UpdateRuntimeConfigResponse, error)) *MockCriService_UpdateRuntimeConfig_Call { +func (_c *MockcriService_UpdateRuntimeConfig_Call) RunAndReturn(run func(context.Context, *v1.UpdateRuntimeConfigRequest, ...grpc.CallOption) (*v1.UpdateRuntimeConfigResponse, error)) *MockcriService_UpdateRuntimeConfig_Call { _c.Call.Return(run) return _c } // Version provides a mock function with given fields: ctx, in, opts -func (_m *MockCriService) Version(ctx context.Context, in *v1.VersionRequest, opts ...grpc.CallOption) (*v1.VersionResponse, error) { +func (_m *MockcriService) Version(ctx context.Context, in *v1.VersionRequest, opts ...grpc.CallOption) (*v1.VersionResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2798,8 +2798,8 @@ func (_m *MockCriService) Version(ctx context.Context, in *v1.VersionRequest, op return r0, r1 } -// MockCriService_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version' -type MockCriService_Version_Call struct { +// MockcriService_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version' +type MockcriService_Version_Call struct { *mock.Call } @@ -2807,12 +2807,12 @@ type MockCriService_Version_Call struct { // - ctx context.Context // - in *v1.VersionRequest // - opts ...grpc.CallOption -func (_e *MockCriService_Expecter) Version(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_Version_Call { - return &MockCriService_Version_Call{Call: _e.mock.On("Version", +func (_e *MockcriService_Expecter) Version(ctx interface{}, in interface{}, opts ...interface{}) *MockcriService_Version_Call { + return &MockcriService_Version_Call{Call: _e.mock.On("Version", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockCriService_Version_Call) Run(run func(ctx context.Context, in *v1.VersionRequest, opts ...grpc.CallOption)) *MockCriService_Version_Call { +func (_c *MockcriService_Version_Call) Run(run func(ctx context.Context, in *v1.VersionRequest, opts ...grpc.CallOption)) *MockcriService_Version_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2825,23 +2825,23 @@ func (_c *MockCriService_Version_Call) Run(run func(ctx context.Context, in *v1. return _c } -func (_c *MockCriService_Version_Call) Return(_a0 *v1.VersionResponse, _a1 error) *MockCriService_Version_Call { +func (_c *MockcriService_Version_Call) Return(_a0 *v1.VersionResponse, _a1 error) *MockcriService_Version_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockCriService_Version_Call) RunAndReturn(run func(context.Context, *v1.VersionRequest, ...grpc.CallOption) (*v1.VersionResponse, error)) *MockCriService_Version_Call { +func (_c *MockcriService_Version_Call) RunAndReturn(run func(context.Context, *v1.VersionRequest, ...grpc.CallOption) (*v1.VersionResponse, error)) *MockcriService_Version_Call { _c.Call.Return(run) return _c } -// NewMockCriService creates a new instance of MockCriService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockcriService creates a new instance of MockcriService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockCriService(t interface { +func NewMockcriService(t interface { mock.TestingT Cleanup(func()) -}) *MockCriService { - mock := &MockCriService{} +}) *MockcriService { + mock := &MockcriService{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/datapath_sock_handler.go b/internal/mock/datapath_sock_handler.go index b8fef1fb7..3dfcb3726 100644 --- a/internal/mock/datapath_sock_handler.go +++ b/internal/mock/datapath_sock_handler.go @@ -4,21 +4,21 @@ package mock import mock "github.com/stretchr/testify/mock" -// MockDatapathSockHandler is an autogenerated mock type for the SockHandler type -type MockDatapathSockHandler struct { +// MockdatapathSockHandler is an autogenerated mock type for the SockHandler type +type MockdatapathSockHandler struct { mock.Mock } -type MockDatapathSockHandler_Expecter struct { +type MockdatapathSockHandler_Expecter struct { mock *mock.Mock } -func (_m *MockDatapathSockHandler) EXPECT() *MockDatapathSockHandler_Expecter { - return &MockDatapathSockHandler_Expecter{mock: &_m.Mock} +func (_m *MockdatapathSockHandler) EXPECT() *MockdatapathSockHandler_Expecter { + return &MockdatapathSockHandler_Expecter{mock: &_m.Mock} } // BlockNewConnections provides a mock function with given fields: criCgroupsPath -func (_m *MockDatapathSockHandler) BlockNewConnections(criCgroupsPath string) error { +func (_m *MockdatapathSockHandler) BlockNewConnections(criCgroupsPath string) error { ret := _m.Called(criCgroupsPath) if len(ret) == 0 { @@ -35,36 +35,36 @@ func (_m *MockDatapathSockHandler) BlockNewConnections(criCgroupsPath string) er return r0 } -// MockDatapathSockHandler_BlockNewConnections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockNewConnections' -type MockDatapathSockHandler_BlockNewConnections_Call struct { +// MockdatapathSockHandler_BlockNewConnections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockNewConnections' +type MockdatapathSockHandler_BlockNewConnections_Call struct { *mock.Call } // BlockNewConnections is a helper method to define mock.On call // - criCgroupsPath string -func (_e *MockDatapathSockHandler_Expecter) BlockNewConnections(criCgroupsPath interface{}) *MockDatapathSockHandler_BlockNewConnections_Call { - return &MockDatapathSockHandler_BlockNewConnections_Call{Call: _e.mock.On("BlockNewConnections", criCgroupsPath)} +func (_e *MockdatapathSockHandler_Expecter) BlockNewConnections(criCgroupsPath interface{}) *MockdatapathSockHandler_BlockNewConnections_Call { + return &MockdatapathSockHandler_BlockNewConnections_Call{Call: _e.mock.On("BlockNewConnections", criCgroupsPath)} } -func (_c *MockDatapathSockHandler_BlockNewConnections_Call) Run(run func(criCgroupsPath string)) *MockDatapathSockHandler_BlockNewConnections_Call { +func (_c *MockdatapathSockHandler_BlockNewConnections_Call) Run(run func(criCgroupsPath string)) *MockdatapathSockHandler_BlockNewConnections_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string)) }) return _c } -func (_c *MockDatapathSockHandler_BlockNewConnections_Call) Return(_a0 error) *MockDatapathSockHandler_BlockNewConnections_Call { +func (_c *MockdatapathSockHandler_BlockNewConnections_Call) Return(_a0 error) *MockdatapathSockHandler_BlockNewConnections_Call { _c.Call.Return(_a0) return _c } -func (_c *MockDatapathSockHandler_BlockNewConnections_Call) RunAndReturn(run func(string) error) *MockDatapathSockHandler_BlockNewConnections_Call { +func (_c *MockdatapathSockHandler_BlockNewConnections_Call) RunAndReturn(run func(string) error) *MockdatapathSockHandler_BlockNewConnections_Call { _c.Call.Return(run) return _c } // DestroySocks provides a mock function with given fields: netnsPath -func (_m *MockDatapathSockHandler) DestroySocks(netnsPath string) error { +func (_m *MockdatapathSockHandler) DestroySocks(netnsPath string) error { ret := _m.Called(netnsPath) if len(ret) == 0 { @@ -81,41 +81,41 @@ func (_m *MockDatapathSockHandler) DestroySocks(netnsPath string) error { return r0 } -// MockDatapathSockHandler_DestroySocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DestroySocks' -type MockDatapathSockHandler_DestroySocks_Call struct { +// MockdatapathSockHandler_DestroySocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DestroySocks' +type MockdatapathSockHandler_DestroySocks_Call struct { *mock.Call } // DestroySocks is a helper method to define mock.On call // - netnsPath string -func (_e *MockDatapathSockHandler_Expecter) DestroySocks(netnsPath interface{}) *MockDatapathSockHandler_DestroySocks_Call { - return &MockDatapathSockHandler_DestroySocks_Call{Call: _e.mock.On("DestroySocks", netnsPath)} +func (_e *MockdatapathSockHandler_Expecter) DestroySocks(netnsPath interface{}) *MockdatapathSockHandler_DestroySocks_Call { + return &MockdatapathSockHandler_DestroySocks_Call{Call: _e.mock.On("DestroySocks", netnsPath)} } -func (_c *MockDatapathSockHandler_DestroySocks_Call) Run(run func(netnsPath string)) *MockDatapathSockHandler_DestroySocks_Call { +func (_c *MockdatapathSockHandler_DestroySocks_Call) Run(run func(netnsPath string)) *MockdatapathSockHandler_DestroySocks_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string)) }) return _c } -func (_c *MockDatapathSockHandler_DestroySocks_Call) Return(_a0 error) *MockDatapathSockHandler_DestroySocks_Call { +func (_c *MockdatapathSockHandler_DestroySocks_Call) Return(_a0 error) *MockdatapathSockHandler_DestroySocks_Call { _c.Call.Return(_a0) return _c } -func (_c *MockDatapathSockHandler_DestroySocks_Call) RunAndReturn(run func(string) error) *MockDatapathSockHandler_DestroySocks_Call { +func (_c *MockdatapathSockHandler_DestroySocks_Call) RunAndReturn(run func(string) error) *MockdatapathSockHandler_DestroySocks_Call { _c.Call.Return(run) return _c } -// NewMockDatapathSockHandler creates a new instance of MockDatapathSockHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockdatapathSockHandler creates a new instance of MockdatapathSockHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockDatapathSockHandler(t interface { +func NewMockdatapathSockHandler(t interface { mock.TestingT Cleanup(func()) -}) *MockDatapathSockHandler { - mock := &MockDatapathSockHandler{} +}) *MockdatapathSockHandler { + mock := &MockdatapathSockHandler{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/image_service.go b/internal/mock/image_service.go index 37f788ded..bda7dbf37 100644 --- a/internal/mock/image_service.go +++ b/internal/mock/image_service.go @@ -10,21 +10,21 @@ import ( v1 "github.com/google/go-containerregistry/pkg/v1" ) -// MockImageService is an autogenerated mock type for the Service type -type MockImageService struct { +// MockimageService is an autogenerated mock type for the Service type +type MockimageService struct { mock.Mock } -type MockImageService_Expecter struct { +type MockimageService_Expecter struct { mock *mock.Mock } -func (_m *MockImageService) EXPECT() *MockImageService_Expecter { - return &MockImageService_Expecter{mock: &_m.Mock} +func (_m *MockimageService) EXPECT() *MockimageService_Expecter { + return &MockimageService_Expecter{mock: &_m.Mock} } // Pull provides a mock function with given fields: ctx, imgRef, platform -func (_m *MockImageService) Pull(ctx context.Context, imgRef string, platform string) (v1.Image, error) { +func (_m *MockimageService) Pull(ctx context.Context, imgRef string, platform string) (v1.Image, error) { ret := _m.Called(ctx, imgRef, platform) if len(ret) == 0 { @@ -53,8 +53,8 @@ func (_m *MockImageService) Pull(ctx context.Context, imgRef string, platform st return r0, r1 } -// MockImageService_Pull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pull' -type MockImageService_Pull_Call struct { +// MockimageService_Pull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pull' +type MockimageService_Pull_Call struct { *mock.Call } @@ -62,29 +62,29 @@ type MockImageService_Pull_Call struct { // - ctx context.Context // - imgRef string // - platform string -func (_e *MockImageService_Expecter) Pull(ctx interface{}, imgRef interface{}, platform interface{}) *MockImageService_Pull_Call { - return &MockImageService_Pull_Call{Call: _e.mock.On("Pull", ctx, imgRef, platform)} +func (_e *MockimageService_Expecter) Pull(ctx interface{}, imgRef interface{}, platform interface{}) *MockimageService_Pull_Call { + return &MockimageService_Pull_Call{Call: _e.mock.On("Pull", ctx, imgRef, platform)} } -func (_c *MockImageService_Pull_Call) Run(run func(ctx context.Context, imgRef string, platform string)) *MockImageService_Pull_Call { +func (_c *MockimageService_Pull_Call) Run(run func(ctx context.Context, imgRef string, platform string)) *MockimageService_Pull_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(string)) }) return _c } -func (_c *MockImageService_Pull_Call) Return(_a0 v1.Image, _a1 error) *MockImageService_Pull_Call { +func (_c *MockimageService_Pull_Call) Return(_a0 v1.Image, _a1 error) *MockimageService_Pull_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockImageService_Pull_Call) RunAndReturn(run func(context.Context, string, string) (v1.Image, error)) *MockImageService_Pull_Call { +func (_c *MockimageService_Pull_Call) RunAndReturn(run func(context.Context, string, string) (v1.Image, error)) *MockimageService_Pull_Call { _c.Call.Return(run) return _c } // Push provides a mock function with given fields: ctx, img, imgRef -func (_m *MockImageService) Push(ctx context.Context, img v1.Image, imgRef string) error { +func (_m *MockimageService) Push(ctx context.Context, img v1.Image, imgRef string) error { ret := _m.Called(ctx, img, imgRef) if len(ret) == 0 { @@ -101,8 +101,8 @@ func (_m *MockImageService) Push(ctx context.Context, img v1.Image, imgRef strin return r0 } -// MockImageService_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push' -type MockImageService_Push_Call struct { +// MockimageService_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push' +type MockimageService_Push_Call struct { *mock.Call } @@ -110,34 +110,34 @@ type MockImageService_Push_Call struct { // - ctx context.Context // - img v1.Image // - imgRef string -func (_e *MockImageService_Expecter) Push(ctx interface{}, img interface{}, imgRef interface{}) *MockImageService_Push_Call { - return &MockImageService_Push_Call{Call: _e.mock.On("Push", ctx, img, imgRef)} +func (_e *MockimageService_Expecter) Push(ctx interface{}, img interface{}, imgRef interface{}) *MockimageService_Push_Call { + return &MockimageService_Push_Call{Call: _e.mock.On("Push", ctx, img, imgRef)} } -func (_c *MockImageService_Push_Call) Run(run func(ctx context.Context, img v1.Image, imgRef string)) *MockImageService_Push_Call { +func (_c *MockimageService_Push_Call) Run(run func(ctx context.Context, img v1.Image, imgRef string)) *MockimageService_Push_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(v1.Image), args[2].(string)) }) return _c } -func (_c *MockImageService_Push_Call) Return(_a0 error) *MockImageService_Push_Call { +func (_c *MockimageService_Push_Call) Return(_a0 error) *MockimageService_Push_Call { _c.Call.Return(_a0) return _c } -func (_c *MockImageService_Push_Call) RunAndReturn(run func(context.Context, v1.Image, string) error) *MockImageService_Push_Call { +func (_c *MockimageService_Push_Call) RunAndReturn(run func(context.Context, v1.Image, string) error) *MockimageService_Push_Call { _c.Call.Return(run) return _c } -// NewMockImageService creates a new instance of MockImageService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockimageService creates a new instance of MockimageService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockImageService(t interface { +func NewMockimageService(t interface { mock.TestingT Cleanup(func()) -}) *MockImageService { - mock := &MockImageService{} +}) *MockimageService { + mock := &MockimageService{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/instance_repository.go b/internal/mock/instance_repository.go index 442ac7303..0f747bfd4 100644 --- a/internal/mock/instance_repository.go +++ b/internal/mock/instance_repository.go @@ -10,21 +10,21 @@ import ( resource "github.com/spacechunks/explorer/internal/resource" ) -// MockInstanceRepository is an autogenerated mock type for the Repository type -type MockInstanceRepository struct { +// MockinstanceRepository is an autogenerated mock type for the Repository type +type MockinstanceRepository struct { mock.Mock } -type MockInstanceRepository_Expecter struct { +type MockinstanceRepository_Expecter struct { mock *mock.Mock } -func (_m *MockInstanceRepository) EXPECT() *MockInstanceRepository_Expecter { - return &MockInstanceRepository_Expecter{mock: &_m.Mock} +func (_m *MockinstanceRepository) EXPECT() *MockinstanceRepository_Expecter { + return &MockinstanceRepository_Expecter{mock: &_m.Mock} } // ApplyStatusReports provides a mock function with given fields: ctx, reports -func (_m *MockInstanceRepository) ApplyStatusReports(ctx context.Context, reports []resource.InstanceStatusReport) error { +func (_m *MockinstanceRepository) ApplyStatusReports(ctx context.Context, reports []resource.InstanceStatusReport) error { ret := _m.Called(ctx, reports) if len(ret) == 0 { @@ -41,37 +41,37 @@ func (_m *MockInstanceRepository) ApplyStatusReports(ctx context.Context, report return r0 } -// MockInstanceRepository_ApplyStatusReports_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyStatusReports' -type MockInstanceRepository_ApplyStatusReports_Call struct { +// MockinstanceRepository_ApplyStatusReports_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyStatusReports' +type MockinstanceRepository_ApplyStatusReports_Call struct { *mock.Call } // ApplyStatusReports is a helper method to define mock.On call // - ctx context.Context // - reports []resource.InstanceStatusReport -func (_e *MockInstanceRepository_Expecter) ApplyStatusReports(ctx interface{}, reports interface{}) *MockInstanceRepository_ApplyStatusReports_Call { - return &MockInstanceRepository_ApplyStatusReports_Call{Call: _e.mock.On("ApplyStatusReports", ctx, reports)} +func (_e *MockinstanceRepository_Expecter) ApplyStatusReports(ctx interface{}, reports interface{}) *MockinstanceRepository_ApplyStatusReports_Call { + return &MockinstanceRepository_ApplyStatusReports_Call{Call: _e.mock.On("ApplyStatusReports", ctx, reports)} } -func (_c *MockInstanceRepository_ApplyStatusReports_Call) Run(run func(ctx context.Context, reports []resource.InstanceStatusReport)) *MockInstanceRepository_ApplyStatusReports_Call { +func (_c *MockinstanceRepository_ApplyStatusReports_Call) Run(run func(ctx context.Context, reports []resource.InstanceStatusReport)) *MockinstanceRepository_ApplyStatusReports_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].([]resource.InstanceStatusReport)) }) return _c } -func (_c *MockInstanceRepository_ApplyStatusReports_Call) Return(_a0 error) *MockInstanceRepository_ApplyStatusReports_Call { +func (_c *MockinstanceRepository_ApplyStatusReports_Call) Return(_a0 error) *MockinstanceRepository_ApplyStatusReports_Call { _c.Call.Return(_a0) return _c } -func (_c *MockInstanceRepository_ApplyStatusReports_Call) RunAndReturn(run func(context.Context, []resource.InstanceStatusReport) error) *MockInstanceRepository_ApplyStatusReports_Call { +func (_c *MockinstanceRepository_ApplyStatusReports_Call) RunAndReturn(run func(context.Context, []resource.InstanceStatusReport) error) *MockinstanceRepository_ApplyStatusReports_Call { _c.Call.Return(run) return _c } // CountInstancesByFlavorVersionID provides a mock function with given fields: ctx, flavorVersionID -func (_m *MockInstanceRepository) CountInstancesByFlavorVersionID(ctx context.Context, flavorVersionID string) (uint, error) { +func (_m *MockinstanceRepository) CountInstancesByFlavorVersionID(ctx context.Context, flavorVersionID string) (uint, error) { ret := _m.Called(ctx, flavorVersionID) if len(ret) == 0 { @@ -98,37 +98,37 @@ func (_m *MockInstanceRepository) CountInstancesByFlavorVersionID(ctx context.Co return r0, r1 } -// MockInstanceRepository_CountInstancesByFlavorVersionID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountInstancesByFlavorVersionID' -type MockInstanceRepository_CountInstancesByFlavorVersionID_Call struct { +// MockinstanceRepository_CountInstancesByFlavorVersionID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountInstancesByFlavorVersionID' +type MockinstanceRepository_CountInstancesByFlavorVersionID_Call struct { *mock.Call } // CountInstancesByFlavorVersionID is a helper method to define mock.On call // - ctx context.Context // - flavorVersionID string -func (_e *MockInstanceRepository_Expecter) CountInstancesByFlavorVersionID(ctx interface{}, flavorVersionID interface{}) *MockInstanceRepository_CountInstancesByFlavorVersionID_Call { - return &MockInstanceRepository_CountInstancesByFlavorVersionID_Call{Call: _e.mock.On("CountInstancesByFlavorVersionID", ctx, flavorVersionID)} +func (_e *MockinstanceRepository_Expecter) CountInstancesByFlavorVersionID(ctx interface{}, flavorVersionID interface{}) *MockinstanceRepository_CountInstancesByFlavorVersionID_Call { + return &MockinstanceRepository_CountInstancesByFlavorVersionID_Call{Call: _e.mock.On("CountInstancesByFlavorVersionID", ctx, flavorVersionID)} } -func (_c *MockInstanceRepository_CountInstancesByFlavorVersionID_Call) Run(run func(ctx context.Context, flavorVersionID string)) *MockInstanceRepository_CountInstancesByFlavorVersionID_Call { +func (_c *MockinstanceRepository_CountInstancesByFlavorVersionID_Call) Run(run func(ctx context.Context, flavorVersionID string)) *MockinstanceRepository_CountInstancesByFlavorVersionID_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockInstanceRepository_CountInstancesByFlavorVersionID_Call) Return(_a0 uint, _a1 error) *MockInstanceRepository_CountInstancesByFlavorVersionID_Call { +func (_c *MockinstanceRepository_CountInstancesByFlavorVersionID_Call) Return(_a0 uint, _a1 error) *MockinstanceRepository_CountInstancesByFlavorVersionID_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockInstanceRepository_CountInstancesByFlavorVersionID_Call) RunAndReturn(run func(context.Context, string) (uint, error)) *MockInstanceRepository_CountInstancesByFlavorVersionID_Call { +func (_c *MockinstanceRepository_CountInstancesByFlavorVersionID_Call) RunAndReturn(run func(context.Context, string) (uint, error)) *MockinstanceRepository_CountInstancesByFlavorVersionID_Call { _c.Call.Return(run) return _c } // CreateInstance provides a mock function with given fields: ctx, _a1, nodeID -func (_m *MockInstanceRepository) CreateInstance(ctx context.Context, _a1 resource.Instance, nodeID string) (resource.Instance, error) { +func (_m *MockinstanceRepository) CreateInstance(ctx context.Context, _a1 resource.Instance, nodeID string) (resource.Instance, error) { ret := _m.Called(ctx, _a1, nodeID) if len(ret) == 0 { @@ -155,8 +155,8 @@ func (_m *MockInstanceRepository) CreateInstance(ctx context.Context, _a1 resour return r0, r1 } -// MockInstanceRepository_CreateInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateInstance' -type MockInstanceRepository_CreateInstance_Call struct { +// MockinstanceRepository_CreateInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateInstance' +type MockinstanceRepository_CreateInstance_Call struct { *mock.Call } @@ -164,29 +164,29 @@ type MockInstanceRepository_CreateInstance_Call struct { // - ctx context.Context // - _a1 resource.Instance // - nodeID string -func (_e *MockInstanceRepository_Expecter) CreateInstance(ctx interface{}, _a1 interface{}, nodeID interface{}) *MockInstanceRepository_CreateInstance_Call { - return &MockInstanceRepository_CreateInstance_Call{Call: _e.mock.On("CreateInstance", ctx, _a1, nodeID)} +func (_e *MockinstanceRepository_Expecter) CreateInstance(ctx interface{}, _a1 interface{}, nodeID interface{}) *MockinstanceRepository_CreateInstance_Call { + return &MockinstanceRepository_CreateInstance_Call{Call: _e.mock.On("CreateInstance", ctx, _a1, nodeID)} } -func (_c *MockInstanceRepository_CreateInstance_Call) Run(run func(ctx context.Context, _a1 resource.Instance, nodeID string)) *MockInstanceRepository_CreateInstance_Call { +func (_c *MockinstanceRepository_CreateInstance_Call) Run(run func(ctx context.Context, _a1 resource.Instance, nodeID string)) *MockinstanceRepository_CreateInstance_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(resource.Instance), args[2].(string)) }) return _c } -func (_c *MockInstanceRepository_CreateInstance_Call) Return(_a0 resource.Instance, _a1 error) *MockInstanceRepository_CreateInstance_Call { +func (_c *MockinstanceRepository_CreateInstance_Call) Return(_a0 resource.Instance, _a1 error) *MockinstanceRepository_CreateInstance_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockInstanceRepository_CreateInstance_Call) RunAndReturn(run func(context.Context, resource.Instance, string) (resource.Instance, error)) *MockInstanceRepository_CreateInstance_Call { +func (_c *MockinstanceRepository_CreateInstance_Call) RunAndReturn(run func(context.Context, resource.Instance, string) (resource.Instance, error)) *MockinstanceRepository_CreateInstance_Call { _c.Call.Return(run) return _c } // GetInstanceByID provides a mock function with given fields: ctx, id -func (_m *MockInstanceRepository) GetInstanceByID(ctx context.Context, id string) (resource.Instance, error) { +func (_m *MockinstanceRepository) GetInstanceByID(ctx context.Context, id string) (resource.Instance, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -213,37 +213,37 @@ func (_m *MockInstanceRepository) GetInstanceByID(ctx context.Context, id string return r0, r1 } -// MockInstanceRepository_GetInstanceByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstanceByID' -type MockInstanceRepository_GetInstanceByID_Call struct { +// MockinstanceRepository_GetInstanceByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstanceByID' +type MockinstanceRepository_GetInstanceByID_Call struct { *mock.Call } // GetInstanceByID is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockInstanceRepository_Expecter) GetInstanceByID(ctx interface{}, id interface{}) *MockInstanceRepository_GetInstanceByID_Call { - return &MockInstanceRepository_GetInstanceByID_Call{Call: _e.mock.On("GetInstanceByID", ctx, id)} +func (_e *MockinstanceRepository_Expecter) GetInstanceByID(ctx interface{}, id interface{}) *MockinstanceRepository_GetInstanceByID_Call { + return &MockinstanceRepository_GetInstanceByID_Call{Call: _e.mock.On("GetInstanceByID", ctx, id)} } -func (_c *MockInstanceRepository_GetInstanceByID_Call) Run(run func(ctx context.Context, id string)) *MockInstanceRepository_GetInstanceByID_Call { +func (_c *MockinstanceRepository_GetInstanceByID_Call) Run(run func(ctx context.Context, id string)) *MockinstanceRepository_GetInstanceByID_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockInstanceRepository_GetInstanceByID_Call) Return(_a0 resource.Instance, _a1 error) *MockInstanceRepository_GetInstanceByID_Call { +func (_c *MockinstanceRepository_GetInstanceByID_Call) Return(_a0 resource.Instance, _a1 error) *MockinstanceRepository_GetInstanceByID_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockInstanceRepository_GetInstanceByID_Call) RunAndReturn(run func(context.Context, string) (resource.Instance, error)) *MockInstanceRepository_GetInstanceByID_Call { +func (_c *MockinstanceRepository_GetInstanceByID_Call) RunAndReturn(run func(context.Context, string) (resource.Instance, error)) *MockinstanceRepository_GetInstanceByID_Call { _c.Call.Return(run) return _c } // GetInstancesByNodeID provides a mock function with given fields: ctx, id -func (_m *MockInstanceRepository) GetInstancesByNodeID(ctx context.Context, id string) ([]resource.Instance, error) { +func (_m *MockinstanceRepository) GetInstancesByNodeID(ctx context.Context, id string) ([]resource.Instance, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -272,37 +272,37 @@ func (_m *MockInstanceRepository) GetInstancesByNodeID(ctx context.Context, id s return r0, r1 } -// MockInstanceRepository_GetInstancesByNodeID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstancesByNodeID' -type MockInstanceRepository_GetInstancesByNodeID_Call struct { +// MockinstanceRepository_GetInstancesByNodeID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstancesByNodeID' +type MockinstanceRepository_GetInstancesByNodeID_Call struct { *mock.Call } // GetInstancesByNodeID is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockInstanceRepository_Expecter) GetInstancesByNodeID(ctx interface{}, id interface{}) *MockInstanceRepository_GetInstancesByNodeID_Call { - return &MockInstanceRepository_GetInstancesByNodeID_Call{Call: _e.mock.On("GetInstancesByNodeID", ctx, id)} +func (_e *MockinstanceRepository_Expecter) GetInstancesByNodeID(ctx interface{}, id interface{}) *MockinstanceRepository_GetInstancesByNodeID_Call { + return &MockinstanceRepository_GetInstancesByNodeID_Call{Call: _e.mock.On("GetInstancesByNodeID", ctx, id)} } -func (_c *MockInstanceRepository_GetInstancesByNodeID_Call) Run(run func(ctx context.Context, id string)) *MockInstanceRepository_GetInstancesByNodeID_Call { +func (_c *MockinstanceRepository_GetInstancesByNodeID_Call) Run(run func(ctx context.Context, id string)) *MockinstanceRepository_GetInstancesByNodeID_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockInstanceRepository_GetInstancesByNodeID_Call) Return(_a0 []resource.Instance, _a1 error) *MockInstanceRepository_GetInstancesByNodeID_Call { +func (_c *MockinstanceRepository_GetInstancesByNodeID_Call) Return(_a0 []resource.Instance, _a1 error) *MockinstanceRepository_GetInstancesByNodeID_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockInstanceRepository_GetInstancesByNodeID_Call) RunAndReturn(run func(context.Context, string) ([]resource.Instance, error)) *MockInstanceRepository_GetInstancesByNodeID_Call { +func (_c *MockinstanceRepository_GetInstancesByNodeID_Call) RunAndReturn(run func(context.Context, string) ([]resource.Instance, error)) *MockinstanceRepository_GetInstancesByNodeID_Call { _c.Call.Return(run) return _c } // ListInstances provides a mock function with given fields: ctx, pageSize, afterID -func (_m *MockInstanceRepository) ListInstances(ctx context.Context, pageSize int, afterID *string) ([]resource.Instance, error) { +func (_m *MockinstanceRepository) ListInstances(ctx context.Context, pageSize int, afterID *string) ([]resource.Instance, error) { ret := _m.Called(ctx, pageSize, afterID) if len(ret) == 0 { @@ -331,8 +331,8 @@ func (_m *MockInstanceRepository) ListInstances(ctx context.Context, pageSize in return r0, r1 } -// MockInstanceRepository_ListInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListInstances' -type MockInstanceRepository_ListInstances_Call struct { +// MockinstanceRepository_ListInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListInstances' +type MockinstanceRepository_ListInstances_Call struct { *mock.Call } @@ -340,34 +340,34 @@ type MockInstanceRepository_ListInstances_Call struct { // - ctx context.Context // - pageSize int // - afterID *string -func (_e *MockInstanceRepository_Expecter) ListInstances(ctx interface{}, pageSize interface{}, afterID interface{}) *MockInstanceRepository_ListInstances_Call { - return &MockInstanceRepository_ListInstances_Call{Call: _e.mock.On("ListInstances", ctx, pageSize, afterID)} +func (_e *MockinstanceRepository_Expecter) ListInstances(ctx interface{}, pageSize interface{}, afterID interface{}) *MockinstanceRepository_ListInstances_Call { + return &MockinstanceRepository_ListInstances_Call{Call: _e.mock.On("ListInstances", ctx, pageSize, afterID)} } -func (_c *MockInstanceRepository_ListInstances_Call) Run(run func(ctx context.Context, pageSize int, afterID *string)) *MockInstanceRepository_ListInstances_Call { +func (_c *MockinstanceRepository_ListInstances_Call) Run(run func(ctx context.Context, pageSize int, afterID *string)) *MockinstanceRepository_ListInstances_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(int), args[2].(*string)) }) return _c } -func (_c *MockInstanceRepository_ListInstances_Call) Return(_a0 []resource.Instance, _a1 error) *MockInstanceRepository_ListInstances_Call { +func (_c *MockinstanceRepository_ListInstances_Call) Return(_a0 []resource.Instance, _a1 error) *MockinstanceRepository_ListInstances_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockInstanceRepository_ListInstances_Call) RunAndReturn(run func(context.Context, int, *string) ([]resource.Instance, error)) *MockInstanceRepository_ListInstances_Call { +func (_c *MockinstanceRepository_ListInstances_Call) RunAndReturn(run func(context.Context, int, *string) ([]resource.Instance, error)) *MockinstanceRepository_ListInstances_Call { _c.Call.Return(run) return _c } -// NewMockInstanceRepository creates a new instance of MockInstanceRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockinstanceRepository creates a new instance of MockinstanceRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockInstanceRepository(t interface { +func NewMockinstanceRepository(t interface { mock.TestingT Cleanup(func()) -}) *MockInstanceRepository { - mock := &MockInstanceRepository{} +}) *MockinstanceRepository { + mock := &MockinstanceRepository{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/job_client.go b/internal/mock/job_client.go index 30fa2e60b..6539514c1 100644 --- a/internal/mock/job_client.go +++ b/internal/mock/job_client.go @@ -10,21 +10,21 @@ import ( river "github.com/riverqueue/river" ) -// MockJobClient is an autogenerated mock type for the Client type -type MockJobClient struct { +// MockjobClient is an autogenerated mock type for the Client type +type MockjobClient struct { mock.Mock } -type MockJobClient_Expecter struct { +type MockjobClient_Expecter struct { mock *mock.Mock } -func (_m *MockJobClient) EXPECT() *MockJobClient_Expecter { - return &MockJobClient_Expecter{mock: &_m.Mock} +func (_m *MockjobClient) EXPECT() *MockjobClient_Expecter { + return &MockjobClient_Expecter{mock: &_m.Mock} } // InsertJob provides a mock function with given fields: ctx, flavorVersionID, status, _a3 -func (_m *MockJobClient) InsertJob(ctx context.Context, flavorVersionID string, status string, _a3 river.JobArgs) error { +func (_m *MockjobClient) InsertJob(ctx context.Context, flavorVersionID string, status string, _a3 river.JobArgs) error { ret := _m.Called(ctx, flavorVersionID, status, _a3) if len(ret) == 0 { @@ -41,8 +41,8 @@ func (_m *MockJobClient) InsertJob(ctx context.Context, flavorVersionID string, return r0 } -// MockJobClient_InsertJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertJob' -type MockJobClient_InsertJob_Call struct { +// MockjobClient_InsertJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertJob' +type MockjobClient_InsertJob_Call struct { *mock.Call } @@ -51,34 +51,34 @@ type MockJobClient_InsertJob_Call struct { // - flavorVersionID string // - status string // - _a3 river.JobArgs -func (_e *MockJobClient_Expecter) InsertJob(ctx interface{}, flavorVersionID interface{}, status interface{}, _a3 interface{}) *MockJobClient_InsertJob_Call { - return &MockJobClient_InsertJob_Call{Call: _e.mock.On("InsertJob", ctx, flavorVersionID, status, _a3)} +func (_e *MockjobClient_Expecter) InsertJob(ctx interface{}, flavorVersionID interface{}, status interface{}, _a3 interface{}) *MockjobClient_InsertJob_Call { + return &MockjobClient_InsertJob_Call{Call: _e.mock.On("InsertJob", ctx, flavorVersionID, status, _a3)} } -func (_c *MockJobClient_InsertJob_Call) Run(run func(ctx context.Context, flavorVersionID string, status string, _a3 river.JobArgs)) *MockJobClient_InsertJob_Call { +func (_c *MockjobClient_InsertJob_Call) Run(run func(ctx context.Context, flavorVersionID string, status string, _a3 river.JobArgs)) *MockjobClient_InsertJob_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(river.JobArgs)) }) return _c } -func (_c *MockJobClient_InsertJob_Call) Return(_a0 error) *MockJobClient_InsertJob_Call { +func (_c *MockjobClient_InsertJob_Call) Return(_a0 error) *MockjobClient_InsertJob_Call { _c.Call.Return(_a0) return _c } -func (_c *MockJobClient_InsertJob_Call) RunAndReturn(run func(context.Context, string, string, river.JobArgs) error) *MockJobClient_InsertJob_Call { +func (_c *MockjobClient_InsertJob_Call) RunAndReturn(run func(context.Context, string, string, river.JobArgs) error) *MockjobClient_InsertJob_Call { _c.Call.Return(run) return _c } -// NewMockJobClient creates a new instance of MockJobClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockjobClient creates a new instance of MockjobClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockJobClient(t interface { +func NewMockjobClient(t interface { mock.TestingT Cleanup(func()) -}) *MockJobClient { - mock := &MockJobClient{} +}) *MockjobClient { + mock := &MockjobClient{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/node_repository.go b/internal/mock/node_repository.go index 55d236a08..e429a9ef6 100644 --- a/internal/mock/node_repository.go +++ b/internal/mock/node_repository.go @@ -9,21 +9,21 @@ import ( mock "github.com/stretchr/testify/mock" ) -// MockNodeRepository is an autogenerated mock type for the Repository type -type MockNodeRepository struct { +// MocknodeRepository is an autogenerated mock type for the Repository type +type MocknodeRepository struct { mock.Mock } -type MockNodeRepository_Expecter struct { +type MocknodeRepository_Expecter struct { mock *mock.Mock } -func (_m *MockNodeRepository) EXPECT() *MockNodeRepository_Expecter { - return &MockNodeRepository_Expecter{mock: &_m.Mock} +func (_m *MocknodeRepository) EXPECT() *MocknodeRepository_Expecter { + return &MocknodeRepository_Expecter{mock: &_m.Mock} } // BestNode provides a mock function with given fields: ctx -func (_m *MockNodeRepository) BestNode(ctx context.Context) (node.Node, error) { +func (_m *MocknodeRepository) BestNode(ctx context.Context) (node.Node, error) { ret := _m.Called(ctx) if len(ret) == 0 { @@ -50,36 +50,36 @@ func (_m *MockNodeRepository) BestNode(ctx context.Context) (node.Node, error) { return r0, r1 } -// MockNodeRepository_BestNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BestNode' -type MockNodeRepository_BestNode_Call struct { +// MocknodeRepository_BestNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BestNode' +type MocknodeRepository_BestNode_Call struct { *mock.Call } // BestNode is a helper method to define mock.On call // - ctx context.Context -func (_e *MockNodeRepository_Expecter) BestNode(ctx interface{}) *MockNodeRepository_BestNode_Call { - return &MockNodeRepository_BestNode_Call{Call: _e.mock.On("BestNode", ctx)} +func (_e *MocknodeRepository_Expecter) BestNode(ctx interface{}) *MocknodeRepository_BestNode_Call { + return &MocknodeRepository_BestNode_Call{Call: _e.mock.On("BestNode", ctx)} } -func (_c *MockNodeRepository_BestNode_Call) Run(run func(ctx context.Context)) *MockNodeRepository_BestNode_Call { +func (_c *MocknodeRepository_BestNode_Call) Run(run func(ctx context.Context)) *MocknodeRepository_BestNode_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context)) }) return _c } -func (_c *MockNodeRepository_BestNode_Call) Return(_a0 node.Node, _a1 error) *MockNodeRepository_BestNode_Call { +func (_c *MocknodeRepository_BestNode_Call) Return(_a0 node.Node, _a1 error) *MocknodeRepository_BestNode_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockNodeRepository_BestNode_Call) RunAndReturn(run func(context.Context) (node.Node, error)) *MockNodeRepository_BestNode_Call { +func (_c *MocknodeRepository_BestNode_Call) RunAndReturn(run func(context.Context) (node.Node, error)) *MocknodeRepository_BestNode_Call { _c.Call.Return(run) return _c } // RandomNode provides a mock function with given fields: ctx -func (_m *MockNodeRepository) RandomNode(ctx context.Context) (node.Node, error) { +func (_m *MocknodeRepository) RandomNode(ctx context.Context) (node.Node, error) { ret := _m.Called(ctx) if len(ret) == 0 { @@ -106,41 +106,41 @@ func (_m *MockNodeRepository) RandomNode(ctx context.Context) (node.Node, error) return r0, r1 } -// MockNodeRepository_RandomNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RandomNode' -type MockNodeRepository_RandomNode_Call struct { +// MocknodeRepository_RandomNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RandomNode' +type MocknodeRepository_RandomNode_Call struct { *mock.Call } // RandomNode is a helper method to define mock.On call // - ctx context.Context -func (_e *MockNodeRepository_Expecter) RandomNode(ctx interface{}) *MockNodeRepository_RandomNode_Call { - return &MockNodeRepository_RandomNode_Call{Call: _e.mock.On("RandomNode", ctx)} +func (_e *MocknodeRepository_Expecter) RandomNode(ctx interface{}) *MocknodeRepository_RandomNode_Call { + return &MocknodeRepository_RandomNode_Call{Call: _e.mock.On("RandomNode", ctx)} } -func (_c *MockNodeRepository_RandomNode_Call) Run(run func(ctx context.Context)) *MockNodeRepository_RandomNode_Call { +func (_c *MocknodeRepository_RandomNode_Call) Run(run func(ctx context.Context)) *MocknodeRepository_RandomNode_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context)) }) return _c } -func (_c *MockNodeRepository_RandomNode_Call) Return(_a0 node.Node, _a1 error) *MockNodeRepository_RandomNode_Call { +func (_c *MocknodeRepository_RandomNode_Call) Return(_a0 node.Node, _a1 error) *MocknodeRepository_RandomNode_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockNodeRepository_RandomNode_Call) RunAndReturn(run func(context.Context) (node.Node, error)) *MockNodeRepository_RandomNode_Call { +func (_c *MocknodeRepository_RandomNode_Call) RunAndReturn(run func(context.Context) (node.Node, error)) *MocknodeRepository_RandomNode_Call { _c.Call.Return(run) return _c } -// NewMockNodeRepository creates a new instance of MockNodeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMocknodeRepository creates a new instance of MocknodeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockNodeRepository(t interface { +func NewMocknodeRepository(t interface { mock.TestingT Cleanup(func()) -}) *MockNodeRepository { - mock := &MockNodeRepository{} +}) *MocknodeRepository { + mock := &MocknodeRepository{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/status_store.go b/internal/mock/status_store.go index ec5b1e42a..5b035d08b 100644 --- a/internal/mock/status_store.go +++ b/internal/mock/status_store.go @@ -7,54 +7,54 @@ import ( mock "github.com/stretchr/testify/mock" ) -// MockStatusStore is an autogenerated mock type for the Store type -type MockStatusStore struct { +// MockstatusStore is an autogenerated mock type for the Store type +type MockstatusStore struct { mock.Mock } -type MockStatusStore_Expecter struct { +type MockstatusStore_Expecter struct { mock *mock.Mock } -func (_m *MockStatusStore) EXPECT() *MockStatusStore_Expecter { - return &MockStatusStore_Expecter{mock: &_m.Mock} +func (_m *MockstatusStore) EXPECT() *MockstatusStore_Expecter { + return &MockstatusStore_Expecter{mock: &_m.Mock} } // Del provides a mock function with given fields: id -func (_m *MockStatusStore) Del(id string) { +func (_m *MockstatusStore) Del(id string) { _m.Called(id) } -// MockStatusStore_Del_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Del' -type MockStatusStore_Del_Call struct { +// MockstatusStore_Del_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Del' +type MockstatusStore_Del_Call struct { *mock.Call } // Del is a helper method to define mock.On call // - id string -func (_e *MockStatusStore_Expecter) Del(id interface{}) *MockStatusStore_Del_Call { - return &MockStatusStore_Del_Call{Call: _e.mock.On("Del", id)} +func (_e *MockstatusStore_Expecter) Del(id interface{}) *MockstatusStore_Del_Call { + return &MockstatusStore_Del_Call{Call: _e.mock.On("Del", id)} } -func (_c *MockStatusStore_Del_Call) Run(run func(id string)) *MockStatusStore_Del_Call { +func (_c *MockstatusStore_Del_Call) Run(run func(id string)) *MockstatusStore_Del_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string)) }) return _c } -func (_c *MockStatusStore_Del_Call) Return() *MockStatusStore_Del_Call { +func (_c *MockstatusStore_Del_Call) Return() *MockstatusStore_Del_Call { _c.Call.Return() return _c } -func (_c *MockStatusStore_Del_Call) RunAndReturn(run func(string)) *MockStatusStore_Del_Call { +func (_c *MockstatusStore_Del_Call) RunAndReturn(run func(string)) *MockstatusStore_Del_Call { _c.Run(run) return _c } // Get provides a mock function with given fields: id -func (_m *MockStatusStore) Get(id string) *status.Status { +func (_m *MockstatusStore) Get(id string) *status.Status { ret := _m.Called(id) if len(ret) == 0 { @@ -73,70 +73,70 @@ func (_m *MockStatusStore) Get(id string) *status.Status { return r0 } -// MockStatusStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get' -type MockStatusStore_Get_Call struct { +// MockstatusStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get' +type MockstatusStore_Get_Call struct { *mock.Call } // Get is a helper method to define mock.On call // - id string -func (_e *MockStatusStore_Expecter) Get(id interface{}) *MockStatusStore_Get_Call { - return &MockStatusStore_Get_Call{Call: _e.mock.On("Get", id)} +func (_e *MockstatusStore_Expecter) Get(id interface{}) *MockstatusStore_Get_Call { + return &MockstatusStore_Get_Call{Call: _e.mock.On("Get", id)} } -func (_c *MockStatusStore_Get_Call) Run(run func(id string)) *MockStatusStore_Get_Call { +func (_c *MockstatusStore_Get_Call) Run(run func(id string)) *MockstatusStore_Get_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string)) }) return _c } -func (_c *MockStatusStore_Get_Call) Return(_a0 *status.Status) *MockStatusStore_Get_Call { +func (_c *MockstatusStore_Get_Call) Return(_a0 *status.Status) *MockstatusStore_Get_Call { _c.Call.Return(_a0) return _c } -func (_c *MockStatusStore_Get_Call) RunAndReturn(run func(string) *status.Status) *MockStatusStore_Get_Call { +func (_c *MockstatusStore_Get_Call) RunAndReturn(run func(string) *status.Status) *MockstatusStore_Get_Call { _c.Call.Return(run) return _c } // Update provides a mock function with given fields: id, _a1 -func (_m *MockStatusStore) Update(id string, _a1 status.Status) { +func (_m *MockstatusStore) Update(id string, _a1 status.Status) { _m.Called(id, _a1) } -// MockStatusStore_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update' -type MockStatusStore_Update_Call struct { +// MockstatusStore_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update' +type MockstatusStore_Update_Call struct { *mock.Call } // Update is a helper method to define mock.On call // - id string // - _a1 status.Status -func (_e *MockStatusStore_Expecter) Update(id interface{}, _a1 interface{}) *MockStatusStore_Update_Call { - return &MockStatusStore_Update_Call{Call: _e.mock.On("Update", id, _a1)} +func (_e *MockstatusStore_Expecter) Update(id interface{}, _a1 interface{}) *MockstatusStore_Update_Call { + return &MockstatusStore_Update_Call{Call: _e.mock.On("Update", id, _a1)} } -func (_c *MockStatusStore_Update_Call) Run(run func(id string, _a1 status.Status)) *MockStatusStore_Update_Call { +func (_c *MockstatusStore_Update_Call) Run(run func(id string, _a1 status.Status)) *MockstatusStore_Update_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string), args[1].(status.Status)) }) return _c } -func (_c *MockStatusStore_Update_Call) Return() *MockStatusStore_Update_Call { +func (_c *MockstatusStore_Update_Call) Return() *MockstatusStore_Update_Call { _c.Call.Return() return _c } -func (_c *MockStatusStore_Update_Call) RunAndReturn(run func(string, status.Status)) *MockStatusStore_Update_Call { +func (_c *MockstatusStore_Update_Call) RunAndReturn(run func(string, status.Status)) *MockstatusStore_Update_Call { _c.Run(run) return _c } // View provides a mock function with no fields -func (_m *MockStatusStore) View() map[string]status.Status { +func (_m *MockstatusStore) View() map[string]status.Status { ret := _m.Called() if len(ret) == 0 { @@ -155,40 +155,40 @@ func (_m *MockStatusStore) View() map[string]status.Status { return r0 } -// MockStatusStore_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View' -type MockStatusStore_View_Call struct { +// MockstatusStore_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View' +type MockstatusStore_View_Call struct { *mock.Call } // View is a helper method to define mock.On call -func (_e *MockStatusStore_Expecter) View() *MockStatusStore_View_Call { - return &MockStatusStore_View_Call{Call: _e.mock.On("View")} +func (_e *MockstatusStore_Expecter) View() *MockstatusStore_View_Call { + return &MockstatusStore_View_Call{Call: _e.mock.On("View")} } -func (_c *MockStatusStore_View_Call) Run(run func()) *MockStatusStore_View_Call { +func (_c *MockstatusStore_View_Call) Run(run func()) *MockstatusStore_View_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } -func (_c *MockStatusStore_View_Call) Return(_a0 map[string]status.Status) *MockStatusStore_View_Call { +func (_c *MockstatusStore_View_Call) Return(_a0 map[string]status.Status) *MockstatusStore_View_Call { _c.Call.Return(_a0) return _c } -func (_c *MockStatusStore_View_Call) RunAndReturn(run func() map[string]status.Status) *MockStatusStore_View_Call { +func (_c *MockstatusStore_View_Call) RunAndReturn(run func() map[string]status.Status) *MockstatusStore_View_Call { _c.Call.Return(run) return _c } -// NewMockStatusStore creates a new instance of MockStatusStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockstatusStore creates a new instance of MockstatusStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockStatusStore(t interface { +func NewMockstatusStore(t interface { mock.TestingT Cleanup(func()) -}) *MockStatusStore { - mock := &MockStatusStore{} +}) *MockstatusStore { + mock := &MockstatusStore{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/user_repository.go b/internal/mock/user_repository.go index 82c31f476..6374485c0 100644 --- a/internal/mock/user_repository.go +++ b/internal/mock/user_repository.go @@ -9,21 +9,21 @@ import ( mock "github.com/stretchr/testify/mock" ) -// MockUserRepository is an autogenerated mock type for the Repository type -type MockUserRepository struct { +// MockuserRepository is an autogenerated mock type for the Repository type +type MockuserRepository struct { mock.Mock } -type MockUserRepository_Expecter struct { +type MockuserRepository_Expecter struct { mock *mock.Mock } -func (_m *MockUserRepository) EXPECT() *MockUserRepository_Expecter { - return &MockUserRepository_Expecter{mock: &_m.Mock} +func (_m *MockuserRepository) EXPECT() *MockuserRepository_Expecter { + return &MockuserRepository_Expecter{mock: &_m.Mock} } // CreateUser provides a mock function with given fields: ctx, _a1 -func (_m *MockUserRepository) CreateUser(ctx context.Context, _a1 resource.User) (resource.User, error) { +func (_m *MockuserRepository) CreateUser(ctx context.Context, _a1 resource.User) (resource.User, error) { ret := _m.Called(ctx, _a1) if len(ret) == 0 { @@ -50,37 +50,37 @@ func (_m *MockUserRepository) CreateUser(ctx context.Context, _a1 resource.User) return r0, r1 } -// MockUserRepository_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser' -type MockUserRepository_CreateUser_Call struct { +// MockuserRepository_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser' +type MockuserRepository_CreateUser_Call struct { *mock.Call } // CreateUser is a helper method to define mock.On call // - ctx context.Context // - _a1 resource.User -func (_e *MockUserRepository_Expecter) CreateUser(ctx interface{}, _a1 interface{}) *MockUserRepository_CreateUser_Call { - return &MockUserRepository_CreateUser_Call{Call: _e.mock.On("CreateUser", ctx, _a1)} +func (_e *MockuserRepository_Expecter) CreateUser(ctx interface{}, _a1 interface{}) *MockuserRepository_CreateUser_Call { + return &MockuserRepository_CreateUser_Call{Call: _e.mock.On("CreateUser", ctx, _a1)} } -func (_c *MockUserRepository_CreateUser_Call) Run(run func(ctx context.Context, _a1 resource.User)) *MockUserRepository_CreateUser_Call { +func (_c *MockuserRepository_CreateUser_Call) Run(run func(ctx context.Context, _a1 resource.User)) *MockuserRepository_CreateUser_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(resource.User)) }) return _c } -func (_c *MockUserRepository_CreateUser_Call) Return(_a0 resource.User, _a1 error) *MockUserRepository_CreateUser_Call { +func (_c *MockuserRepository_CreateUser_Call) Return(_a0 resource.User, _a1 error) *MockuserRepository_CreateUser_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockUserRepository_CreateUser_Call) RunAndReturn(run func(context.Context, resource.User) (resource.User, error)) *MockUserRepository_CreateUser_Call { +func (_c *MockuserRepository_CreateUser_Call) RunAndReturn(run func(context.Context, resource.User) (resource.User, error)) *MockuserRepository_CreateUser_Call { _c.Call.Return(run) return _c } // GetUserByIDPID provides a mock function with given fields: ctx, id -func (_m *MockUserRepository) GetUserByIDPID(ctx context.Context, id string) (resource.User, error) { +func (_m *MockuserRepository) GetUserByIDPID(ctx context.Context, id string) (resource.User, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -107,42 +107,42 @@ func (_m *MockUserRepository) GetUserByIDPID(ctx context.Context, id string) (re return r0, r1 } -// MockUserRepository_GetUserByIDPID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByIDPID' -type MockUserRepository_GetUserByIDPID_Call struct { +// MockuserRepository_GetUserByIDPID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByIDPID' +type MockuserRepository_GetUserByIDPID_Call struct { *mock.Call } // GetUserByIDPID is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockUserRepository_Expecter) GetUserByIDPID(ctx interface{}, id interface{}) *MockUserRepository_GetUserByIDPID_Call { - return &MockUserRepository_GetUserByIDPID_Call{Call: _e.mock.On("GetUserByIDPID", ctx, id)} +func (_e *MockuserRepository_Expecter) GetUserByIDPID(ctx interface{}, id interface{}) *MockuserRepository_GetUserByIDPID_Call { + return &MockuserRepository_GetUserByIDPID_Call{Call: _e.mock.On("GetUserByIDPID", ctx, id)} } -func (_c *MockUserRepository_GetUserByIDPID_Call) Run(run func(ctx context.Context, id string)) *MockUserRepository_GetUserByIDPID_Call { +func (_c *MockuserRepository_GetUserByIDPID_Call) Run(run func(ctx context.Context, id string)) *MockuserRepository_GetUserByIDPID_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockUserRepository_GetUserByIDPID_Call) Return(_a0 resource.User, _a1 error) *MockUserRepository_GetUserByIDPID_Call { +func (_c *MockuserRepository_GetUserByIDPID_Call) Return(_a0 resource.User, _a1 error) *MockuserRepository_GetUserByIDPID_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockUserRepository_GetUserByIDPID_Call) RunAndReturn(run func(context.Context, string) (resource.User, error)) *MockUserRepository_GetUserByIDPID_Call { +func (_c *MockuserRepository_GetUserByIDPID_Call) RunAndReturn(run func(context.Context, string) (resource.User, error)) *MockuserRepository_GetUserByIDPID_Call { _c.Call.Return(run) return _c } -// NewMockUserRepository creates a new instance of MockUserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockuserRepository creates a new instance of MockuserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockUserRepository(t interface { +func NewMockuserRepository(t interface { mock.TestingT Cleanup(func()) -}) *MockUserRepository { - mock := &MockUserRepository{} +}) *MockuserRepository { + mock := &MockuserRepository{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/v1_image_service_client.go b/internal/mock/v1_image_service_client.go index 7d078bf38..51aeb0171 100644 --- a/internal/mock/v1_image_service_client.go +++ b/internal/mock/v1_image_service_client.go @@ -12,21 +12,21 @@ import ( v1 "k8s.io/cri-api/pkg/apis/runtime/v1" ) -// MockV1ImageServiceClient is an autogenerated mock type for the ImageServiceClient type -type MockV1ImageServiceClient struct { +// Mockv1ImageServiceClient is an autogenerated mock type for the ImageServiceClient type +type Mockv1ImageServiceClient struct { mock.Mock } -type MockV1ImageServiceClient_Expecter struct { +type Mockv1ImageServiceClient_Expecter struct { mock *mock.Mock } -func (_m *MockV1ImageServiceClient) EXPECT() *MockV1ImageServiceClient_Expecter { - return &MockV1ImageServiceClient_Expecter{mock: &_m.Mock} +func (_m *Mockv1ImageServiceClient) EXPECT() *Mockv1ImageServiceClient_Expecter { + return &Mockv1ImageServiceClient_Expecter{mock: &_m.Mock} } // ImageFsInfo provides a mock function with given fields: ctx, in, opts -func (_m *MockV1ImageServiceClient) ImageFsInfo(ctx context.Context, in *v1.ImageFsInfoRequest, opts ...grpc.CallOption) (*v1.ImageFsInfoResponse, error) { +func (_m *Mockv1ImageServiceClient) ImageFsInfo(ctx context.Context, in *v1.ImageFsInfoRequest, opts ...grpc.CallOption) (*v1.ImageFsInfoResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -62,8 +62,8 @@ func (_m *MockV1ImageServiceClient) ImageFsInfo(ctx context.Context, in *v1.Imag return r0, r1 } -// MockV1ImageServiceClient_ImageFsInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageFsInfo' -type MockV1ImageServiceClient_ImageFsInfo_Call struct { +// Mockv1ImageServiceClient_ImageFsInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageFsInfo' +type Mockv1ImageServiceClient_ImageFsInfo_Call struct { *mock.Call } @@ -71,12 +71,12 @@ type MockV1ImageServiceClient_ImageFsInfo_Call struct { // - ctx context.Context // - in *v1.ImageFsInfoRequest // - opts ...grpc.CallOption -func (_e *MockV1ImageServiceClient_Expecter) ImageFsInfo(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_ImageFsInfo_Call { - return &MockV1ImageServiceClient_ImageFsInfo_Call{Call: _e.mock.On("ImageFsInfo", +func (_e *Mockv1ImageServiceClient_Expecter) ImageFsInfo(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1ImageServiceClient_ImageFsInfo_Call { + return &Mockv1ImageServiceClient_ImageFsInfo_Call{Call: _e.mock.On("ImageFsInfo", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1ImageServiceClient_ImageFsInfo_Call) Run(run func(ctx context.Context, in *v1.ImageFsInfoRequest, opts ...grpc.CallOption)) *MockV1ImageServiceClient_ImageFsInfo_Call { +func (_c *Mockv1ImageServiceClient_ImageFsInfo_Call) Run(run func(ctx context.Context, in *v1.ImageFsInfoRequest, opts ...grpc.CallOption)) *Mockv1ImageServiceClient_ImageFsInfo_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -89,18 +89,18 @@ func (_c *MockV1ImageServiceClient_ImageFsInfo_Call) Run(run func(ctx context.Co return _c } -func (_c *MockV1ImageServiceClient_ImageFsInfo_Call) Return(_a0 *v1.ImageFsInfoResponse, _a1 error) *MockV1ImageServiceClient_ImageFsInfo_Call { +func (_c *Mockv1ImageServiceClient_ImageFsInfo_Call) Return(_a0 *v1.ImageFsInfoResponse, _a1 error) *Mockv1ImageServiceClient_ImageFsInfo_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1ImageServiceClient_ImageFsInfo_Call) RunAndReturn(run func(context.Context, *v1.ImageFsInfoRequest, ...grpc.CallOption) (*v1.ImageFsInfoResponse, error)) *MockV1ImageServiceClient_ImageFsInfo_Call { +func (_c *Mockv1ImageServiceClient_ImageFsInfo_Call) RunAndReturn(run func(context.Context, *v1.ImageFsInfoRequest, ...grpc.CallOption) (*v1.ImageFsInfoResponse, error)) *Mockv1ImageServiceClient_ImageFsInfo_Call { _c.Call.Return(run) return _c } // ImageStatus provides a mock function with given fields: ctx, in, opts -func (_m *MockV1ImageServiceClient) ImageStatus(ctx context.Context, in *v1.ImageStatusRequest, opts ...grpc.CallOption) (*v1.ImageStatusResponse, error) { +func (_m *Mockv1ImageServiceClient) ImageStatus(ctx context.Context, in *v1.ImageStatusRequest, opts ...grpc.CallOption) (*v1.ImageStatusResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -136,8 +136,8 @@ func (_m *MockV1ImageServiceClient) ImageStatus(ctx context.Context, in *v1.Imag return r0, r1 } -// MockV1ImageServiceClient_ImageStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageStatus' -type MockV1ImageServiceClient_ImageStatus_Call struct { +// Mockv1ImageServiceClient_ImageStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageStatus' +type Mockv1ImageServiceClient_ImageStatus_Call struct { *mock.Call } @@ -145,12 +145,12 @@ type MockV1ImageServiceClient_ImageStatus_Call struct { // - ctx context.Context // - in *v1.ImageStatusRequest // - opts ...grpc.CallOption -func (_e *MockV1ImageServiceClient_Expecter) ImageStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_ImageStatus_Call { - return &MockV1ImageServiceClient_ImageStatus_Call{Call: _e.mock.On("ImageStatus", +func (_e *Mockv1ImageServiceClient_Expecter) ImageStatus(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1ImageServiceClient_ImageStatus_Call { + return &Mockv1ImageServiceClient_ImageStatus_Call{Call: _e.mock.On("ImageStatus", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1ImageServiceClient_ImageStatus_Call) Run(run func(ctx context.Context, in *v1.ImageStatusRequest, opts ...grpc.CallOption)) *MockV1ImageServiceClient_ImageStatus_Call { +func (_c *Mockv1ImageServiceClient_ImageStatus_Call) Run(run func(ctx context.Context, in *v1.ImageStatusRequest, opts ...grpc.CallOption)) *Mockv1ImageServiceClient_ImageStatus_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -163,18 +163,18 @@ func (_c *MockV1ImageServiceClient_ImageStatus_Call) Run(run func(ctx context.Co return _c } -func (_c *MockV1ImageServiceClient_ImageStatus_Call) Return(_a0 *v1.ImageStatusResponse, _a1 error) *MockV1ImageServiceClient_ImageStatus_Call { +func (_c *Mockv1ImageServiceClient_ImageStatus_Call) Return(_a0 *v1.ImageStatusResponse, _a1 error) *Mockv1ImageServiceClient_ImageStatus_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1ImageServiceClient_ImageStatus_Call) RunAndReturn(run func(context.Context, *v1.ImageStatusRequest, ...grpc.CallOption) (*v1.ImageStatusResponse, error)) *MockV1ImageServiceClient_ImageStatus_Call { +func (_c *Mockv1ImageServiceClient_ImageStatus_Call) RunAndReturn(run func(context.Context, *v1.ImageStatusRequest, ...grpc.CallOption) (*v1.ImageStatusResponse, error)) *Mockv1ImageServiceClient_ImageStatus_Call { _c.Call.Return(run) return _c } // ListImages provides a mock function with given fields: ctx, in, opts -func (_m *MockV1ImageServiceClient) ListImages(ctx context.Context, in *v1.ListImagesRequest, opts ...grpc.CallOption) (*v1.ListImagesResponse, error) { +func (_m *Mockv1ImageServiceClient) ListImages(ctx context.Context, in *v1.ListImagesRequest, opts ...grpc.CallOption) (*v1.ListImagesResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -210,8 +210,8 @@ func (_m *MockV1ImageServiceClient) ListImages(ctx context.Context, in *v1.ListI return r0, r1 } -// MockV1ImageServiceClient_ListImages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListImages' -type MockV1ImageServiceClient_ListImages_Call struct { +// Mockv1ImageServiceClient_ListImages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListImages' +type Mockv1ImageServiceClient_ListImages_Call struct { *mock.Call } @@ -219,12 +219,12 @@ type MockV1ImageServiceClient_ListImages_Call struct { // - ctx context.Context // - in *v1.ListImagesRequest // - opts ...grpc.CallOption -func (_e *MockV1ImageServiceClient_Expecter) ListImages(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_ListImages_Call { - return &MockV1ImageServiceClient_ListImages_Call{Call: _e.mock.On("ListImages", +func (_e *Mockv1ImageServiceClient_Expecter) ListImages(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1ImageServiceClient_ListImages_Call { + return &Mockv1ImageServiceClient_ListImages_Call{Call: _e.mock.On("ListImages", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1ImageServiceClient_ListImages_Call) Run(run func(ctx context.Context, in *v1.ListImagesRequest, opts ...grpc.CallOption)) *MockV1ImageServiceClient_ListImages_Call { +func (_c *Mockv1ImageServiceClient_ListImages_Call) Run(run func(ctx context.Context, in *v1.ListImagesRequest, opts ...grpc.CallOption)) *Mockv1ImageServiceClient_ListImages_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -237,18 +237,18 @@ func (_c *MockV1ImageServiceClient_ListImages_Call) Run(run func(ctx context.Con return _c } -func (_c *MockV1ImageServiceClient_ListImages_Call) Return(_a0 *v1.ListImagesResponse, _a1 error) *MockV1ImageServiceClient_ListImages_Call { +func (_c *Mockv1ImageServiceClient_ListImages_Call) Return(_a0 *v1.ListImagesResponse, _a1 error) *Mockv1ImageServiceClient_ListImages_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1ImageServiceClient_ListImages_Call) RunAndReturn(run func(context.Context, *v1.ListImagesRequest, ...grpc.CallOption) (*v1.ListImagesResponse, error)) *MockV1ImageServiceClient_ListImages_Call { +func (_c *Mockv1ImageServiceClient_ListImages_Call) RunAndReturn(run func(context.Context, *v1.ListImagesRequest, ...grpc.CallOption) (*v1.ListImagesResponse, error)) *Mockv1ImageServiceClient_ListImages_Call { _c.Call.Return(run) return _c } // PullImage provides a mock function with given fields: ctx, in, opts -func (_m *MockV1ImageServiceClient) PullImage(ctx context.Context, in *v1.PullImageRequest, opts ...grpc.CallOption) (*v1.PullImageResponse, error) { +func (_m *Mockv1ImageServiceClient) PullImage(ctx context.Context, in *v1.PullImageRequest, opts ...grpc.CallOption) (*v1.PullImageResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -284,8 +284,8 @@ func (_m *MockV1ImageServiceClient) PullImage(ctx context.Context, in *v1.PullIm return r0, r1 } -// MockV1ImageServiceClient_PullImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PullImage' -type MockV1ImageServiceClient_PullImage_Call struct { +// Mockv1ImageServiceClient_PullImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PullImage' +type Mockv1ImageServiceClient_PullImage_Call struct { *mock.Call } @@ -293,12 +293,12 @@ type MockV1ImageServiceClient_PullImage_Call struct { // - ctx context.Context // - in *v1.PullImageRequest // - opts ...grpc.CallOption -func (_e *MockV1ImageServiceClient_Expecter) PullImage(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_PullImage_Call { - return &MockV1ImageServiceClient_PullImage_Call{Call: _e.mock.On("PullImage", +func (_e *Mockv1ImageServiceClient_Expecter) PullImage(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1ImageServiceClient_PullImage_Call { + return &Mockv1ImageServiceClient_PullImage_Call{Call: _e.mock.On("PullImage", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1ImageServiceClient_PullImage_Call) Run(run func(ctx context.Context, in *v1.PullImageRequest, opts ...grpc.CallOption)) *MockV1ImageServiceClient_PullImage_Call { +func (_c *Mockv1ImageServiceClient_PullImage_Call) Run(run func(ctx context.Context, in *v1.PullImageRequest, opts ...grpc.CallOption)) *Mockv1ImageServiceClient_PullImage_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -311,18 +311,18 @@ func (_c *MockV1ImageServiceClient_PullImage_Call) Run(run func(ctx context.Cont return _c } -func (_c *MockV1ImageServiceClient_PullImage_Call) Return(_a0 *v1.PullImageResponse, _a1 error) *MockV1ImageServiceClient_PullImage_Call { +func (_c *Mockv1ImageServiceClient_PullImage_Call) Return(_a0 *v1.PullImageResponse, _a1 error) *Mockv1ImageServiceClient_PullImage_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1ImageServiceClient_PullImage_Call) RunAndReturn(run func(context.Context, *v1.PullImageRequest, ...grpc.CallOption) (*v1.PullImageResponse, error)) *MockV1ImageServiceClient_PullImage_Call { +func (_c *Mockv1ImageServiceClient_PullImage_Call) RunAndReturn(run func(context.Context, *v1.PullImageRequest, ...grpc.CallOption) (*v1.PullImageResponse, error)) *Mockv1ImageServiceClient_PullImage_Call { _c.Call.Return(run) return _c } // RemoveImage provides a mock function with given fields: ctx, in, opts -func (_m *MockV1ImageServiceClient) RemoveImage(ctx context.Context, in *v1.RemoveImageRequest, opts ...grpc.CallOption) (*v1.RemoveImageResponse, error) { +func (_m *Mockv1ImageServiceClient) RemoveImage(ctx context.Context, in *v1.RemoveImageRequest, opts ...grpc.CallOption) (*v1.RemoveImageResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -358,8 +358,8 @@ func (_m *MockV1ImageServiceClient) RemoveImage(ctx context.Context, in *v1.Remo return r0, r1 } -// MockV1ImageServiceClient_RemoveImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveImage' -type MockV1ImageServiceClient_RemoveImage_Call struct { +// Mockv1ImageServiceClient_RemoveImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveImage' +type Mockv1ImageServiceClient_RemoveImage_Call struct { *mock.Call } @@ -367,12 +367,12 @@ type MockV1ImageServiceClient_RemoveImage_Call struct { // - ctx context.Context // - in *v1.RemoveImageRequest // - opts ...grpc.CallOption -func (_e *MockV1ImageServiceClient_Expecter) RemoveImage(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_RemoveImage_Call { - return &MockV1ImageServiceClient_RemoveImage_Call{Call: _e.mock.On("RemoveImage", +func (_e *Mockv1ImageServiceClient_Expecter) RemoveImage(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1ImageServiceClient_RemoveImage_Call { + return &Mockv1ImageServiceClient_RemoveImage_Call{Call: _e.mock.On("RemoveImage", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1ImageServiceClient_RemoveImage_Call) Run(run func(ctx context.Context, in *v1.RemoveImageRequest, opts ...grpc.CallOption)) *MockV1ImageServiceClient_RemoveImage_Call { +func (_c *Mockv1ImageServiceClient_RemoveImage_Call) Run(run func(ctx context.Context, in *v1.RemoveImageRequest, opts ...grpc.CallOption)) *Mockv1ImageServiceClient_RemoveImage_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -385,18 +385,18 @@ func (_c *MockV1ImageServiceClient_RemoveImage_Call) Run(run func(ctx context.Co return _c } -func (_c *MockV1ImageServiceClient_RemoveImage_Call) Return(_a0 *v1.RemoveImageResponse, _a1 error) *MockV1ImageServiceClient_RemoveImage_Call { +func (_c *Mockv1ImageServiceClient_RemoveImage_Call) Return(_a0 *v1.RemoveImageResponse, _a1 error) *Mockv1ImageServiceClient_RemoveImage_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1ImageServiceClient_RemoveImage_Call) RunAndReturn(run func(context.Context, *v1.RemoveImageRequest, ...grpc.CallOption) (*v1.RemoveImageResponse, error)) *MockV1ImageServiceClient_RemoveImage_Call { +func (_c *Mockv1ImageServiceClient_RemoveImage_Call) RunAndReturn(run func(context.Context, *v1.RemoveImageRequest, ...grpc.CallOption) (*v1.RemoveImageResponse, error)) *Mockv1ImageServiceClient_RemoveImage_Call { _c.Call.Return(run) return _c } // StreamImages provides a mock function with given fields: ctx, in, opts -func (_m *MockV1ImageServiceClient) StreamImages(ctx context.Context, in *v1.StreamImagesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamImagesResponse], error) { +func (_m *Mockv1ImageServiceClient) StreamImages(ctx context.Context, in *v1.StreamImagesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamImagesResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -432,8 +432,8 @@ func (_m *MockV1ImageServiceClient) StreamImages(ctx context.Context, in *v1.Str return r0, r1 } -// MockV1ImageServiceClient_StreamImages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamImages' -type MockV1ImageServiceClient_StreamImages_Call struct { +// Mockv1ImageServiceClient_StreamImages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamImages' +type Mockv1ImageServiceClient_StreamImages_Call struct { *mock.Call } @@ -441,12 +441,12 @@ type MockV1ImageServiceClient_StreamImages_Call struct { // - ctx context.Context // - in *v1.StreamImagesRequest // - opts ...grpc.CallOption -func (_e *MockV1ImageServiceClient_Expecter) StreamImages(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_StreamImages_Call { - return &MockV1ImageServiceClient_StreamImages_Call{Call: _e.mock.On("StreamImages", +func (_e *Mockv1ImageServiceClient_Expecter) StreamImages(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1ImageServiceClient_StreamImages_Call { + return &Mockv1ImageServiceClient_StreamImages_Call{Call: _e.mock.On("StreamImages", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1ImageServiceClient_StreamImages_Call) Run(run func(ctx context.Context, in *v1.StreamImagesRequest, opts ...grpc.CallOption)) *MockV1ImageServiceClient_StreamImages_Call { +func (_c *Mockv1ImageServiceClient_StreamImages_Call) Run(run func(ctx context.Context, in *v1.StreamImagesRequest, opts ...grpc.CallOption)) *Mockv1ImageServiceClient_StreamImages_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -459,23 +459,23 @@ func (_c *MockV1ImageServiceClient_StreamImages_Call) Run(run func(ctx context.C return _c } -func (_c *MockV1ImageServiceClient_StreamImages_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamImagesResponse], _a1 error) *MockV1ImageServiceClient_StreamImages_Call { +func (_c *Mockv1ImageServiceClient_StreamImages_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamImagesResponse], _a1 error) *Mockv1ImageServiceClient_StreamImages_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1ImageServiceClient_StreamImages_Call) RunAndReturn(run func(context.Context, *v1.StreamImagesRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamImagesResponse], error)) *MockV1ImageServiceClient_StreamImages_Call { +func (_c *Mockv1ImageServiceClient_StreamImages_Call) RunAndReturn(run func(context.Context, *v1.StreamImagesRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamImagesResponse], error)) *Mockv1ImageServiceClient_StreamImages_Call { _c.Call.Return(run) return _c } -// NewMockV1ImageServiceClient creates a new instance of MockV1ImageServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockv1ImageServiceClient creates a new instance of Mockv1ImageServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockV1ImageServiceClient(t interface { +func NewMockv1ImageServiceClient(t interface { mock.TestingT Cleanup(func()) -}) *MockV1ImageServiceClient { - mock := &MockV1ImageServiceClient{} +}) *Mockv1ImageServiceClient { + mock := &Mockv1ImageServiceClient{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/v1_runtime_service_client.go b/internal/mock/v1_runtime_service_client.go index 038659e8c..92c3f9aeb 100644 --- a/internal/mock/v1_runtime_service_client.go +++ b/internal/mock/v1_runtime_service_client.go @@ -12,21 +12,21 @@ import ( v1 "k8s.io/cri-api/pkg/apis/runtime/v1" ) -// MockV1RuntimeServiceClient is an autogenerated mock type for the RuntimeServiceClient type -type MockV1RuntimeServiceClient struct { +// Mockv1RuntimeServiceClient is an autogenerated mock type for the RuntimeServiceClient type +type Mockv1RuntimeServiceClient struct { mock.Mock } -type MockV1RuntimeServiceClient_Expecter struct { +type Mockv1RuntimeServiceClient_Expecter struct { mock *mock.Mock } -func (_m *MockV1RuntimeServiceClient) EXPECT() *MockV1RuntimeServiceClient_Expecter { - return &MockV1RuntimeServiceClient_Expecter{mock: &_m.Mock} +func (_m *Mockv1RuntimeServiceClient) EXPECT() *Mockv1RuntimeServiceClient_Expecter { + return &Mockv1RuntimeServiceClient_Expecter{mock: &_m.Mock} } // Attach provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) Attach(ctx context.Context, in *v1.AttachRequest, opts ...grpc.CallOption) (*v1.AttachResponse, error) { +func (_m *Mockv1RuntimeServiceClient) Attach(ctx context.Context, in *v1.AttachRequest, opts ...grpc.CallOption) (*v1.AttachResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -62,8 +62,8 @@ func (_m *MockV1RuntimeServiceClient) Attach(ctx context.Context, in *v1.AttachR return r0, r1 } -// MockV1RuntimeServiceClient_Attach_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attach' -type MockV1RuntimeServiceClient_Attach_Call struct { +// Mockv1RuntimeServiceClient_Attach_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attach' +type Mockv1RuntimeServiceClient_Attach_Call struct { *mock.Call } @@ -71,12 +71,12 @@ type MockV1RuntimeServiceClient_Attach_Call struct { // - ctx context.Context // - in *v1.AttachRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) Attach(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_Attach_Call { - return &MockV1RuntimeServiceClient_Attach_Call{Call: _e.mock.On("Attach", +func (_e *Mockv1RuntimeServiceClient_Expecter) Attach(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_Attach_Call { + return &Mockv1RuntimeServiceClient_Attach_Call{Call: _e.mock.On("Attach", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_Attach_Call) Run(run func(ctx context.Context, in *v1.AttachRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_Attach_Call { +func (_c *Mockv1RuntimeServiceClient_Attach_Call) Run(run func(ctx context.Context, in *v1.AttachRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_Attach_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -89,18 +89,18 @@ func (_c *MockV1RuntimeServiceClient_Attach_Call) Run(run func(ctx context.Conte return _c } -func (_c *MockV1RuntimeServiceClient_Attach_Call) Return(_a0 *v1.AttachResponse, _a1 error) *MockV1RuntimeServiceClient_Attach_Call { +func (_c *Mockv1RuntimeServiceClient_Attach_Call) Return(_a0 *v1.AttachResponse, _a1 error) *Mockv1RuntimeServiceClient_Attach_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_Attach_Call) RunAndReturn(run func(context.Context, *v1.AttachRequest, ...grpc.CallOption) (*v1.AttachResponse, error)) *MockV1RuntimeServiceClient_Attach_Call { +func (_c *Mockv1RuntimeServiceClient_Attach_Call) RunAndReturn(run func(context.Context, *v1.AttachRequest, ...grpc.CallOption) (*v1.AttachResponse, error)) *Mockv1RuntimeServiceClient_Attach_Call { _c.Call.Return(run) return _c } // CheckpointContainer provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) CheckpointContainer(ctx context.Context, in *v1.CheckpointContainerRequest, opts ...grpc.CallOption) (*v1.CheckpointContainerResponse, error) { +func (_m *Mockv1RuntimeServiceClient) CheckpointContainer(ctx context.Context, in *v1.CheckpointContainerRequest, opts ...grpc.CallOption) (*v1.CheckpointContainerResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -136,8 +136,8 @@ func (_m *MockV1RuntimeServiceClient) CheckpointContainer(ctx context.Context, i return r0, r1 } -// MockV1RuntimeServiceClient_CheckpointContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckpointContainer' -type MockV1RuntimeServiceClient_CheckpointContainer_Call struct { +// Mockv1RuntimeServiceClient_CheckpointContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckpointContainer' +type Mockv1RuntimeServiceClient_CheckpointContainer_Call struct { *mock.Call } @@ -145,12 +145,12 @@ type MockV1RuntimeServiceClient_CheckpointContainer_Call struct { // - ctx context.Context // - in *v1.CheckpointContainerRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) CheckpointContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_CheckpointContainer_Call { - return &MockV1RuntimeServiceClient_CheckpointContainer_Call{Call: _e.mock.On("CheckpointContainer", +func (_e *Mockv1RuntimeServiceClient_Expecter) CheckpointContainer(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_CheckpointContainer_Call { + return &Mockv1RuntimeServiceClient_CheckpointContainer_Call{Call: _e.mock.On("CheckpointContainer", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_CheckpointContainer_Call) Run(run func(ctx context.Context, in *v1.CheckpointContainerRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_CheckpointContainer_Call { +func (_c *Mockv1RuntimeServiceClient_CheckpointContainer_Call) Run(run func(ctx context.Context, in *v1.CheckpointContainerRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_CheckpointContainer_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -163,18 +163,18 @@ func (_c *MockV1RuntimeServiceClient_CheckpointContainer_Call) Run(run func(ctx return _c } -func (_c *MockV1RuntimeServiceClient_CheckpointContainer_Call) Return(_a0 *v1.CheckpointContainerResponse, _a1 error) *MockV1RuntimeServiceClient_CheckpointContainer_Call { +func (_c *Mockv1RuntimeServiceClient_CheckpointContainer_Call) Return(_a0 *v1.CheckpointContainerResponse, _a1 error) *Mockv1RuntimeServiceClient_CheckpointContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_CheckpointContainer_Call) RunAndReturn(run func(context.Context, *v1.CheckpointContainerRequest, ...grpc.CallOption) (*v1.CheckpointContainerResponse, error)) *MockV1RuntimeServiceClient_CheckpointContainer_Call { +func (_c *Mockv1RuntimeServiceClient_CheckpointContainer_Call) RunAndReturn(run func(context.Context, *v1.CheckpointContainerRequest, ...grpc.CallOption) (*v1.CheckpointContainerResponse, error)) *Mockv1RuntimeServiceClient_CheckpointContainer_Call { _c.Call.Return(run) return _c } // ContainerStats provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) ContainerStats(ctx context.Context, in *v1.ContainerStatsRequest, opts ...grpc.CallOption) (*v1.ContainerStatsResponse, error) { +func (_m *Mockv1RuntimeServiceClient) ContainerStats(ctx context.Context, in *v1.ContainerStatsRequest, opts ...grpc.CallOption) (*v1.ContainerStatsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -210,8 +210,8 @@ func (_m *MockV1RuntimeServiceClient) ContainerStats(ctx context.Context, in *v1 return r0, r1 } -// MockV1RuntimeServiceClient_ContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStats' -type MockV1RuntimeServiceClient_ContainerStats_Call struct { +// Mockv1RuntimeServiceClient_ContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStats' +type Mockv1RuntimeServiceClient_ContainerStats_Call struct { *mock.Call } @@ -219,12 +219,12 @@ type MockV1RuntimeServiceClient_ContainerStats_Call struct { // - ctx context.Context // - in *v1.ContainerStatsRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) ContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ContainerStats_Call { - return &MockV1RuntimeServiceClient_ContainerStats_Call{Call: _e.mock.On("ContainerStats", +func (_e *Mockv1RuntimeServiceClient_Expecter) ContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_ContainerStats_Call { + return &Mockv1RuntimeServiceClient_ContainerStats_Call{Call: _e.mock.On("ContainerStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_ContainerStats_Call) Run(run func(ctx context.Context, in *v1.ContainerStatsRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_ContainerStats_Call { +func (_c *Mockv1RuntimeServiceClient_ContainerStats_Call) Run(run func(ctx context.Context, in *v1.ContainerStatsRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_ContainerStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -237,18 +237,18 @@ func (_c *MockV1RuntimeServiceClient_ContainerStats_Call) Run(run func(ctx conte return _c } -func (_c *MockV1RuntimeServiceClient_ContainerStats_Call) Return(_a0 *v1.ContainerStatsResponse, _a1 error) *MockV1RuntimeServiceClient_ContainerStats_Call { +func (_c *Mockv1RuntimeServiceClient_ContainerStats_Call) Return(_a0 *v1.ContainerStatsResponse, _a1 error) *Mockv1RuntimeServiceClient_ContainerStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_ContainerStats_Call) RunAndReturn(run func(context.Context, *v1.ContainerStatsRequest, ...grpc.CallOption) (*v1.ContainerStatsResponse, error)) *MockV1RuntimeServiceClient_ContainerStats_Call { +func (_c *Mockv1RuntimeServiceClient_ContainerStats_Call) RunAndReturn(run func(context.Context, *v1.ContainerStatsRequest, ...grpc.CallOption) (*v1.ContainerStatsResponse, error)) *Mockv1RuntimeServiceClient_ContainerStats_Call { _c.Call.Return(run) return _c } // ContainerStatus provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) ContainerStatus(ctx context.Context, in *v1.ContainerStatusRequest, opts ...grpc.CallOption) (*v1.ContainerStatusResponse, error) { +func (_m *Mockv1RuntimeServiceClient) ContainerStatus(ctx context.Context, in *v1.ContainerStatusRequest, opts ...grpc.CallOption) (*v1.ContainerStatusResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -284,8 +284,8 @@ func (_m *MockV1RuntimeServiceClient) ContainerStatus(ctx context.Context, in *v return r0, r1 } -// MockV1RuntimeServiceClient_ContainerStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStatus' -type MockV1RuntimeServiceClient_ContainerStatus_Call struct { +// Mockv1RuntimeServiceClient_ContainerStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStatus' +type Mockv1RuntimeServiceClient_ContainerStatus_Call struct { *mock.Call } @@ -293,12 +293,12 @@ type MockV1RuntimeServiceClient_ContainerStatus_Call struct { // - ctx context.Context // - in *v1.ContainerStatusRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) ContainerStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ContainerStatus_Call { - return &MockV1RuntimeServiceClient_ContainerStatus_Call{Call: _e.mock.On("ContainerStatus", +func (_e *Mockv1RuntimeServiceClient_Expecter) ContainerStatus(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_ContainerStatus_Call { + return &Mockv1RuntimeServiceClient_ContainerStatus_Call{Call: _e.mock.On("ContainerStatus", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_ContainerStatus_Call) Run(run func(ctx context.Context, in *v1.ContainerStatusRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_ContainerStatus_Call { +func (_c *Mockv1RuntimeServiceClient_ContainerStatus_Call) Run(run func(ctx context.Context, in *v1.ContainerStatusRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_ContainerStatus_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -311,18 +311,18 @@ func (_c *MockV1RuntimeServiceClient_ContainerStatus_Call) Run(run func(ctx cont return _c } -func (_c *MockV1RuntimeServiceClient_ContainerStatus_Call) Return(_a0 *v1.ContainerStatusResponse, _a1 error) *MockV1RuntimeServiceClient_ContainerStatus_Call { +func (_c *Mockv1RuntimeServiceClient_ContainerStatus_Call) Return(_a0 *v1.ContainerStatusResponse, _a1 error) *Mockv1RuntimeServiceClient_ContainerStatus_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_ContainerStatus_Call) RunAndReturn(run func(context.Context, *v1.ContainerStatusRequest, ...grpc.CallOption) (*v1.ContainerStatusResponse, error)) *MockV1RuntimeServiceClient_ContainerStatus_Call { +func (_c *Mockv1RuntimeServiceClient_ContainerStatus_Call) RunAndReturn(run func(context.Context, *v1.ContainerStatusRequest, ...grpc.CallOption) (*v1.ContainerStatusResponse, error)) *Mockv1RuntimeServiceClient_ContainerStatus_Call { _c.Call.Return(run) return _c } // CreateContainer provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) CreateContainer(ctx context.Context, in *v1.CreateContainerRequest, opts ...grpc.CallOption) (*v1.CreateContainerResponse, error) { +func (_m *Mockv1RuntimeServiceClient) CreateContainer(ctx context.Context, in *v1.CreateContainerRequest, opts ...grpc.CallOption) (*v1.CreateContainerResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -358,8 +358,8 @@ func (_m *MockV1RuntimeServiceClient) CreateContainer(ctx context.Context, in *v return r0, r1 } -// MockV1RuntimeServiceClient_CreateContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateContainer' -type MockV1RuntimeServiceClient_CreateContainer_Call struct { +// Mockv1RuntimeServiceClient_CreateContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateContainer' +type Mockv1RuntimeServiceClient_CreateContainer_Call struct { *mock.Call } @@ -367,12 +367,12 @@ type MockV1RuntimeServiceClient_CreateContainer_Call struct { // - ctx context.Context // - in *v1.CreateContainerRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) CreateContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_CreateContainer_Call { - return &MockV1RuntimeServiceClient_CreateContainer_Call{Call: _e.mock.On("CreateContainer", +func (_e *Mockv1RuntimeServiceClient_Expecter) CreateContainer(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_CreateContainer_Call { + return &Mockv1RuntimeServiceClient_CreateContainer_Call{Call: _e.mock.On("CreateContainer", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_CreateContainer_Call) Run(run func(ctx context.Context, in *v1.CreateContainerRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_CreateContainer_Call { +func (_c *Mockv1RuntimeServiceClient_CreateContainer_Call) Run(run func(ctx context.Context, in *v1.CreateContainerRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_CreateContainer_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -385,18 +385,18 @@ func (_c *MockV1RuntimeServiceClient_CreateContainer_Call) Run(run func(ctx cont return _c } -func (_c *MockV1RuntimeServiceClient_CreateContainer_Call) Return(_a0 *v1.CreateContainerResponse, _a1 error) *MockV1RuntimeServiceClient_CreateContainer_Call { +func (_c *Mockv1RuntimeServiceClient_CreateContainer_Call) Return(_a0 *v1.CreateContainerResponse, _a1 error) *Mockv1RuntimeServiceClient_CreateContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_CreateContainer_Call) RunAndReturn(run func(context.Context, *v1.CreateContainerRequest, ...grpc.CallOption) (*v1.CreateContainerResponse, error)) *MockV1RuntimeServiceClient_CreateContainer_Call { +func (_c *Mockv1RuntimeServiceClient_CreateContainer_Call) RunAndReturn(run func(context.Context, *v1.CreateContainerRequest, ...grpc.CallOption) (*v1.CreateContainerResponse, error)) *Mockv1RuntimeServiceClient_CreateContainer_Call { _c.Call.Return(run) return _c } // Exec provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) Exec(ctx context.Context, in *v1.ExecRequest, opts ...grpc.CallOption) (*v1.ExecResponse, error) { +func (_m *Mockv1RuntimeServiceClient) Exec(ctx context.Context, in *v1.ExecRequest, opts ...grpc.CallOption) (*v1.ExecResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -432,8 +432,8 @@ func (_m *MockV1RuntimeServiceClient) Exec(ctx context.Context, in *v1.ExecReque return r0, r1 } -// MockV1RuntimeServiceClient_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec' -type MockV1RuntimeServiceClient_Exec_Call struct { +// Mockv1RuntimeServiceClient_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec' +type Mockv1RuntimeServiceClient_Exec_Call struct { *mock.Call } @@ -441,12 +441,12 @@ type MockV1RuntimeServiceClient_Exec_Call struct { // - ctx context.Context // - in *v1.ExecRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) Exec(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_Exec_Call { - return &MockV1RuntimeServiceClient_Exec_Call{Call: _e.mock.On("Exec", +func (_e *Mockv1RuntimeServiceClient_Expecter) Exec(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_Exec_Call { + return &Mockv1RuntimeServiceClient_Exec_Call{Call: _e.mock.On("Exec", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_Exec_Call) Run(run func(ctx context.Context, in *v1.ExecRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_Exec_Call { +func (_c *Mockv1RuntimeServiceClient_Exec_Call) Run(run func(ctx context.Context, in *v1.ExecRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_Exec_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -459,18 +459,18 @@ func (_c *MockV1RuntimeServiceClient_Exec_Call) Run(run func(ctx context.Context return _c } -func (_c *MockV1RuntimeServiceClient_Exec_Call) Return(_a0 *v1.ExecResponse, _a1 error) *MockV1RuntimeServiceClient_Exec_Call { +func (_c *Mockv1RuntimeServiceClient_Exec_Call) Return(_a0 *v1.ExecResponse, _a1 error) *Mockv1RuntimeServiceClient_Exec_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_Exec_Call) RunAndReturn(run func(context.Context, *v1.ExecRequest, ...grpc.CallOption) (*v1.ExecResponse, error)) *MockV1RuntimeServiceClient_Exec_Call { +func (_c *Mockv1RuntimeServiceClient_Exec_Call) RunAndReturn(run func(context.Context, *v1.ExecRequest, ...grpc.CallOption) (*v1.ExecResponse, error)) *Mockv1RuntimeServiceClient_Exec_Call { _c.Call.Return(run) return _c } // ExecSync provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) ExecSync(ctx context.Context, in *v1.ExecSyncRequest, opts ...grpc.CallOption) (*v1.ExecSyncResponse, error) { +func (_m *Mockv1RuntimeServiceClient) ExecSync(ctx context.Context, in *v1.ExecSyncRequest, opts ...grpc.CallOption) (*v1.ExecSyncResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -506,8 +506,8 @@ func (_m *MockV1RuntimeServiceClient) ExecSync(ctx context.Context, in *v1.ExecS return r0, r1 } -// MockV1RuntimeServiceClient_ExecSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecSync' -type MockV1RuntimeServiceClient_ExecSync_Call struct { +// Mockv1RuntimeServiceClient_ExecSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecSync' +type Mockv1RuntimeServiceClient_ExecSync_Call struct { *mock.Call } @@ -515,12 +515,12 @@ type MockV1RuntimeServiceClient_ExecSync_Call struct { // - ctx context.Context // - in *v1.ExecSyncRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) ExecSync(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ExecSync_Call { - return &MockV1RuntimeServiceClient_ExecSync_Call{Call: _e.mock.On("ExecSync", +func (_e *Mockv1RuntimeServiceClient_Expecter) ExecSync(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_ExecSync_Call { + return &Mockv1RuntimeServiceClient_ExecSync_Call{Call: _e.mock.On("ExecSync", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_ExecSync_Call) Run(run func(ctx context.Context, in *v1.ExecSyncRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_ExecSync_Call { +func (_c *Mockv1RuntimeServiceClient_ExecSync_Call) Run(run func(ctx context.Context, in *v1.ExecSyncRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_ExecSync_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -533,18 +533,18 @@ func (_c *MockV1RuntimeServiceClient_ExecSync_Call) Run(run func(ctx context.Con return _c } -func (_c *MockV1RuntimeServiceClient_ExecSync_Call) Return(_a0 *v1.ExecSyncResponse, _a1 error) *MockV1RuntimeServiceClient_ExecSync_Call { +func (_c *Mockv1RuntimeServiceClient_ExecSync_Call) Return(_a0 *v1.ExecSyncResponse, _a1 error) *Mockv1RuntimeServiceClient_ExecSync_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_ExecSync_Call) RunAndReturn(run func(context.Context, *v1.ExecSyncRequest, ...grpc.CallOption) (*v1.ExecSyncResponse, error)) *MockV1RuntimeServiceClient_ExecSync_Call { +func (_c *Mockv1RuntimeServiceClient_ExecSync_Call) RunAndReturn(run func(context.Context, *v1.ExecSyncRequest, ...grpc.CallOption) (*v1.ExecSyncResponse, error)) *Mockv1RuntimeServiceClient_ExecSync_Call { _c.Call.Return(run) return _c } // GetContainerEvents provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) GetContainerEvents(ctx context.Context, in *v1.GetEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.ContainerEventResponse], error) { +func (_m *Mockv1RuntimeServiceClient) GetContainerEvents(ctx context.Context, in *v1.GetEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.ContainerEventResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -580,8 +580,8 @@ func (_m *MockV1RuntimeServiceClient) GetContainerEvents(ctx context.Context, in return r0, r1 } -// MockV1RuntimeServiceClient_GetContainerEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContainerEvents' -type MockV1RuntimeServiceClient_GetContainerEvents_Call struct { +// Mockv1RuntimeServiceClient_GetContainerEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContainerEvents' +type Mockv1RuntimeServiceClient_GetContainerEvents_Call struct { *mock.Call } @@ -589,12 +589,12 @@ type MockV1RuntimeServiceClient_GetContainerEvents_Call struct { // - ctx context.Context // - in *v1.GetEventsRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) GetContainerEvents(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_GetContainerEvents_Call { - return &MockV1RuntimeServiceClient_GetContainerEvents_Call{Call: _e.mock.On("GetContainerEvents", +func (_e *Mockv1RuntimeServiceClient_Expecter) GetContainerEvents(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_GetContainerEvents_Call { + return &Mockv1RuntimeServiceClient_GetContainerEvents_Call{Call: _e.mock.On("GetContainerEvents", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_GetContainerEvents_Call) Run(run func(ctx context.Context, in *v1.GetEventsRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_GetContainerEvents_Call { +func (_c *Mockv1RuntimeServiceClient_GetContainerEvents_Call) Run(run func(ctx context.Context, in *v1.GetEventsRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_GetContainerEvents_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -607,18 +607,18 @@ func (_c *MockV1RuntimeServiceClient_GetContainerEvents_Call) Run(run func(ctx c return _c } -func (_c *MockV1RuntimeServiceClient_GetContainerEvents_Call) Return(_a0 grpc.ServerStreamingClient[v1.ContainerEventResponse], _a1 error) *MockV1RuntimeServiceClient_GetContainerEvents_Call { +func (_c *Mockv1RuntimeServiceClient_GetContainerEvents_Call) Return(_a0 grpc.ServerStreamingClient[v1.ContainerEventResponse], _a1 error) *Mockv1RuntimeServiceClient_GetContainerEvents_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_GetContainerEvents_Call) RunAndReturn(run func(context.Context, *v1.GetEventsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.ContainerEventResponse], error)) *MockV1RuntimeServiceClient_GetContainerEvents_Call { +func (_c *Mockv1RuntimeServiceClient_GetContainerEvents_Call) RunAndReturn(run func(context.Context, *v1.GetEventsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.ContainerEventResponse], error)) *Mockv1RuntimeServiceClient_GetContainerEvents_Call { _c.Call.Return(run) return _c } // ListContainerStats provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) ListContainerStats(ctx context.Context, in *v1.ListContainerStatsRequest, opts ...grpc.CallOption) (*v1.ListContainerStatsResponse, error) { +func (_m *Mockv1RuntimeServiceClient) ListContainerStats(ctx context.Context, in *v1.ListContainerStatsRequest, opts ...grpc.CallOption) (*v1.ListContainerStatsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -654,8 +654,8 @@ func (_m *MockV1RuntimeServiceClient) ListContainerStats(ctx context.Context, in return r0, r1 } -// MockV1RuntimeServiceClient_ListContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainerStats' -type MockV1RuntimeServiceClient_ListContainerStats_Call struct { +// Mockv1RuntimeServiceClient_ListContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainerStats' +type Mockv1RuntimeServiceClient_ListContainerStats_Call struct { *mock.Call } @@ -663,12 +663,12 @@ type MockV1RuntimeServiceClient_ListContainerStats_Call struct { // - ctx context.Context // - in *v1.ListContainerStatsRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) ListContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListContainerStats_Call { - return &MockV1RuntimeServiceClient_ListContainerStats_Call{Call: _e.mock.On("ListContainerStats", +func (_e *Mockv1RuntimeServiceClient_Expecter) ListContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_ListContainerStats_Call { + return &Mockv1RuntimeServiceClient_ListContainerStats_Call{Call: _e.mock.On("ListContainerStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_ListContainerStats_Call) Run(run func(ctx context.Context, in *v1.ListContainerStatsRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_ListContainerStats_Call { +func (_c *Mockv1RuntimeServiceClient_ListContainerStats_Call) Run(run func(ctx context.Context, in *v1.ListContainerStatsRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_ListContainerStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -681,18 +681,18 @@ func (_c *MockV1RuntimeServiceClient_ListContainerStats_Call) Run(run func(ctx c return _c } -func (_c *MockV1RuntimeServiceClient_ListContainerStats_Call) Return(_a0 *v1.ListContainerStatsResponse, _a1 error) *MockV1RuntimeServiceClient_ListContainerStats_Call { +func (_c *Mockv1RuntimeServiceClient_ListContainerStats_Call) Return(_a0 *v1.ListContainerStatsResponse, _a1 error) *Mockv1RuntimeServiceClient_ListContainerStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_ListContainerStats_Call) RunAndReturn(run func(context.Context, *v1.ListContainerStatsRequest, ...grpc.CallOption) (*v1.ListContainerStatsResponse, error)) *MockV1RuntimeServiceClient_ListContainerStats_Call { +func (_c *Mockv1RuntimeServiceClient_ListContainerStats_Call) RunAndReturn(run func(context.Context, *v1.ListContainerStatsRequest, ...grpc.CallOption) (*v1.ListContainerStatsResponse, error)) *Mockv1RuntimeServiceClient_ListContainerStats_Call { _c.Call.Return(run) return _c } // ListContainers provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) ListContainers(ctx context.Context, in *v1.ListContainersRequest, opts ...grpc.CallOption) (*v1.ListContainersResponse, error) { +func (_m *Mockv1RuntimeServiceClient) ListContainers(ctx context.Context, in *v1.ListContainersRequest, opts ...grpc.CallOption) (*v1.ListContainersResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -728,8 +728,8 @@ func (_m *MockV1RuntimeServiceClient) ListContainers(ctx context.Context, in *v1 return r0, r1 } -// MockV1RuntimeServiceClient_ListContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainers' -type MockV1RuntimeServiceClient_ListContainers_Call struct { +// Mockv1RuntimeServiceClient_ListContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainers' +type Mockv1RuntimeServiceClient_ListContainers_Call struct { *mock.Call } @@ -737,12 +737,12 @@ type MockV1RuntimeServiceClient_ListContainers_Call struct { // - ctx context.Context // - in *v1.ListContainersRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) ListContainers(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListContainers_Call { - return &MockV1RuntimeServiceClient_ListContainers_Call{Call: _e.mock.On("ListContainers", +func (_e *Mockv1RuntimeServiceClient_Expecter) ListContainers(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_ListContainers_Call { + return &Mockv1RuntimeServiceClient_ListContainers_Call{Call: _e.mock.On("ListContainers", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_ListContainers_Call) Run(run func(ctx context.Context, in *v1.ListContainersRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_ListContainers_Call { +func (_c *Mockv1RuntimeServiceClient_ListContainers_Call) Run(run func(ctx context.Context, in *v1.ListContainersRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_ListContainers_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -755,18 +755,18 @@ func (_c *MockV1RuntimeServiceClient_ListContainers_Call) Run(run func(ctx conte return _c } -func (_c *MockV1RuntimeServiceClient_ListContainers_Call) Return(_a0 *v1.ListContainersResponse, _a1 error) *MockV1RuntimeServiceClient_ListContainers_Call { +func (_c *Mockv1RuntimeServiceClient_ListContainers_Call) Return(_a0 *v1.ListContainersResponse, _a1 error) *Mockv1RuntimeServiceClient_ListContainers_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_ListContainers_Call) RunAndReturn(run func(context.Context, *v1.ListContainersRequest, ...grpc.CallOption) (*v1.ListContainersResponse, error)) *MockV1RuntimeServiceClient_ListContainers_Call { +func (_c *Mockv1RuntimeServiceClient_ListContainers_Call) RunAndReturn(run func(context.Context, *v1.ListContainersRequest, ...grpc.CallOption) (*v1.ListContainersResponse, error)) *Mockv1RuntimeServiceClient_ListContainers_Call { _c.Call.Return(run) return _c } // ListMetricDescriptors provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) ListMetricDescriptors(ctx context.Context, in *v1.ListMetricDescriptorsRequest, opts ...grpc.CallOption) (*v1.ListMetricDescriptorsResponse, error) { +func (_m *Mockv1RuntimeServiceClient) ListMetricDescriptors(ctx context.Context, in *v1.ListMetricDescriptorsRequest, opts ...grpc.CallOption) (*v1.ListMetricDescriptorsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -802,8 +802,8 @@ func (_m *MockV1RuntimeServiceClient) ListMetricDescriptors(ctx context.Context, return r0, r1 } -// MockV1RuntimeServiceClient_ListMetricDescriptors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListMetricDescriptors' -type MockV1RuntimeServiceClient_ListMetricDescriptors_Call struct { +// Mockv1RuntimeServiceClient_ListMetricDescriptors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListMetricDescriptors' +type Mockv1RuntimeServiceClient_ListMetricDescriptors_Call struct { *mock.Call } @@ -811,12 +811,12 @@ type MockV1RuntimeServiceClient_ListMetricDescriptors_Call struct { // - ctx context.Context // - in *v1.ListMetricDescriptorsRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) ListMetricDescriptors(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListMetricDescriptors_Call { - return &MockV1RuntimeServiceClient_ListMetricDescriptors_Call{Call: _e.mock.On("ListMetricDescriptors", +func (_e *Mockv1RuntimeServiceClient_Expecter) ListMetricDescriptors(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_ListMetricDescriptors_Call { + return &Mockv1RuntimeServiceClient_ListMetricDescriptors_Call{Call: _e.mock.On("ListMetricDescriptors", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_ListMetricDescriptors_Call) Run(run func(ctx context.Context, in *v1.ListMetricDescriptorsRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_ListMetricDescriptors_Call { +func (_c *Mockv1RuntimeServiceClient_ListMetricDescriptors_Call) Run(run func(ctx context.Context, in *v1.ListMetricDescriptorsRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_ListMetricDescriptors_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -829,18 +829,18 @@ func (_c *MockV1RuntimeServiceClient_ListMetricDescriptors_Call) Run(run func(ct return _c } -func (_c *MockV1RuntimeServiceClient_ListMetricDescriptors_Call) Return(_a0 *v1.ListMetricDescriptorsResponse, _a1 error) *MockV1RuntimeServiceClient_ListMetricDescriptors_Call { +func (_c *Mockv1RuntimeServiceClient_ListMetricDescriptors_Call) Return(_a0 *v1.ListMetricDescriptorsResponse, _a1 error) *Mockv1RuntimeServiceClient_ListMetricDescriptors_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_ListMetricDescriptors_Call) RunAndReturn(run func(context.Context, *v1.ListMetricDescriptorsRequest, ...grpc.CallOption) (*v1.ListMetricDescriptorsResponse, error)) *MockV1RuntimeServiceClient_ListMetricDescriptors_Call { +func (_c *Mockv1RuntimeServiceClient_ListMetricDescriptors_Call) RunAndReturn(run func(context.Context, *v1.ListMetricDescriptorsRequest, ...grpc.CallOption) (*v1.ListMetricDescriptorsResponse, error)) *Mockv1RuntimeServiceClient_ListMetricDescriptors_Call { _c.Call.Return(run) return _c } // ListPodSandbox provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) ListPodSandbox(ctx context.Context, in *v1.ListPodSandboxRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxResponse, error) { +func (_m *Mockv1RuntimeServiceClient) ListPodSandbox(ctx context.Context, in *v1.ListPodSandboxRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -876,8 +876,8 @@ func (_m *MockV1RuntimeServiceClient) ListPodSandbox(ctx context.Context, in *v1 return r0, r1 } -// MockV1RuntimeServiceClient_ListPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandbox' -type MockV1RuntimeServiceClient_ListPodSandbox_Call struct { +// Mockv1RuntimeServiceClient_ListPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandbox' +type Mockv1RuntimeServiceClient_ListPodSandbox_Call struct { *mock.Call } @@ -885,12 +885,12 @@ type MockV1RuntimeServiceClient_ListPodSandbox_Call struct { // - ctx context.Context // - in *v1.ListPodSandboxRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) ListPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListPodSandbox_Call { - return &MockV1RuntimeServiceClient_ListPodSandbox_Call{Call: _e.mock.On("ListPodSandbox", +func (_e *Mockv1RuntimeServiceClient_Expecter) ListPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_ListPodSandbox_Call { + return &Mockv1RuntimeServiceClient_ListPodSandbox_Call{Call: _e.mock.On("ListPodSandbox", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_ListPodSandbox_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_ListPodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_ListPodSandbox_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_ListPodSandbox_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -903,18 +903,18 @@ func (_c *MockV1RuntimeServiceClient_ListPodSandbox_Call) Run(run func(ctx conte return _c } -func (_c *MockV1RuntimeServiceClient_ListPodSandbox_Call) Return(_a0 *v1.ListPodSandboxResponse, _a1 error) *MockV1RuntimeServiceClient_ListPodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_ListPodSandbox_Call) Return(_a0 *v1.ListPodSandboxResponse, _a1 error) *Mockv1RuntimeServiceClient_ListPodSandbox_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_ListPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxRequest, ...grpc.CallOption) (*v1.ListPodSandboxResponse, error)) *MockV1RuntimeServiceClient_ListPodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_ListPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxRequest, ...grpc.CallOption) (*v1.ListPodSandboxResponse, error)) *Mockv1RuntimeServiceClient_ListPodSandbox_Call { _c.Call.Return(run) return _c } // ListPodSandboxMetrics provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) ListPodSandboxMetrics(ctx context.Context, in *v1.ListPodSandboxMetricsRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxMetricsResponse, error) { +func (_m *Mockv1RuntimeServiceClient) ListPodSandboxMetrics(ctx context.Context, in *v1.ListPodSandboxMetricsRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxMetricsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -950,8 +950,8 @@ func (_m *MockV1RuntimeServiceClient) ListPodSandboxMetrics(ctx context.Context, return r0, r1 } -// MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxMetrics' -type MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call struct { +// Mockv1RuntimeServiceClient_ListPodSandboxMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxMetrics' +type Mockv1RuntimeServiceClient_ListPodSandboxMetrics_Call struct { *mock.Call } @@ -959,12 +959,12 @@ type MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call struct { // - ctx context.Context // - in *v1.ListPodSandboxMetricsRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) ListPodSandboxMetrics(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call { - return &MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call{Call: _e.mock.On("ListPodSandboxMetrics", +func (_e *Mockv1RuntimeServiceClient_Expecter) ListPodSandboxMetrics(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_ListPodSandboxMetrics_Call { + return &Mockv1RuntimeServiceClient_ListPodSandboxMetrics_Call{Call: _e.mock.On("ListPodSandboxMetrics", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxMetricsRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call { +func (_c *Mockv1RuntimeServiceClient_ListPodSandboxMetrics_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxMetricsRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_ListPodSandboxMetrics_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -977,18 +977,18 @@ func (_c *MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call) Run(run func(ct return _c } -func (_c *MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call) Return(_a0 *v1.ListPodSandboxMetricsResponse, _a1 error) *MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call { +func (_c *Mockv1RuntimeServiceClient_ListPodSandboxMetrics_Call) Return(_a0 *v1.ListPodSandboxMetricsResponse, _a1 error) *Mockv1RuntimeServiceClient_ListPodSandboxMetrics_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxMetricsRequest, ...grpc.CallOption) (*v1.ListPodSandboxMetricsResponse, error)) *MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call { +func (_c *Mockv1RuntimeServiceClient_ListPodSandboxMetrics_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxMetricsRequest, ...grpc.CallOption) (*v1.ListPodSandboxMetricsResponse, error)) *Mockv1RuntimeServiceClient_ListPodSandboxMetrics_Call { _c.Call.Return(run) return _c } // ListPodSandboxStats provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) ListPodSandboxStats(ctx context.Context, in *v1.ListPodSandboxStatsRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxStatsResponse, error) { +func (_m *Mockv1RuntimeServiceClient) ListPodSandboxStats(ctx context.Context, in *v1.ListPodSandboxStatsRequest, opts ...grpc.CallOption) (*v1.ListPodSandboxStatsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1024,8 +1024,8 @@ func (_m *MockV1RuntimeServiceClient) ListPodSandboxStats(ctx context.Context, i return r0, r1 } -// MockV1RuntimeServiceClient_ListPodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxStats' -type MockV1RuntimeServiceClient_ListPodSandboxStats_Call struct { +// Mockv1RuntimeServiceClient_ListPodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxStats' +type Mockv1RuntimeServiceClient_ListPodSandboxStats_Call struct { *mock.Call } @@ -1033,12 +1033,12 @@ type MockV1RuntimeServiceClient_ListPodSandboxStats_Call struct { // - ctx context.Context // - in *v1.ListPodSandboxStatsRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) ListPodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListPodSandboxStats_Call { - return &MockV1RuntimeServiceClient_ListPodSandboxStats_Call{Call: _e.mock.On("ListPodSandboxStats", +func (_e *Mockv1RuntimeServiceClient_Expecter) ListPodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_ListPodSandboxStats_Call { + return &Mockv1RuntimeServiceClient_ListPodSandboxStats_Call{Call: _e.mock.On("ListPodSandboxStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_ListPodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxStatsRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_ListPodSandboxStats_Call { +func (_c *Mockv1RuntimeServiceClient_ListPodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.ListPodSandboxStatsRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_ListPodSandboxStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1051,18 +1051,18 @@ func (_c *MockV1RuntimeServiceClient_ListPodSandboxStats_Call) Run(run func(ctx return _c } -func (_c *MockV1RuntimeServiceClient_ListPodSandboxStats_Call) Return(_a0 *v1.ListPodSandboxStatsResponse, _a1 error) *MockV1RuntimeServiceClient_ListPodSandboxStats_Call { +func (_c *Mockv1RuntimeServiceClient_ListPodSandboxStats_Call) Return(_a0 *v1.ListPodSandboxStatsResponse, _a1 error) *Mockv1RuntimeServiceClient_ListPodSandboxStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_ListPodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxStatsRequest, ...grpc.CallOption) (*v1.ListPodSandboxStatsResponse, error)) *MockV1RuntimeServiceClient_ListPodSandboxStats_Call { +func (_c *Mockv1RuntimeServiceClient_ListPodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.ListPodSandboxStatsRequest, ...grpc.CallOption) (*v1.ListPodSandboxStatsResponse, error)) *Mockv1RuntimeServiceClient_ListPodSandboxStats_Call { _c.Call.Return(run) return _c } // PodSandboxStats provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) PodSandboxStats(ctx context.Context, in *v1.PodSandboxStatsRequest, opts ...grpc.CallOption) (*v1.PodSandboxStatsResponse, error) { +func (_m *Mockv1RuntimeServiceClient) PodSandboxStats(ctx context.Context, in *v1.PodSandboxStatsRequest, opts ...grpc.CallOption) (*v1.PodSandboxStatsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1098,8 +1098,8 @@ func (_m *MockV1RuntimeServiceClient) PodSandboxStats(ctx context.Context, in *v return r0, r1 } -// MockV1RuntimeServiceClient_PodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStats' -type MockV1RuntimeServiceClient_PodSandboxStats_Call struct { +// Mockv1RuntimeServiceClient_PodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStats' +type Mockv1RuntimeServiceClient_PodSandboxStats_Call struct { *mock.Call } @@ -1107,12 +1107,12 @@ type MockV1RuntimeServiceClient_PodSandboxStats_Call struct { // - ctx context.Context // - in *v1.PodSandboxStatsRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) PodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_PodSandboxStats_Call { - return &MockV1RuntimeServiceClient_PodSandboxStats_Call{Call: _e.mock.On("PodSandboxStats", +func (_e *Mockv1RuntimeServiceClient_Expecter) PodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_PodSandboxStats_Call { + return &Mockv1RuntimeServiceClient_PodSandboxStats_Call{Call: _e.mock.On("PodSandboxStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_PodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.PodSandboxStatsRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_PodSandboxStats_Call { +func (_c *Mockv1RuntimeServiceClient_PodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.PodSandboxStatsRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_PodSandboxStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1125,18 +1125,18 @@ func (_c *MockV1RuntimeServiceClient_PodSandboxStats_Call) Run(run func(ctx cont return _c } -func (_c *MockV1RuntimeServiceClient_PodSandboxStats_Call) Return(_a0 *v1.PodSandboxStatsResponse, _a1 error) *MockV1RuntimeServiceClient_PodSandboxStats_Call { +func (_c *Mockv1RuntimeServiceClient_PodSandboxStats_Call) Return(_a0 *v1.PodSandboxStatsResponse, _a1 error) *Mockv1RuntimeServiceClient_PodSandboxStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_PodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.PodSandboxStatsRequest, ...grpc.CallOption) (*v1.PodSandboxStatsResponse, error)) *MockV1RuntimeServiceClient_PodSandboxStats_Call { +func (_c *Mockv1RuntimeServiceClient_PodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.PodSandboxStatsRequest, ...grpc.CallOption) (*v1.PodSandboxStatsResponse, error)) *Mockv1RuntimeServiceClient_PodSandboxStats_Call { _c.Call.Return(run) return _c } // PodSandboxStatus provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) PodSandboxStatus(ctx context.Context, in *v1.PodSandboxStatusRequest, opts ...grpc.CallOption) (*v1.PodSandboxStatusResponse, error) { +func (_m *Mockv1RuntimeServiceClient) PodSandboxStatus(ctx context.Context, in *v1.PodSandboxStatusRequest, opts ...grpc.CallOption) (*v1.PodSandboxStatusResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1172,8 +1172,8 @@ func (_m *MockV1RuntimeServiceClient) PodSandboxStatus(ctx context.Context, in * return r0, r1 } -// MockV1RuntimeServiceClient_PodSandboxStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStatus' -type MockV1RuntimeServiceClient_PodSandboxStatus_Call struct { +// Mockv1RuntimeServiceClient_PodSandboxStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStatus' +type Mockv1RuntimeServiceClient_PodSandboxStatus_Call struct { *mock.Call } @@ -1181,12 +1181,12 @@ type MockV1RuntimeServiceClient_PodSandboxStatus_Call struct { // - ctx context.Context // - in *v1.PodSandboxStatusRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) PodSandboxStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_PodSandboxStatus_Call { - return &MockV1RuntimeServiceClient_PodSandboxStatus_Call{Call: _e.mock.On("PodSandboxStatus", +func (_e *Mockv1RuntimeServiceClient_Expecter) PodSandboxStatus(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_PodSandboxStatus_Call { + return &Mockv1RuntimeServiceClient_PodSandboxStatus_Call{Call: _e.mock.On("PodSandboxStatus", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_PodSandboxStatus_Call) Run(run func(ctx context.Context, in *v1.PodSandboxStatusRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_PodSandboxStatus_Call { +func (_c *Mockv1RuntimeServiceClient_PodSandboxStatus_Call) Run(run func(ctx context.Context, in *v1.PodSandboxStatusRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_PodSandboxStatus_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1199,18 +1199,18 @@ func (_c *MockV1RuntimeServiceClient_PodSandboxStatus_Call) Run(run func(ctx con return _c } -func (_c *MockV1RuntimeServiceClient_PodSandboxStatus_Call) Return(_a0 *v1.PodSandboxStatusResponse, _a1 error) *MockV1RuntimeServiceClient_PodSandboxStatus_Call { +func (_c *Mockv1RuntimeServiceClient_PodSandboxStatus_Call) Return(_a0 *v1.PodSandboxStatusResponse, _a1 error) *Mockv1RuntimeServiceClient_PodSandboxStatus_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_PodSandboxStatus_Call) RunAndReturn(run func(context.Context, *v1.PodSandboxStatusRequest, ...grpc.CallOption) (*v1.PodSandboxStatusResponse, error)) *MockV1RuntimeServiceClient_PodSandboxStatus_Call { +func (_c *Mockv1RuntimeServiceClient_PodSandboxStatus_Call) RunAndReturn(run func(context.Context, *v1.PodSandboxStatusRequest, ...grpc.CallOption) (*v1.PodSandboxStatusResponse, error)) *Mockv1RuntimeServiceClient_PodSandboxStatus_Call { _c.Call.Return(run) return _c } // PortForward provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) PortForward(ctx context.Context, in *v1.PortForwardRequest, opts ...grpc.CallOption) (*v1.PortForwardResponse, error) { +func (_m *Mockv1RuntimeServiceClient) PortForward(ctx context.Context, in *v1.PortForwardRequest, opts ...grpc.CallOption) (*v1.PortForwardResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1246,8 +1246,8 @@ func (_m *MockV1RuntimeServiceClient) PortForward(ctx context.Context, in *v1.Po return r0, r1 } -// MockV1RuntimeServiceClient_PortForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PortForward' -type MockV1RuntimeServiceClient_PortForward_Call struct { +// Mockv1RuntimeServiceClient_PortForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PortForward' +type Mockv1RuntimeServiceClient_PortForward_Call struct { *mock.Call } @@ -1255,12 +1255,12 @@ type MockV1RuntimeServiceClient_PortForward_Call struct { // - ctx context.Context // - in *v1.PortForwardRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) PortForward(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_PortForward_Call { - return &MockV1RuntimeServiceClient_PortForward_Call{Call: _e.mock.On("PortForward", +func (_e *Mockv1RuntimeServiceClient_Expecter) PortForward(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_PortForward_Call { + return &Mockv1RuntimeServiceClient_PortForward_Call{Call: _e.mock.On("PortForward", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_PortForward_Call) Run(run func(ctx context.Context, in *v1.PortForwardRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_PortForward_Call { +func (_c *Mockv1RuntimeServiceClient_PortForward_Call) Run(run func(ctx context.Context, in *v1.PortForwardRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_PortForward_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1273,18 +1273,18 @@ func (_c *MockV1RuntimeServiceClient_PortForward_Call) Run(run func(ctx context. return _c } -func (_c *MockV1RuntimeServiceClient_PortForward_Call) Return(_a0 *v1.PortForwardResponse, _a1 error) *MockV1RuntimeServiceClient_PortForward_Call { +func (_c *Mockv1RuntimeServiceClient_PortForward_Call) Return(_a0 *v1.PortForwardResponse, _a1 error) *Mockv1RuntimeServiceClient_PortForward_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_PortForward_Call) RunAndReturn(run func(context.Context, *v1.PortForwardRequest, ...grpc.CallOption) (*v1.PortForwardResponse, error)) *MockV1RuntimeServiceClient_PortForward_Call { +func (_c *Mockv1RuntimeServiceClient_PortForward_Call) RunAndReturn(run func(context.Context, *v1.PortForwardRequest, ...grpc.CallOption) (*v1.PortForwardResponse, error)) *Mockv1RuntimeServiceClient_PortForward_Call { _c.Call.Return(run) return _c } // RemoveContainer provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) RemoveContainer(ctx context.Context, in *v1.RemoveContainerRequest, opts ...grpc.CallOption) (*v1.RemoveContainerResponse, error) { +func (_m *Mockv1RuntimeServiceClient) RemoveContainer(ctx context.Context, in *v1.RemoveContainerRequest, opts ...grpc.CallOption) (*v1.RemoveContainerResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1320,8 +1320,8 @@ func (_m *MockV1RuntimeServiceClient) RemoveContainer(ctx context.Context, in *v return r0, r1 } -// MockV1RuntimeServiceClient_RemoveContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveContainer' -type MockV1RuntimeServiceClient_RemoveContainer_Call struct { +// Mockv1RuntimeServiceClient_RemoveContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveContainer' +type Mockv1RuntimeServiceClient_RemoveContainer_Call struct { *mock.Call } @@ -1329,12 +1329,12 @@ type MockV1RuntimeServiceClient_RemoveContainer_Call struct { // - ctx context.Context // - in *v1.RemoveContainerRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) RemoveContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_RemoveContainer_Call { - return &MockV1RuntimeServiceClient_RemoveContainer_Call{Call: _e.mock.On("RemoveContainer", +func (_e *Mockv1RuntimeServiceClient_Expecter) RemoveContainer(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_RemoveContainer_Call { + return &Mockv1RuntimeServiceClient_RemoveContainer_Call{Call: _e.mock.On("RemoveContainer", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_RemoveContainer_Call) Run(run func(ctx context.Context, in *v1.RemoveContainerRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_RemoveContainer_Call { +func (_c *Mockv1RuntimeServiceClient_RemoveContainer_Call) Run(run func(ctx context.Context, in *v1.RemoveContainerRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_RemoveContainer_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1347,18 +1347,18 @@ func (_c *MockV1RuntimeServiceClient_RemoveContainer_Call) Run(run func(ctx cont return _c } -func (_c *MockV1RuntimeServiceClient_RemoveContainer_Call) Return(_a0 *v1.RemoveContainerResponse, _a1 error) *MockV1RuntimeServiceClient_RemoveContainer_Call { +func (_c *Mockv1RuntimeServiceClient_RemoveContainer_Call) Return(_a0 *v1.RemoveContainerResponse, _a1 error) *Mockv1RuntimeServiceClient_RemoveContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_RemoveContainer_Call) RunAndReturn(run func(context.Context, *v1.RemoveContainerRequest, ...grpc.CallOption) (*v1.RemoveContainerResponse, error)) *MockV1RuntimeServiceClient_RemoveContainer_Call { +func (_c *Mockv1RuntimeServiceClient_RemoveContainer_Call) RunAndReturn(run func(context.Context, *v1.RemoveContainerRequest, ...grpc.CallOption) (*v1.RemoveContainerResponse, error)) *Mockv1RuntimeServiceClient_RemoveContainer_Call { _c.Call.Return(run) return _c } // RemovePodSandbox provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) RemovePodSandbox(ctx context.Context, in *v1.RemovePodSandboxRequest, opts ...grpc.CallOption) (*v1.RemovePodSandboxResponse, error) { +func (_m *Mockv1RuntimeServiceClient) RemovePodSandbox(ctx context.Context, in *v1.RemovePodSandboxRequest, opts ...grpc.CallOption) (*v1.RemovePodSandboxResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1394,8 +1394,8 @@ func (_m *MockV1RuntimeServiceClient) RemovePodSandbox(ctx context.Context, in * return r0, r1 } -// MockV1RuntimeServiceClient_RemovePodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePodSandbox' -type MockV1RuntimeServiceClient_RemovePodSandbox_Call struct { +// Mockv1RuntimeServiceClient_RemovePodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePodSandbox' +type Mockv1RuntimeServiceClient_RemovePodSandbox_Call struct { *mock.Call } @@ -1403,12 +1403,12 @@ type MockV1RuntimeServiceClient_RemovePodSandbox_Call struct { // - ctx context.Context // - in *v1.RemovePodSandboxRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) RemovePodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_RemovePodSandbox_Call { - return &MockV1RuntimeServiceClient_RemovePodSandbox_Call{Call: _e.mock.On("RemovePodSandbox", +func (_e *Mockv1RuntimeServiceClient_Expecter) RemovePodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_RemovePodSandbox_Call { + return &Mockv1RuntimeServiceClient_RemovePodSandbox_Call{Call: _e.mock.On("RemovePodSandbox", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_RemovePodSandbox_Call) Run(run func(ctx context.Context, in *v1.RemovePodSandboxRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_RemovePodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_RemovePodSandbox_Call) Run(run func(ctx context.Context, in *v1.RemovePodSandboxRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_RemovePodSandbox_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1421,18 +1421,18 @@ func (_c *MockV1RuntimeServiceClient_RemovePodSandbox_Call) Run(run func(ctx con return _c } -func (_c *MockV1RuntimeServiceClient_RemovePodSandbox_Call) Return(_a0 *v1.RemovePodSandboxResponse, _a1 error) *MockV1RuntimeServiceClient_RemovePodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_RemovePodSandbox_Call) Return(_a0 *v1.RemovePodSandboxResponse, _a1 error) *Mockv1RuntimeServiceClient_RemovePodSandbox_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_RemovePodSandbox_Call) RunAndReturn(run func(context.Context, *v1.RemovePodSandboxRequest, ...grpc.CallOption) (*v1.RemovePodSandboxResponse, error)) *MockV1RuntimeServiceClient_RemovePodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_RemovePodSandbox_Call) RunAndReturn(run func(context.Context, *v1.RemovePodSandboxRequest, ...grpc.CallOption) (*v1.RemovePodSandboxResponse, error)) *Mockv1RuntimeServiceClient_RemovePodSandbox_Call { _c.Call.Return(run) return _c } // ReopenContainerLog provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) ReopenContainerLog(ctx context.Context, in *v1.ReopenContainerLogRequest, opts ...grpc.CallOption) (*v1.ReopenContainerLogResponse, error) { +func (_m *Mockv1RuntimeServiceClient) ReopenContainerLog(ctx context.Context, in *v1.ReopenContainerLogRequest, opts ...grpc.CallOption) (*v1.ReopenContainerLogResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1468,8 +1468,8 @@ func (_m *MockV1RuntimeServiceClient) ReopenContainerLog(ctx context.Context, in return r0, r1 } -// MockV1RuntimeServiceClient_ReopenContainerLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReopenContainerLog' -type MockV1RuntimeServiceClient_ReopenContainerLog_Call struct { +// Mockv1RuntimeServiceClient_ReopenContainerLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReopenContainerLog' +type Mockv1RuntimeServiceClient_ReopenContainerLog_Call struct { *mock.Call } @@ -1477,12 +1477,12 @@ type MockV1RuntimeServiceClient_ReopenContainerLog_Call struct { // - ctx context.Context // - in *v1.ReopenContainerLogRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) ReopenContainerLog(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ReopenContainerLog_Call { - return &MockV1RuntimeServiceClient_ReopenContainerLog_Call{Call: _e.mock.On("ReopenContainerLog", +func (_e *Mockv1RuntimeServiceClient_Expecter) ReopenContainerLog(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_ReopenContainerLog_Call { + return &Mockv1RuntimeServiceClient_ReopenContainerLog_Call{Call: _e.mock.On("ReopenContainerLog", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_ReopenContainerLog_Call) Run(run func(ctx context.Context, in *v1.ReopenContainerLogRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_ReopenContainerLog_Call { +func (_c *Mockv1RuntimeServiceClient_ReopenContainerLog_Call) Run(run func(ctx context.Context, in *v1.ReopenContainerLogRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_ReopenContainerLog_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1495,18 +1495,18 @@ func (_c *MockV1RuntimeServiceClient_ReopenContainerLog_Call) Run(run func(ctx c return _c } -func (_c *MockV1RuntimeServiceClient_ReopenContainerLog_Call) Return(_a0 *v1.ReopenContainerLogResponse, _a1 error) *MockV1RuntimeServiceClient_ReopenContainerLog_Call { +func (_c *Mockv1RuntimeServiceClient_ReopenContainerLog_Call) Return(_a0 *v1.ReopenContainerLogResponse, _a1 error) *Mockv1RuntimeServiceClient_ReopenContainerLog_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_ReopenContainerLog_Call) RunAndReturn(run func(context.Context, *v1.ReopenContainerLogRequest, ...grpc.CallOption) (*v1.ReopenContainerLogResponse, error)) *MockV1RuntimeServiceClient_ReopenContainerLog_Call { +func (_c *Mockv1RuntimeServiceClient_ReopenContainerLog_Call) RunAndReturn(run func(context.Context, *v1.ReopenContainerLogRequest, ...grpc.CallOption) (*v1.ReopenContainerLogResponse, error)) *Mockv1RuntimeServiceClient_ReopenContainerLog_Call { _c.Call.Return(run) return _c } // RunPodSandbox provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) RunPodSandbox(ctx context.Context, in *v1.RunPodSandboxRequest, opts ...grpc.CallOption) (*v1.RunPodSandboxResponse, error) { +func (_m *Mockv1RuntimeServiceClient) RunPodSandbox(ctx context.Context, in *v1.RunPodSandboxRequest, opts ...grpc.CallOption) (*v1.RunPodSandboxResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1542,8 +1542,8 @@ func (_m *MockV1RuntimeServiceClient) RunPodSandbox(ctx context.Context, in *v1. return r0, r1 } -// MockV1RuntimeServiceClient_RunPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunPodSandbox' -type MockV1RuntimeServiceClient_RunPodSandbox_Call struct { +// Mockv1RuntimeServiceClient_RunPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunPodSandbox' +type Mockv1RuntimeServiceClient_RunPodSandbox_Call struct { *mock.Call } @@ -1551,12 +1551,12 @@ type MockV1RuntimeServiceClient_RunPodSandbox_Call struct { // - ctx context.Context // - in *v1.RunPodSandboxRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) RunPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_RunPodSandbox_Call { - return &MockV1RuntimeServiceClient_RunPodSandbox_Call{Call: _e.mock.On("RunPodSandbox", +func (_e *Mockv1RuntimeServiceClient_Expecter) RunPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_RunPodSandbox_Call { + return &Mockv1RuntimeServiceClient_RunPodSandbox_Call{Call: _e.mock.On("RunPodSandbox", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_RunPodSandbox_Call) Run(run func(ctx context.Context, in *v1.RunPodSandboxRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_RunPodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_RunPodSandbox_Call) Run(run func(ctx context.Context, in *v1.RunPodSandboxRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_RunPodSandbox_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1569,18 +1569,18 @@ func (_c *MockV1RuntimeServiceClient_RunPodSandbox_Call) Run(run func(ctx contex return _c } -func (_c *MockV1RuntimeServiceClient_RunPodSandbox_Call) Return(_a0 *v1.RunPodSandboxResponse, _a1 error) *MockV1RuntimeServiceClient_RunPodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_RunPodSandbox_Call) Return(_a0 *v1.RunPodSandboxResponse, _a1 error) *Mockv1RuntimeServiceClient_RunPodSandbox_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_RunPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.RunPodSandboxRequest, ...grpc.CallOption) (*v1.RunPodSandboxResponse, error)) *MockV1RuntimeServiceClient_RunPodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_RunPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.RunPodSandboxRequest, ...grpc.CallOption) (*v1.RunPodSandboxResponse, error)) *Mockv1RuntimeServiceClient_RunPodSandbox_Call { _c.Call.Return(run) return _c } // RuntimeConfig provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) RuntimeConfig(ctx context.Context, in *v1.RuntimeConfigRequest, opts ...grpc.CallOption) (*v1.RuntimeConfigResponse, error) { +func (_m *Mockv1RuntimeServiceClient) RuntimeConfig(ctx context.Context, in *v1.RuntimeConfigRequest, opts ...grpc.CallOption) (*v1.RuntimeConfigResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1616,8 +1616,8 @@ func (_m *MockV1RuntimeServiceClient) RuntimeConfig(ctx context.Context, in *v1. return r0, r1 } -// MockV1RuntimeServiceClient_RuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RuntimeConfig' -type MockV1RuntimeServiceClient_RuntimeConfig_Call struct { +// Mockv1RuntimeServiceClient_RuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RuntimeConfig' +type Mockv1RuntimeServiceClient_RuntimeConfig_Call struct { *mock.Call } @@ -1625,12 +1625,12 @@ type MockV1RuntimeServiceClient_RuntimeConfig_Call struct { // - ctx context.Context // - in *v1.RuntimeConfigRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) RuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_RuntimeConfig_Call { - return &MockV1RuntimeServiceClient_RuntimeConfig_Call{Call: _e.mock.On("RuntimeConfig", +func (_e *Mockv1RuntimeServiceClient_Expecter) RuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_RuntimeConfig_Call { + return &Mockv1RuntimeServiceClient_RuntimeConfig_Call{Call: _e.mock.On("RuntimeConfig", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_RuntimeConfig_Call) Run(run func(ctx context.Context, in *v1.RuntimeConfigRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_RuntimeConfig_Call { +func (_c *Mockv1RuntimeServiceClient_RuntimeConfig_Call) Run(run func(ctx context.Context, in *v1.RuntimeConfigRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_RuntimeConfig_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1643,18 +1643,18 @@ func (_c *MockV1RuntimeServiceClient_RuntimeConfig_Call) Run(run func(ctx contex return _c } -func (_c *MockV1RuntimeServiceClient_RuntimeConfig_Call) Return(_a0 *v1.RuntimeConfigResponse, _a1 error) *MockV1RuntimeServiceClient_RuntimeConfig_Call { +func (_c *Mockv1RuntimeServiceClient_RuntimeConfig_Call) Return(_a0 *v1.RuntimeConfigResponse, _a1 error) *Mockv1RuntimeServiceClient_RuntimeConfig_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_RuntimeConfig_Call) RunAndReturn(run func(context.Context, *v1.RuntimeConfigRequest, ...grpc.CallOption) (*v1.RuntimeConfigResponse, error)) *MockV1RuntimeServiceClient_RuntimeConfig_Call { +func (_c *Mockv1RuntimeServiceClient_RuntimeConfig_Call) RunAndReturn(run func(context.Context, *v1.RuntimeConfigRequest, ...grpc.CallOption) (*v1.RuntimeConfigResponse, error)) *Mockv1RuntimeServiceClient_RuntimeConfig_Call { _c.Call.Return(run) return _c } // StartContainer provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) StartContainer(ctx context.Context, in *v1.StartContainerRequest, opts ...grpc.CallOption) (*v1.StartContainerResponse, error) { +func (_m *Mockv1RuntimeServiceClient) StartContainer(ctx context.Context, in *v1.StartContainerRequest, opts ...grpc.CallOption) (*v1.StartContainerResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1690,8 +1690,8 @@ func (_m *MockV1RuntimeServiceClient) StartContainer(ctx context.Context, in *v1 return r0, r1 } -// MockV1RuntimeServiceClient_StartContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartContainer' -type MockV1RuntimeServiceClient_StartContainer_Call struct { +// Mockv1RuntimeServiceClient_StartContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartContainer' +type Mockv1RuntimeServiceClient_StartContainer_Call struct { *mock.Call } @@ -1699,12 +1699,12 @@ type MockV1RuntimeServiceClient_StartContainer_Call struct { // - ctx context.Context // - in *v1.StartContainerRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) StartContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StartContainer_Call { - return &MockV1RuntimeServiceClient_StartContainer_Call{Call: _e.mock.On("StartContainer", +func (_e *Mockv1RuntimeServiceClient_Expecter) StartContainer(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_StartContainer_Call { + return &Mockv1RuntimeServiceClient_StartContainer_Call{Call: _e.mock.On("StartContainer", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_StartContainer_Call) Run(run func(ctx context.Context, in *v1.StartContainerRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_StartContainer_Call { +func (_c *Mockv1RuntimeServiceClient_StartContainer_Call) Run(run func(ctx context.Context, in *v1.StartContainerRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_StartContainer_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1717,18 +1717,18 @@ func (_c *MockV1RuntimeServiceClient_StartContainer_Call) Run(run func(ctx conte return _c } -func (_c *MockV1RuntimeServiceClient_StartContainer_Call) Return(_a0 *v1.StartContainerResponse, _a1 error) *MockV1RuntimeServiceClient_StartContainer_Call { +func (_c *Mockv1RuntimeServiceClient_StartContainer_Call) Return(_a0 *v1.StartContainerResponse, _a1 error) *Mockv1RuntimeServiceClient_StartContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_StartContainer_Call) RunAndReturn(run func(context.Context, *v1.StartContainerRequest, ...grpc.CallOption) (*v1.StartContainerResponse, error)) *MockV1RuntimeServiceClient_StartContainer_Call { +func (_c *Mockv1RuntimeServiceClient_StartContainer_Call) RunAndReturn(run func(context.Context, *v1.StartContainerRequest, ...grpc.CallOption) (*v1.StartContainerResponse, error)) *Mockv1RuntimeServiceClient_StartContainer_Call { _c.Call.Return(run) return _c } // Status provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) Status(ctx context.Context, in *v1.StatusRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error) { +func (_m *Mockv1RuntimeServiceClient) Status(ctx context.Context, in *v1.StatusRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1764,8 +1764,8 @@ func (_m *MockV1RuntimeServiceClient) Status(ctx context.Context, in *v1.StatusR return r0, r1 } -// MockV1RuntimeServiceClient_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status' -type MockV1RuntimeServiceClient_Status_Call struct { +// Mockv1RuntimeServiceClient_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status' +type Mockv1RuntimeServiceClient_Status_Call struct { *mock.Call } @@ -1773,12 +1773,12 @@ type MockV1RuntimeServiceClient_Status_Call struct { // - ctx context.Context // - in *v1.StatusRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) Status(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_Status_Call { - return &MockV1RuntimeServiceClient_Status_Call{Call: _e.mock.On("Status", +func (_e *Mockv1RuntimeServiceClient_Expecter) Status(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_Status_Call { + return &Mockv1RuntimeServiceClient_Status_Call{Call: _e.mock.On("Status", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_Status_Call) Run(run func(ctx context.Context, in *v1.StatusRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_Status_Call { +func (_c *Mockv1RuntimeServiceClient_Status_Call) Run(run func(ctx context.Context, in *v1.StatusRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_Status_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1791,18 +1791,18 @@ func (_c *MockV1RuntimeServiceClient_Status_Call) Run(run func(ctx context.Conte return _c } -func (_c *MockV1RuntimeServiceClient_Status_Call) Return(_a0 *v1.StatusResponse, _a1 error) *MockV1RuntimeServiceClient_Status_Call { +func (_c *Mockv1RuntimeServiceClient_Status_Call) Return(_a0 *v1.StatusResponse, _a1 error) *Mockv1RuntimeServiceClient_Status_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_Status_Call) RunAndReturn(run func(context.Context, *v1.StatusRequest, ...grpc.CallOption) (*v1.StatusResponse, error)) *MockV1RuntimeServiceClient_Status_Call { +func (_c *Mockv1RuntimeServiceClient_Status_Call) RunAndReturn(run func(context.Context, *v1.StatusRequest, ...grpc.CallOption) (*v1.StatusResponse, error)) *Mockv1RuntimeServiceClient_Status_Call { _c.Call.Return(run) return _c } // StopContainer provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) StopContainer(ctx context.Context, in *v1.StopContainerRequest, opts ...grpc.CallOption) (*v1.StopContainerResponse, error) { +func (_m *Mockv1RuntimeServiceClient) StopContainer(ctx context.Context, in *v1.StopContainerRequest, opts ...grpc.CallOption) (*v1.StopContainerResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1838,8 +1838,8 @@ func (_m *MockV1RuntimeServiceClient) StopContainer(ctx context.Context, in *v1. return r0, r1 } -// MockV1RuntimeServiceClient_StopContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopContainer' -type MockV1RuntimeServiceClient_StopContainer_Call struct { +// Mockv1RuntimeServiceClient_StopContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopContainer' +type Mockv1RuntimeServiceClient_StopContainer_Call struct { *mock.Call } @@ -1847,12 +1847,12 @@ type MockV1RuntimeServiceClient_StopContainer_Call struct { // - ctx context.Context // - in *v1.StopContainerRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) StopContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StopContainer_Call { - return &MockV1RuntimeServiceClient_StopContainer_Call{Call: _e.mock.On("StopContainer", +func (_e *Mockv1RuntimeServiceClient_Expecter) StopContainer(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_StopContainer_Call { + return &Mockv1RuntimeServiceClient_StopContainer_Call{Call: _e.mock.On("StopContainer", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_StopContainer_Call) Run(run func(ctx context.Context, in *v1.StopContainerRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_StopContainer_Call { +func (_c *Mockv1RuntimeServiceClient_StopContainer_Call) Run(run func(ctx context.Context, in *v1.StopContainerRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_StopContainer_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1865,18 +1865,18 @@ func (_c *MockV1RuntimeServiceClient_StopContainer_Call) Run(run func(ctx contex return _c } -func (_c *MockV1RuntimeServiceClient_StopContainer_Call) Return(_a0 *v1.StopContainerResponse, _a1 error) *MockV1RuntimeServiceClient_StopContainer_Call { +func (_c *Mockv1RuntimeServiceClient_StopContainer_Call) Return(_a0 *v1.StopContainerResponse, _a1 error) *Mockv1RuntimeServiceClient_StopContainer_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_StopContainer_Call) RunAndReturn(run func(context.Context, *v1.StopContainerRequest, ...grpc.CallOption) (*v1.StopContainerResponse, error)) *MockV1RuntimeServiceClient_StopContainer_Call { +func (_c *Mockv1RuntimeServiceClient_StopContainer_Call) RunAndReturn(run func(context.Context, *v1.StopContainerRequest, ...grpc.CallOption) (*v1.StopContainerResponse, error)) *Mockv1RuntimeServiceClient_StopContainer_Call { _c.Call.Return(run) return _c } // StopPodSandbox provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) StopPodSandbox(ctx context.Context, in *v1.StopPodSandboxRequest, opts ...grpc.CallOption) (*v1.StopPodSandboxResponse, error) { +func (_m *Mockv1RuntimeServiceClient) StopPodSandbox(ctx context.Context, in *v1.StopPodSandboxRequest, opts ...grpc.CallOption) (*v1.StopPodSandboxResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1912,8 +1912,8 @@ func (_m *MockV1RuntimeServiceClient) StopPodSandbox(ctx context.Context, in *v1 return r0, r1 } -// MockV1RuntimeServiceClient_StopPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopPodSandbox' -type MockV1RuntimeServiceClient_StopPodSandbox_Call struct { +// Mockv1RuntimeServiceClient_StopPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopPodSandbox' +type Mockv1RuntimeServiceClient_StopPodSandbox_Call struct { *mock.Call } @@ -1921,12 +1921,12 @@ type MockV1RuntimeServiceClient_StopPodSandbox_Call struct { // - ctx context.Context // - in *v1.StopPodSandboxRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) StopPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StopPodSandbox_Call { - return &MockV1RuntimeServiceClient_StopPodSandbox_Call{Call: _e.mock.On("StopPodSandbox", +func (_e *Mockv1RuntimeServiceClient_Expecter) StopPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_StopPodSandbox_Call { + return &Mockv1RuntimeServiceClient_StopPodSandbox_Call{Call: _e.mock.On("StopPodSandbox", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_StopPodSandbox_Call) Run(run func(ctx context.Context, in *v1.StopPodSandboxRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_StopPodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_StopPodSandbox_Call) Run(run func(ctx context.Context, in *v1.StopPodSandboxRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_StopPodSandbox_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -1939,18 +1939,18 @@ func (_c *MockV1RuntimeServiceClient_StopPodSandbox_Call) Run(run func(ctx conte return _c } -func (_c *MockV1RuntimeServiceClient_StopPodSandbox_Call) Return(_a0 *v1.StopPodSandboxResponse, _a1 error) *MockV1RuntimeServiceClient_StopPodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_StopPodSandbox_Call) Return(_a0 *v1.StopPodSandboxResponse, _a1 error) *Mockv1RuntimeServiceClient_StopPodSandbox_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_StopPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.StopPodSandboxRequest, ...grpc.CallOption) (*v1.StopPodSandboxResponse, error)) *MockV1RuntimeServiceClient_StopPodSandbox_Call { +func (_c *Mockv1RuntimeServiceClient_StopPodSandbox_Call) RunAndReturn(run func(context.Context, *v1.StopPodSandboxRequest, ...grpc.CallOption) (*v1.StopPodSandboxResponse, error)) *Mockv1RuntimeServiceClient_StopPodSandbox_Call { _c.Call.Return(run) return _c } // StreamContainerStats provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) StreamContainerStats(ctx context.Context, in *v1.StreamContainerStatsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], error) { +func (_m *Mockv1RuntimeServiceClient) StreamContainerStats(ctx context.Context, in *v1.StreamContainerStatsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -1986,8 +1986,8 @@ func (_m *MockV1RuntimeServiceClient) StreamContainerStats(ctx context.Context, return r0, r1 } -// MockV1RuntimeServiceClient_StreamContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamContainerStats' -type MockV1RuntimeServiceClient_StreamContainerStats_Call struct { +// Mockv1RuntimeServiceClient_StreamContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamContainerStats' +type Mockv1RuntimeServiceClient_StreamContainerStats_Call struct { *mock.Call } @@ -1995,12 +1995,12 @@ type MockV1RuntimeServiceClient_StreamContainerStats_Call struct { // - ctx context.Context // - in *v1.StreamContainerStatsRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) StreamContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StreamContainerStats_Call { - return &MockV1RuntimeServiceClient_StreamContainerStats_Call{Call: _e.mock.On("StreamContainerStats", +func (_e *Mockv1RuntimeServiceClient_Expecter) StreamContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_StreamContainerStats_Call { + return &Mockv1RuntimeServiceClient_StreamContainerStats_Call{Call: _e.mock.On("StreamContainerStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_StreamContainerStats_Call) Run(run func(ctx context.Context, in *v1.StreamContainerStatsRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_StreamContainerStats_Call { +func (_c *Mockv1RuntimeServiceClient_StreamContainerStats_Call) Run(run func(ctx context.Context, in *v1.StreamContainerStatsRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_StreamContainerStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2013,18 +2013,18 @@ func (_c *MockV1RuntimeServiceClient_StreamContainerStats_Call) Run(run func(ctx return _c } -func (_c *MockV1RuntimeServiceClient_StreamContainerStats_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], _a1 error) *MockV1RuntimeServiceClient_StreamContainerStats_Call { +func (_c *Mockv1RuntimeServiceClient_StreamContainerStats_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], _a1 error) *Mockv1RuntimeServiceClient_StreamContainerStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_StreamContainerStats_Call) RunAndReturn(run func(context.Context, *v1.StreamContainerStatsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], error)) *MockV1RuntimeServiceClient_StreamContainerStats_Call { +func (_c *Mockv1RuntimeServiceClient_StreamContainerStats_Call) RunAndReturn(run func(context.Context, *v1.StreamContainerStatsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainerStatsResponse], error)) *Mockv1RuntimeServiceClient_StreamContainerStats_Call { _c.Call.Return(run) return _c } // StreamContainers provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) StreamContainers(ctx context.Context, in *v1.StreamContainersRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainersResponse], error) { +func (_m *Mockv1RuntimeServiceClient) StreamContainers(ctx context.Context, in *v1.StreamContainersRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainersResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2060,8 +2060,8 @@ func (_m *MockV1RuntimeServiceClient) StreamContainers(ctx context.Context, in * return r0, r1 } -// MockV1RuntimeServiceClient_StreamContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamContainers' -type MockV1RuntimeServiceClient_StreamContainers_Call struct { +// Mockv1RuntimeServiceClient_StreamContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamContainers' +type Mockv1RuntimeServiceClient_StreamContainers_Call struct { *mock.Call } @@ -2069,12 +2069,12 @@ type MockV1RuntimeServiceClient_StreamContainers_Call struct { // - ctx context.Context // - in *v1.StreamContainersRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) StreamContainers(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StreamContainers_Call { - return &MockV1RuntimeServiceClient_StreamContainers_Call{Call: _e.mock.On("StreamContainers", +func (_e *Mockv1RuntimeServiceClient_Expecter) StreamContainers(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_StreamContainers_Call { + return &Mockv1RuntimeServiceClient_StreamContainers_Call{Call: _e.mock.On("StreamContainers", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_StreamContainers_Call) Run(run func(ctx context.Context, in *v1.StreamContainersRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_StreamContainers_Call { +func (_c *Mockv1RuntimeServiceClient_StreamContainers_Call) Run(run func(ctx context.Context, in *v1.StreamContainersRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_StreamContainers_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2087,18 +2087,18 @@ func (_c *MockV1RuntimeServiceClient_StreamContainers_Call) Run(run func(ctx con return _c } -func (_c *MockV1RuntimeServiceClient_StreamContainers_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamContainersResponse], _a1 error) *MockV1RuntimeServiceClient_StreamContainers_Call { +func (_c *Mockv1RuntimeServiceClient_StreamContainers_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamContainersResponse], _a1 error) *Mockv1RuntimeServiceClient_StreamContainers_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_StreamContainers_Call) RunAndReturn(run func(context.Context, *v1.StreamContainersRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainersResponse], error)) *MockV1RuntimeServiceClient_StreamContainers_Call { +func (_c *Mockv1RuntimeServiceClient_StreamContainers_Call) RunAndReturn(run func(context.Context, *v1.StreamContainersRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamContainersResponse], error)) *Mockv1RuntimeServiceClient_StreamContainers_Call { _c.Call.Return(run) return _c } // StreamPodSandboxMetrics provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) StreamPodSandboxMetrics(ctx context.Context, in *v1.StreamPodSandboxMetricsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], error) { +func (_m *Mockv1RuntimeServiceClient) StreamPodSandboxMetrics(ctx context.Context, in *v1.StreamPodSandboxMetricsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2134,8 +2134,8 @@ func (_m *MockV1RuntimeServiceClient) StreamPodSandboxMetrics(ctx context.Contex return r0, r1 } -// MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxMetrics' -type MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call struct { +// Mockv1RuntimeServiceClient_StreamPodSandboxMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxMetrics' +type Mockv1RuntimeServiceClient_StreamPodSandboxMetrics_Call struct { *mock.Call } @@ -2143,12 +2143,12 @@ type MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call struct { // - ctx context.Context // - in *v1.StreamPodSandboxMetricsRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) StreamPodSandboxMetrics(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call { - return &MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call{Call: _e.mock.On("StreamPodSandboxMetrics", +func (_e *Mockv1RuntimeServiceClient_Expecter) StreamPodSandboxMetrics(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_StreamPodSandboxMetrics_Call { + return &Mockv1RuntimeServiceClient_StreamPodSandboxMetrics_Call{Call: _e.mock.On("StreamPodSandboxMetrics", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxMetricsRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call { +func (_c *Mockv1RuntimeServiceClient_StreamPodSandboxMetrics_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxMetricsRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_StreamPodSandboxMetrics_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2161,18 +2161,18 @@ func (_c *MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call) Run(run func( return _c } -func (_c *MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], _a1 error) *MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call { +func (_c *Mockv1RuntimeServiceClient_StreamPodSandboxMetrics_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], _a1 error) *Mockv1RuntimeServiceClient_StreamPodSandboxMetrics_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxMetricsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], error)) *MockV1RuntimeServiceClient_StreamPodSandboxMetrics_Call { +func (_c *Mockv1RuntimeServiceClient_StreamPodSandboxMetrics_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxMetricsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxMetricsResponse], error)) *Mockv1RuntimeServiceClient_StreamPodSandboxMetrics_Call { _c.Call.Return(run) return _c } // StreamPodSandboxStats provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) StreamPodSandboxStats(ctx context.Context, in *v1.StreamPodSandboxStatsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], error) { +func (_m *Mockv1RuntimeServiceClient) StreamPodSandboxStats(ctx context.Context, in *v1.StreamPodSandboxStatsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2208,8 +2208,8 @@ func (_m *MockV1RuntimeServiceClient) StreamPodSandboxStats(ctx context.Context, return r0, r1 } -// MockV1RuntimeServiceClient_StreamPodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxStats' -type MockV1RuntimeServiceClient_StreamPodSandboxStats_Call struct { +// Mockv1RuntimeServiceClient_StreamPodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxStats' +type Mockv1RuntimeServiceClient_StreamPodSandboxStats_Call struct { *mock.Call } @@ -2217,12 +2217,12 @@ type MockV1RuntimeServiceClient_StreamPodSandboxStats_Call struct { // - ctx context.Context // - in *v1.StreamPodSandboxStatsRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) StreamPodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StreamPodSandboxStats_Call { - return &MockV1RuntimeServiceClient_StreamPodSandboxStats_Call{Call: _e.mock.On("StreamPodSandboxStats", +func (_e *Mockv1RuntimeServiceClient_Expecter) StreamPodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_StreamPodSandboxStats_Call { + return &Mockv1RuntimeServiceClient_StreamPodSandboxStats_Call{Call: _e.mock.On("StreamPodSandboxStats", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_StreamPodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxStatsRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_StreamPodSandboxStats_Call { +func (_c *Mockv1RuntimeServiceClient_StreamPodSandboxStats_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxStatsRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_StreamPodSandboxStats_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2235,18 +2235,18 @@ func (_c *MockV1RuntimeServiceClient_StreamPodSandboxStats_Call) Run(run func(ct return _c } -func (_c *MockV1RuntimeServiceClient_StreamPodSandboxStats_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], _a1 error) *MockV1RuntimeServiceClient_StreamPodSandboxStats_Call { +func (_c *Mockv1RuntimeServiceClient_StreamPodSandboxStats_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], _a1 error) *Mockv1RuntimeServiceClient_StreamPodSandboxStats_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_StreamPodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxStatsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], error)) *MockV1RuntimeServiceClient_StreamPodSandboxStats_Call { +func (_c *Mockv1RuntimeServiceClient_StreamPodSandboxStats_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxStatsRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxStatsResponse], error)) *Mockv1RuntimeServiceClient_StreamPodSandboxStats_Call { _c.Call.Return(run) return _c } // StreamPodSandboxes provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) StreamPodSandboxes(ctx context.Context, in *v1.StreamPodSandboxesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], error) { +func (_m *Mockv1RuntimeServiceClient) StreamPodSandboxes(ctx context.Context, in *v1.StreamPodSandboxesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2282,8 +2282,8 @@ func (_m *MockV1RuntimeServiceClient) StreamPodSandboxes(ctx context.Context, in return r0, r1 } -// MockV1RuntimeServiceClient_StreamPodSandboxes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxes' -type MockV1RuntimeServiceClient_StreamPodSandboxes_Call struct { +// Mockv1RuntimeServiceClient_StreamPodSandboxes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamPodSandboxes' +type Mockv1RuntimeServiceClient_StreamPodSandboxes_Call struct { *mock.Call } @@ -2291,12 +2291,12 @@ type MockV1RuntimeServiceClient_StreamPodSandboxes_Call struct { // - ctx context.Context // - in *v1.StreamPodSandboxesRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) StreamPodSandboxes(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StreamPodSandboxes_Call { - return &MockV1RuntimeServiceClient_StreamPodSandboxes_Call{Call: _e.mock.On("StreamPodSandboxes", +func (_e *Mockv1RuntimeServiceClient_Expecter) StreamPodSandboxes(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_StreamPodSandboxes_Call { + return &Mockv1RuntimeServiceClient_StreamPodSandboxes_Call{Call: _e.mock.On("StreamPodSandboxes", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_StreamPodSandboxes_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxesRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_StreamPodSandboxes_Call { +func (_c *Mockv1RuntimeServiceClient_StreamPodSandboxes_Call) Run(run func(ctx context.Context, in *v1.StreamPodSandboxesRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_StreamPodSandboxes_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2309,18 +2309,18 @@ func (_c *MockV1RuntimeServiceClient_StreamPodSandboxes_Call) Run(run func(ctx c return _c } -func (_c *MockV1RuntimeServiceClient_StreamPodSandboxes_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], _a1 error) *MockV1RuntimeServiceClient_StreamPodSandboxes_Call { +func (_c *Mockv1RuntimeServiceClient_StreamPodSandboxes_Call) Return(_a0 grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], _a1 error) *Mockv1RuntimeServiceClient_StreamPodSandboxes_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_StreamPodSandboxes_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxesRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], error)) *MockV1RuntimeServiceClient_StreamPodSandboxes_Call { +func (_c *Mockv1RuntimeServiceClient_StreamPodSandboxes_Call) RunAndReturn(run func(context.Context, *v1.StreamPodSandboxesRequest, ...grpc.CallOption) (grpc.ServerStreamingClient[v1.StreamPodSandboxesResponse], error)) *Mockv1RuntimeServiceClient_StreamPodSandboxes_Call { _c.Call.Return(run) return _c } // UpdateContainerResources provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) UpdateContainerResources(ctx context.Context, in *v1.UpdateContainerResourcesRequest, opts ...grpc.CallOption) (*v1.UpdateContainerResourcesResponse, error) { +func (_m *Mockv1RuntimeServiceClient) UpdateContainerResources(ctx context.Context, in *v1.UpdateContainerResourcesRequest, opts ...grpc.CallOption) (*v1.UpdateContainerResourcesResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2356,8 +2356,8 @@ func (_m *MockV1RuntimeServiceClient) UpdateContainerResources(ctx context.Conte return r0, r1 } -// MockV1RuntimeServiceClient_UpdateContainerResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateContainerResources' -type MockV1RuntimeServiceClient_UpdateContainerResources_Call struct { +// Mockv1RuntimeServiceClient_UpdateContainerResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateContainerResources' +type Mockv1RuntimeServiceClient_UpdateContainerResources_Call struct { *mock.Call } @@ -2365,12 +2365,12 @@ type MockV1RuntimeServiceClient_UpdateContainerResources_Call struct { // - ctx context.Context // - in *v1.UpdateContainerResourcesRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) UpdateContainerResources(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_UpdateContainerResources_Call { - return &MockV1RuntimeServiceClient_UpdateContainerResources_Call{Call: _e.mock.On("UpdateContainerResources", +func (_e *Mockv1RuntimeServiceClient_Expecter) UpdateContainerResources(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_UpdateContainerResources_Call { + return &Mockv1RuntimeServiceClient_UpdateContainerResources_Call{Call: _e.mock.On("UpdateContainerResources", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_UpdateContainerResources_Call) Run(run func(ctx context.Context, in *v1.UpdateContainerResourcesRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_UpdateContainerResources_Call { +func (_c *Mockv1RuntimeServiceClient_UpdateContainerResources_Call) Run(run func(ctx context.Context, in *v1.UpdateContainerResourcesRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_UpdateContainerResources_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2383,18 +2383,18 @@ func (_c *MockV1RuntimeServiceClient_UpdateContainerResources_Call) Run(run func return _c } -func (_c *MockV1RuntimeServiceClient_UpdateContainerResources_Call) Return(_a0 *v1.UpdateContainerResourcesResponse, _a1 error) *MockV1RuntimeServiceClient_UpdateContainerResources_Call { +func (_c *Mockv1RuntimeServiceClient_UpdateContainerResources_Call) Return(_a0 *v1.UpdateContainerResourcesResponse, _a1 error) *Mockv1RuntimeServiceClient_UpdateContainerResources_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_UpdateContainerResources_Call) RunAndReturn(run func(context.Context, *v1.UpdateContainerResourcesRequest, ...grpc.CallOption) (*v1.UpdateContainerResourcesResponse, error)) *MockV1RuntimeServiceClient_UpdateContainerResources_Call { +func (_c *Mockv1RuntimeServiceClient_UpdateContainerResources_Call) RunAndReturn(run func(context.Context, *v1.UpdateContainerResourcesRequest, ...grpc.CallOption) (*v1.UpdateContainerResourcesResponse, error)) *Mockv1RuntimeServiceClient_UpdateContainerResources_Call { _c.Call.Return(run) return _c } // UpdatePodSandboxResources provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) UpdatePodSandboxResources(ctx context.Context, in *v1.UpdatePodSandboxResourcesRequest, opts ...grpc.CallOption) (*v1.UpdatePodSandboxResourcesResponse, error) { +func (_m *Mockv1RuntimeServiceClient) UpdatePodSandboxResources(ctx context.Context, in *v1.UpdatePodSandboxResourcesRequest, opts ...grpc.CallOption) (*v1.UpdatePodSandboxResourcesResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2430,8 +2430,8 @@ func (_m *MockV1RuntimeServiceClient) UpdatePodSandboxResources(ctx context.Cont return r0, r1 } -// MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePodSandboxResources' -type MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call struct { +// Mockv1RuntimeServiceClient_UpdatePodSandboxResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePodSandboxResources' +type Mockv1RuntimeServiceClient_UpdatePodSandboxResources_Call struct { *mock.Call } @@ -2439,12 +2439,12 @@ type MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call struct { // - ctx context.Context // - in *v1.UpdatePodSandboxResourcesRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) UpdatePodSandboxResources(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call { - return &MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call{Call: _e.mock.On("UpdatePodSandboxResources", +func (_e *Mockv1RuntimeServiceClient_Expecter) UpdatePodSandboxResources(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_UpdatePodSandboxResources_Call { + return &Mockv1RuntimeServiceClient_UpdatePodSandboxResources_Call{Call: _e.mock.On("UpdatePodSandboxResources", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call) Run(run func(ctx context.Context, in *v1.UpdatePodSandboxResourcesRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call { +func (_c *Mockv1RuntimeServiceClient_UpdatePodSandboxResources_Call) Run(run func(ctx context.Context, in *v1.UpdatePodSandboxResourcesRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_UpdatePodSandboxResources_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2457,18 +2457,18 @@ func (_c *MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call) Run(run fun return _c } -func (_c *MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call) Return(_a0 *v1.UpdatePodSandboxResourcesResponse, _a1 error) *MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call { +func (_c *Mockv1RuntimeServiceClient_UpdatePodSandboxResources_Call) Return(_a0 *v1.UpdatePodSandboxResourcesResponse, _a1 error) *Mockv1RuntimeServiceClient_UpdatePodSandboxResources_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call) RunAndReturn(run func(context.Context, *v1.UpdatePodSandboxResourcesRequest, ...grpc.CallOption) (*v1.UpdatePodSandboxResourcesResponse, error)) *MockV1RuntimeServiceClient_UpdatePodSandboxResources_Call { +func (_c *Mockv1RuntimeServiceClient_UpdatePodSandboxResources_Call) RunAndReturn(run func(context.Context, *v1.UpdatePodSandboxResourcesRequest, ...grpc.CallOption) (*v1.UpdatePodSandboxResourcesResponse, error)) *Mockv1RuntimeServiceClient_UpdatePodSandboxResources_Call { _c.Call.Return(run) return _c } // UpdateRuntimeConfig provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) UpdateRuntimeConfig(ctx context.Context, in *v1.UpdateRuntimeConfigRequest, opts ...grpc.CallOption) (*v1.UpdateRuntimeConfigResponse, error) { +func (_m *Mockv1RuntimeServiceClient) UpdateRuntimeConfig(ctx context.Context, in *v1.UpdateRuntimeConfigRequest, opts ...grpc.CallOption) (*v1.UpdateRuntimeConfigResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2504,8 +2504,8 @@ func (_m *MockV1RuntimeServiceClient) UpdateRuntimeConfig(ctx context.Context, i return r0, r1 } -// MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRuntimeConfig' -type MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call struct { +// Mockv1RuntimeServiceClient_UpdateRuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRuntimeConfig' +type Mockv1RuntimeServiceClient_UpdateRuntimeConfig_Call struct { *mock.Call } @@ -2513,12 +2513,12 @@ type MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call struct { // - ctx context.Context // - in *v1.UpdateRuntimeConfigRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) UpdateRuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call { - return &MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call{Call: _e.mock.On("UpdateRuntimeConfig", +func (_e *Mockv1RuntimeServiceClient_Expecter) UpdateRuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_UpdateRuntimeConfig_Call { + return &Mockv1RuntimeServiceClient_UpdateRuntimeConfig_Call{Call: _e.mock.On("UpdateRuntimeConfig", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call) Run(run func(ctx context.Context, in *v1.UpdateRuntimeConfigRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call { +func (_c *Mockv1RuntimeServiceClient_UpdateRuntimeConfig_Call) Run(run func(ctx context.Context, in *v1.UpdateRuntimeConfigRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_UpdateRuntimeConfig_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2531,18 +2531,18 @@ func (_c *MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call) Run(run func(ctx return _c } -func (_c *MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call) Return(_a0 *v1.UpdateRuntimeConfigResponse, _a1 error) *MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call { +func (_c *Mockv1RuntimeServiceClient_UpdateRuntimeConfig_Call) Return(_a0 *v1.UpdateRuntimeConfigResponse, _a1 error) *Mockv1RuntimeServiceClient_UpdateRuntimeConfig_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call) RunAndReturn(run func(context.Context, *v1.UpdateRuntimeConfigRequest, ...grpc.CallOption) (*v1.UpdateRuntimeConfigResponse, error)) *MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call { +func (_c *Mockv1RuntimeServiceClient_UpdateRuntimeConfig_Call) RunAndReturn(run func(context.Context, *v1.UpdateRuntimeConfigRequest, ...grpc.CallOption) (*v1.UpdateRuntimeConfigResponse, error)) *Mockv1RuntimeServiceClient_UpdateRuntimeConfig_Call { _c.Call.Return(run) return _c } // Version provides a mock function with given fields: ctx, in, opts -func (_m *MockV1RuntimeServiceClient) Version(ctx context.Context, in *v1.VersionRequest, opts ...grpc.CallOption) (*v1.VersionResponse, error) { +func (_m *Mockv1RuntimeServiceClient) Version(ctx context.Context, in *v1.VersionRequest, opts ...grpc.CallOption) (*v1.VersionResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -2578,8 +2578,8 @@ func (_m *MockV1RuntimeServiceClient) Version(ctx context.Context, in *v1.Versio return r0, r1 } -// MockV1RuntimeServiceClient_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version' -type MockV1RuntimeServiceClient_Version_Call struct { +// Mockv1RuntimeServiceClient_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version' +type Mockv1RuntimeServiceClient_Version_Call struct { *mock.Call } @@ -2587,12 +2587,12 @@ type MockV1RuntimeServiceClient_Version_Call struct { // - ctx context.Context // - in *v1.VersionRequest // - opts ...grpc.CallOption -func (_e *MockV1RuntimeServiceClient_Expecter) Version(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_Version_Call { - return &MockV1RuntimeServiceClient_Version_Call{Call: _e.mock.On("Version", +func (_e *Mockv1RuntimeServiceClient_Expecter) Version(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1RuntimeServiceClient_Version_Call { + return &Mockv1RuntimeServiceClient_Version_Call{Call: _e.mock.On("Version", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1RuntimeServiceClient_Version_Call) Run(run func(ctx context.Context, in *v1.VersionRequest, opts ...grpc.CallOption)) *MockV1RuntimeServiceClient_Version_Call { +func (_c *Mockv1RuntimeServiceClient_Version_Call) Run(run func(ctx context.Context, in *v1.VersionRequest, opts ...grpc.CallOption)) *Mockv1RuntimeServiceClient_Version_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -2605,23 +2605,23 @@ func (_c *MockV1RuntimeServiceClient_Version_Call) Run(run func(ctx context.Cont return _c } -func (_c *MockV1RuntimeServiceClient_Version_Call) Return(_a0 *v1.VersionResponse, _a1 error) *MockV1RuntimeServiceClient_Version_Call { +func (_c *Mockv1RuntimeServiceClient_Version_Call) Return(_a0 *v1.VersionResponse, _a1 error) *Mockv1RuntimeServiceClient_Version_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1RuntimeServiceClient_Version_Call) RunAndReturn(run func(context.Context, *v1.VersionRequest, ...grpc.CallOption) (*v1.VersionResponse, error)) *MockV1RuntimeServiceClient_Version_Call { +func (_c *Mockv1RuntimeServiceClient_Version_Call) RunAndReturn(run func(context.Context, *v1.VersionRequest, ...grpc.CallOption) (*v1.VersionResponse, error)) *Mockv1RuntimeServiceClient_Version_Call { _c.Call.Return(run) return _c } -// NewMockV1RuntimeServiceClient creates a new instance of MockV1RuntimeServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockv1RuntimeServiceClient creates a new instance of Mockv1RuntimeServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockV1RuntimeServiceClient(t interface { +func NewMockv1RuntimeServiceClient(t interface { mock.TestingT Cleanup(func()) -}) *MockV1RuntimeServiceClient { - mock := &MockV1RuntimeServiceClient{} +}) *Mockv1RuntimeServiceClient { + mock := &Mockv1RuntimeServiceClient{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/v1alpha1_checkpoint_service_client.go b/internal/mock/v1alpha1_checkpoint_service_client.go index c102bafd5..417c2186a 100644 --- a/internal/mock/v1alpha1_checkpoint_service_client.go +++ b/internal/mock/v1alpha1_checkpoint_service_client.go @@ -12,21 +12,21 @@ import ( v1alpha1 "github.com/spacechunks/explorer/api/platformd/checkpoint/v1alpha1" ) -// MockV1alpha1CheckpointServiceClient is an autogenerated mock type for the CheckpointServiceClient type -type MockV1alpha1CheckpointServiceClient struct { +// Mockv1alpha1CheckpointServiceClient is an autogenerated mock type for the CheckpointServiceClient type +type Mockv1alpha1CheckpointServiceClient struct { mock.Mock } -type MockV1alpha1CheckpointServiceClient_Expecter struct { +type Mockv1alpha1CheckpointServiceClient_Expecter struct { mock *mock.Mock } -func (_m *MockV1alpha1CheckpointServiceClient) EXPECT() *MockV1alpha1CheckpointServiceClient_Expecter { - return &MockV1alpha1CheckpointServiceClient_Expecter{mock: &_m.Mock} +func (_m *Mockv1alpha1CheckpointServiceClient) EXPECT() *Mockv1alpha1CheckpointServiceClient_Expecter { + return &Mockv1alpha1CheckpointServiceClient_Expecter{mock: &_m.Mock} } // CheckpointStatus provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha1CheckpointServiceClient) CheckpointStatus(ctx context.Context, in *v1alpha1.CheckpointStatusRequest, opts ...grpc.CallOption) (*v1alpha1.CheckpointStatusResponse, error) { +func (_m *Mockv1alpha1CheckpointServiceClient) CheckpointStatus(ctx context.Context, in *v1alpha1.CheckpointStatusRequest, opts ...grpc.CallOption) (*v1alpha1.CheckpointStatusResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -62,8 +62,8 @@ func (_m *MockV1alpha1CheckpointServiceClient) CheckpointStatus(ctx context.Cont return r0, r1 } -// MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckpointStatus' -type MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call struct { +// Mockv1alpha1CheckpointServiceClient_CheckpointStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckpointStatus' +type Mockv1alpha1CheckpointServiceClient_CheckpointStatus_Call struct { *mock.Call } @@ -71,12 +71,12 @@ type MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call struct { // - ctx context.Context // - in *v1alpha1.CheckpointStatusRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha1CheckpointServiceClient_Expecter) CheckpointStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call { - return &MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call{Call: _e.mock.On("CheckpointStatus", +func (_e *Mockv1alpha1CheckpointServiceClient_Expecter) CheckpointStatus(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha1CheckpointServiceClient_CheckpointStatus_Call { + return &Mockv1alpha1CheckpointServiceClient_CheckpointStatus_Call{Call: _e.mock.On("CheckpointStatus", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call) Run(run func(ctx context.Context, in *v1alpha1.CheckpointStatusRequest, opts ...grpc.CallOption)) *MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call { +func (_c *Mockv1alpha1CheckpointServiceClient_CheckpointStatus_Call) Run(run func(ctx context.Context, in *v1alpha1.CheckpointStatusRequest, opts ...grpc.CallOption)) *Mockv1alpha1CheckpointServiceClient_CheckpointStatus_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -89,18 +89,18 @@ func (_c *MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call) Run(run fun return _c } -func (_c *MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call) Return(_a0 *v1alpha1.CheckpointStatusResponse, _a1 error) *MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call { +func (_c *Mockv1alpha1CheckpointServiceClient_CheckpointStatus_Call) Return(_a0 *v1alpha1.CheckpointStatusResponse, _a1 error) *Mockv1alpha1CheckpointServiceClient_CheckpointStatus_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call) RunAndReturn(run func(context.Context, *v1alpha1.CheckpointStatusRequest, ...grpc.CallOption) (*v1alpha1.CheckpointStatusResponse, error)) *MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call { +func (_c *Mockv1alpha1CheckpointServiceClient_CheckpointStatus_Call) RunAndReturn(run func(context.Context, *v1alpha1.CheckpointStatusRequest, ...grpc.CallOption) (*v1alpha1.CheckpointStatusResponse, error)) *Mockv1alpha1CheckpointServiceClient_CheckpointStatus_Call { _c.Call.Return(run) return _c } // CreateCheckpoint provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha1CheckpointServiceClient) CreateCheckpoint(ctx context.Context, in *v1alpha1.CreateCheckpointRequest, opts ...grpc.CallOption) (*v1alpha1.CreateCheckpointResponse, error) { +func (_m *Mockv1alpha1CheckpointServiceClient) CreateCheckpoint(ctx context.Context, in *v1alpha1.CreateCheckpointRequest, opts ...grpc.CallOption) (*v1alpha1.CreateCheckpointResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -136,8 +136,8 @@ func (_m *MockV1alpha1CheckpointServiceClient) CreateCheckpoint(ctx context.Cont return r0, r1 } -// MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCheckpoint' -type MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call struct { +// Mockv1alpha1CheckpointServiceClient_CreateCheckpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCheckpoint' +type Mockv1alpha1CheckpointServiceClient_CreateCheckpoint_Call struct { *mock.Call } @@ -145,12 +145,12 @@ type MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call struct { // - ctx context.Context // - in *v1alpha1.CreateCheckpointRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha1CheckpointServiceClient_Expecter) CreateCheckpoint(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call { - return &MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call{Call: _e.mock.On("CreateCheckpoint", +func (_e *Mockv1alpha1CheckpointServiceClient_Expecter) CreateCheckpoint(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha1CheckpointServiceClient_CreateCheckpoint_Call { + return &Mockv1alpha1CheckpointServiceClient_CreateCheckpoint_Call{Call: _e.mock.On("CreateCheckpoint", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call) Run(run func(ctx context.Context, in *v1alpha1.CreateCheckpointRequest, opts ...grpc.CallOption)) *MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call { +func (_c *Mockv1alpha1CheckpointServiceClient_CreateCheckpoint_Call) Run(run func(ctx context.Context, in *v1alpha1.CreateCheckpointRequest, opts ...grpc.CallOption)) *Mockv1alpha1CheckpointServiceClient_CreateCheckpoint_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -163,23 +163,23 @@ func (_c *MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call) Run(run fun return _c } -func (_c *MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call) Return(_a0 *v1alpha1.CreateCheckpointResponse, _a1 error) *MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call { +func (_c *Mockv1alpha1CheckpointServiceClient_CreateCheckpoint_Call) Return(_a0 *v1alpha1.CreateCheckpointResponse, _a1 error) *Mockv1alpha1CheckpointServiceClient_CreateCheckpoint_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call) RunAndReturn(run func(context.Context, *v1alpha1.CreateCheckpointRequest, ...grpc.CallOption) (*v1alpha1.CreateCheckpointResponse, error)) *MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call { +func (_c *Mockv1alpha1CheckpointServiceClient_CreateCheckpoint_Call) RunAndReturn(run func(context.Context, *v1alpha1.CreateCheckpointRequest, ...grpc.CallOption) (*v1alpha1.CreateCheckpointResponse, error)) *Mockv1alpha1CheckpointServiceClient_CreateCheckpoint_Call { _c.Call.Return(run) return _c } -// NewMockV1alpha1CheckpointServiceClient creates a new instance of MockV1alpha1CheckpointServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockv1alpha1CheckpointServiceClient creates a new instance of Mockv1alpha1CheckpointServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockV1alpha1CheckpointServiceClient(t interface { +func NewMockv1alpha1CheckpointServiceClient(t interface { mock.TestingT Cleanup(func()) -}) *MockV1alpha1CheckpointServiceClient { - mock := &MockV1alpha1CheckpointServiceClient{} +}) *Mockv1alpha1CheckpointServiceClient { + mock := &Mockv1alpha1CheckpointServiceClient{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/v1alpha1_instance_service_client.go b/internal/mock/v1alpha1_instance_service_client.go index 93bf2c7fd..c3c63da83 100644 --- a/internal/mock/v1alpha1_instance_service_client.go +++ b/internal/mock/v1alpha1_instance_service_client.go @@ -12,21 +12,21 @@ import ( v1alpha1 "github.com/spacechunks/explorer/api/instance/v1alpha1" ) -// MockV1alpha1InstanceServiceClient is an autogenerated mock type for the InstanceServiceClient type -type MockV1alpha1InstanceServiceClient struct { +// Mockv1alpha1InstanceServiceClient is an autogenerated mock type for the InstanceServiceClient type +type Mockv1alpha1InstanceServiceClient struct { mock.Mock } -type MockV1alpha1InstanceServiceClient_Expecter struct { +type Mockv1alpha1InstanceServiceClient_Expecter struct { mock *mock.Mock } -func (_m *MockV1alpha1InstanceServiceClient) EXPECT() *MockV1alpha1InstanceServiceClient_Expecter { - return &MockV1alpha1InstanceServiceClient_Expecter{mock: &_m.Mock} +func (_m *Mockv1alpha1InstanceServiceClient) EXPECT() *Mockv1alpha1InstanceServiceClient_Expecter { + return &Mockv1alpha1InstanceServiceClient_Expecter{mock: &_m.Mock} } // DiscoverInstances provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha1InstanceServiceClient) DiscoverInstances(ctx context.Context, in *v1alpha1.DiscoverInstanceRequest, opts ...grpc.CallOption) (*v1alpha1.DiscoverInstanceResponse, error) { +func (_m *Mockv1alpha1InstanceServiceClient) DiscoverInstances(ctx context.Context, in *v1alpha1.DiscoverInstanceRequest, opts ...grpc.CallOption) (*v1alpha1.DiscoverInstanceResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -62,8 +62,8 @@ func (_m *MockV1alpha1InstanceServiceClient) DiscoverInstances(ctx context.Conte return r0, r1 } -// MockV1alpha1InstanceServiceClient_DiscoverInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DiscoverInstances' -type MockV1alpha1InstanceServiceClient_DiscoverInstances_Call struct { +// Mockv1alpha1InstanceServiceClient_DiscoverInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DiscoverInstances' +type Mockv1alpha1InstanceServiceClient_DiscoverInstances_Call struct { *mock.Call } @@ -71,12 +71,12 @@ type MockV1alpha1InstanceServiceClient_DiscoverInstances_Call struct { // - ctx context.Context // - in *v1alpha1.DiscoverInstanceRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha1InstanceServiceClient_Expecter) DiscoverInstances(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1InstanceServiceClient_DiscoverInstances_Call { - return &MockV1alpha1InstanceServiceClient_DiscoverInstances_Call{Call: _e.mock.On("DiscoverInstances", +func (_e *Mockv1alpha1InstanceServiceClient_Expecter) DiscoverInstances(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha1InstanceServiceClient_DiscoverInstances_Call { + return &Mockv1alpha1InstanceServiceClient_DiscoverInstances_Call{Call: _e.mock.On("DiscoverInstances", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha1InstanceServiceClient_DiscoverInstances_Call) Run(run func(ctx context.Context, in *v1alpha1.DiscoverInstanceRequest, opts ...grpc.CallOption)) *MockV1alpha1InstanceServiceClient_DiscoverInstances_Call { +func (_c *Mockv1alpha1InstanceServiceClient_DiscoverInstances_Call) Run(run func(ctx context.Context, in *v1alpha1.DiscoverInstanceRequest, opts ...grpc.CallOption)) *Mockv1alpha1InstanceServiceClient_DiscoverInstances_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -89,18 +89,18 @@ func (_c *MockV1alpha1InstanceServiceClient_DiscoverInstances_Call) Run(run func return _c } -func (_c *MockV1alpha1InstanceServiceClient_DiscoverInstances_Call) Return(_a0 *v1alpha1.DiscoverInstanceResponse, _a1 error) *MockV1alpha1InstanceServiceClient_DiscoverInstances_Call { +func (_c *Mockv1alpha1InstanceServiceClient_DiscoverInstances_Call) Return(_a0 *v1alpha1.DiscoverInstanceResponse, _a1 error) *Mockv1alpha1InstanceServiceClient_DiscoverInstances_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha1InstanceServiceClient_DiscoverInstances_Call) RunAndReturn(run func(context.Context, *v1alpha1.DiscoverInstanceRequest, ...grpc.CallOption) (*v1alpha1.DiscoverInstanceResponse, error)) *MockV1alpha1InstanceServiceClient_DiscoverInstances_Call { +func (_c *Mockv1alpha1InstanceServiceClient_DiscoverInstances_Call) RunAndReturn(run func(context.Context, *v1alpha1.DiscoverInstanceRequest, ...grpc.CallOption) (*v1alpha1.DiscoverInstanceResponse, error)) *Mockv1alpha1InstanceServiceClient_DiscoverInstances_Call { _c.Call.Return(run) return _c } // GetInstance provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha1InstanceServiceClient) GetInstance(ctx context.Context, in *v1alpha1.GetInstanceRequest, opts ...grpc.CallOption) (*v1alpha1.GetInstanceResponse, error) { +func (_m *Mockv1alpha1InstanceServiceClient) GetInstance(ctx context.Context, in *v1alpha1.GetInstanceRequest, opts ...grpc.CallOption) (*v1alpha1.GetInstanceResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -136,8 +136,8 @@ func (_m *MockV1alpha1InstanceServiceClient) GetInstance(ctx context.Context, in return r0, r1 } -// MockV1alpha1InstanceServiceClient_GetInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstance' -type MockV1alpha1InstanceServiceClient_GetInstance_Call struct { +// Mockv1alpha1InstanceServiceClient_GetInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstance' +type Mockv1alpha1InstanceServiceClient_GetInstance_Call struct { *mock.Call } @@ -145,12 +145,12 @@ type MockV1alpha1InstanceServiceClient_GetInstance_Call struct { // - ctx context.Context // - in *v1alpha1.GetInstanceRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha1InstanceServiceClient_Expecter) GetInstance(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1InstanceServiceClient_GetInstance_Call { - return &MockV1alpha1InstanceServiceClient_GetInstance_Call{Call: _e.mock.On("GetInstance", +func (_e *Mockv1alpha1InstanceServiceClient_Expecter) GetInstance(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha1InstanceServiceClient_GetInstance_Call { + return &Mockv1alpha1InstanceServiceClient_GetInstance_Call{Call: _e.mock.On("GetInstance", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha1InstanceServiceClient_GetInstance_Call) Run(run func(ctx context.Context, in *v1alpha1.GetInstanceRequest, opts ...grpc.CallOption)) *MockV1alpha1InstanceServiceClient_GetInstance_Call { +func (_c *Mockv1alpha1InstanceServiceClient_GetInstance_Call) Run(run func(ctx context.Context, in *v1alpha1.GetInstanceRequest, opts ...grpc.CallOption)) *Mockv1alpha1InstanceServiceClient_GetInstance_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -163,18 +163,18 @@ func (_c *MockV1alpha1InstanceServiceClient_GetInstance_Call) Run(run func(ctx c return _c } -func (_c *MockV1alpha1InstanceServiceClient_GetInstance_Call) Return(_a0 *v1alpha1.GetInstanceResponse, _a1 error) *MockV1alpha1InstanceServiceClient_GetInstance_Call { +func (_c *Mockv1alpha1InstanceServiceClient_GetInstance_Call) Return(_a0 *v1alpha1.GetInstanceResponse, _a1 error) *Mockv1alpha1InstanceServiceClient_GetInstance_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha1InstanceServiceClient_GetInstance_Call) RunAndReturn(run func(context.Context, *v1alpha1.GetInstanceRequest, ...grpc.CallOption) (*v1alpha1.GetInstanceResponse, error)) *MockV1alpha1InstanceServiceClient_GetInstance_Call { +func (_c *Mockv1alpha1InstanceServiceClient_GetInstance_Call) RunAndReturn(run func(context.Context, *v1alpha1.GetInstanceRequest, ...grpc.CallOption) (*v1alpha1.GetInstanceResponse, error)) *Mockv1alpha1InstanceServiceClient_GetInstance_Call { _c.Call.Return(run) return _c } // ListInstances provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha1InstanceServiceClient) ListInstances(ctx context.Context, in *v1alpha1.ListInstancesRequest, opts ...grpc.CallOption) (*v1alpha1.ListInstancesResponse, error) { +func (_m *Mockv1alpha1InstanceServiceClient) ListInstances(ctx context.Context, in *v1alpha1.ListInstancesRequest, opts ...grpc.CallOption) (*v1alpha1.ListInstancesResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -210,8 +210,8 @@ func (_m *MockV1alpha1InstanceServiceClient) ListInstances(ctx context.Context, return r0, r1 } -// MockV1alpha1InstanceServiceClient_ListInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListInstances' -type MockV1alpha1InstanceServiceClient_ListInstances_Call struct { +// Mockv1alpha1InstanceServiceClient_ListInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListInstances' +type Mockv1alpha1InstanceServiceClient_ListInstances_Call struct { *mock.Call } @@ -219,12 +219,12 @@ type MockV1alpha1InstanceServiceClient_ListInstances_Call struct { // - ctx context.Context // - in *v1alpha1.ListInstancesRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha1InstanceServiceClient_Expecter) ListInstances(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1InstanceServiceClient_ListInstances_Call { - return &MockV1alpha1InstanceServiceClient_ListInstances_Call{Call: _e.mock.On("ListInstances", +func (_e *Mockv1alpha1InstanceServiceClient_Expecter) ListInstances(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha1InstanceServiceClient_ListInstances_Call { + return &Mockv1alpha1InstanceServiceClient_ListInstances_Call{Call: _e.mock.On("ListInstances", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha1InstanceServiceClient_ListInstances_Call) Run(run func(ctx context.Context, in *v1alpha1.ListInstancesRequest, opts ...grpc.CallOption)) *MockV1alpha1InstanceServiceClient_ListInstances_Call { +func (_c *Mockv1alpha1InstanceServiceClient_ListInstances_Call) Run(run func(ctx context.Context, in *v1alpha1.ListInstancesRequest, opts ...grpc.CallOption)) *Mockv1alpha1InstanceServiceClient_ListInstances_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -237,18 +237,18 @@ func (_c *MockV1alpha1InstanceServiceClient_ListInstances_Call) Run(run func(ctx return _c } -func (_c *MockV1alpha1InstanceServiceClient_ListInstances_Call) Return(_a0 *v1alpha1.ListInstancesResponse, _a1 error) *MockV1alpha1InstanceServiceClient_ListInstances_Call { +func (_c *Mockv1alpha1InstanceServiceClient_ListInstances_Call) Return(_a0 *v1alpha1.ListInstancesResponse, _a1 error) *Mockv1alpha1InstanceServiceClient_ListInstances_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha1InstanceServiceClient_ListInstances_Call) RunAndReturn(run func(context.Context, *v1alpha1.ListInstancesRequest, ...grpc.CallOption) (*v1alpha1.ListInstancesResponse, error)) *MockV1alpha1InstanceServiceClient_ListInstances_Call { +func (_c *Mockv1alpha1InstanceServiceClient_ListInstances_Call) RunAndReturn(run func(context.Context, *v1alpha1.ListInstancesRequest, ...grpc.CallOption) (*v1alpha1.ListInstancesResponse, error)) *Mockv1alpha1InstanceServiceClient_ListInstances_Call { _c.Call.Return(run) return _c } // ReceiveInstanceStatusReports provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha1InstanceServiceClient) ReceiveInstanceStatusReports(ctx context.Context, in *v1alpha1.ReceiveInstanceStatusReportsRequest, opts ...grpc.CallOption) (*v1alpha1.ReceiveInstanceStatusReportsResponse, error) { +func (_m *Mockv1alpha1InstanceServiceClient) ReceiveInstanceStatusReports(ctx context.Context, in *v1alpha1.ReceiveInstanceStatusReportsRequest, opts ...grpc.CallOption) (*v1alpha1.ReceiveInstanceStatusReportsResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -284,8 +284,8 @@ func (_m *MockV1alpha1InstanceServiceClient) ReceiveInstanceStatusReports(ctx co return r0, r1 } -// MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReceiveInstanceStatusReports' -type MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call struct { +// Mockv1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReceiveInstanceStatusReports' +type Mockv1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call struct { *mock.Call } @@ -293,12 +293,12 @@ type MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call struct // - ctx context.Context // - in *v1alpha1.ReceiveInstanceStatusReportsRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha1InstanceServiceClient_Expecter) ReceiveInstanceStatusReports(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call { - return &MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call{Call: _e.mock.On("ReceiveInstanceStatusReports", +func (_e *Mockv1alpha1InstanceServiceClient_Expecter) ReceiveInstanceStatusReports(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call { + return &Mockv1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call{Call: _e.mock.On("ReceiveInstanceStatusReports", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call) Run(run func(ctx context.Context, in *v1alpha1.ReceiveInstanceStatusReportsRequest, opts ...grpc.CallOption)) *MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call { +func (_c *Mockv1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call) Run(run func(ctx context.Context, in *v1alpha1.ReceiveInstanceStatusReportsRequest, opts ...grpc.CallOption)) *Mockv1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -311,18 +311,18 @@ func (_c *MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call) R return _c } -func (_c *MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call) Return(_a0 *v1alpha1.ReceiveInstanceStatusReportsResponse, _a1 error) *MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call { +func (_c *Mockv1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call) Return(_a0 *v1alpha1.ReceiveInstanceStatusReportsResponse, _a1 error) *Mockv1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call) RunAndReturn(run func(context.Context, *v1alpha1.ReceiveInstanceStatusReportsRequest, ...grpc.CallOption) (*v1alpha1.ReceiveInstanceStatusReportsResponse, error)) *MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call { +func (_c *Mockv1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call) RunAndReturn(run func(context.Context, *v1alpha1.ReceiveInstanceStatusReportsRequest, ...grpc.CallOption) (*v1alpha1.ReceiveInstanceStatusReportsResponse, error)) *Mockv1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call { _c.Call.Return(run) return _c } // RunFlavorVersion provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha1InstanceServiceClient) RunFlavorVersion(ctx context.Context, in *v1alpha1.RunFlavorVersionRequest, opts ...grpc.CallOption) (*v1alpha1.RunFlavorVersionResponse, error) { +func (_m *Mockv1alpha1InstanceServiceClient) RunFlavorVersion(ctx context.Context, in *v1alpha1.RunFlavorVersionRequest, opts ...grpc.CallOption) (*v1alpha1.RunFlavorVersionResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -358,8 +358,8 @@ func (_m *MockV1alpha1InstanceServiceClient) RunFlavorVersion(ctx context.Contex return r0, r1 } -// MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunFlavorVersion' -type MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call struct { +// Mockv1alpha1InstanceServiceClient_RunFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunFlavorVersion' +type Mockv1alpha1InstanceServiceClient_RunFlavorVersion_Call struct { *mock.Call } @@ -367,12 +367,12 @@ type MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call struct { // - ctx context.Context // - in *v1alpha1.RunFlavorVersionRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha1InstanceServiceClient_Expecter) RunFlavorVersion(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call { - return &MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call{Call: _e.mock.On("RunFlavorVersion", +func (_e *Mockv1alpha1InstanceServiceClient_Expecter) RunFlavorVersion(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha1InstanceServiceClient_RunFlavorVersion_Call { + return &Mockv1alpha1InstanceServiceClient_RunFlavorVersion_Call{Call: _e.mock.On("RunFlavorVersion", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call) Run(run func(ctx context.Context, in *v1alpha1.RunFlavorVersionRequest, opts ...grpc.CallOption)) *MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call { +func (_c *Mockv1alpha1InstanceServiceClient_RunFlavorVersion_Call) Run(run func(ctx context.Context, in *v1alpha1.RunFlavorVersionRequest, opts ...grpc.CallOption)) *Mockv1alpha1InstanceServiceClient_RunFlavorVersion_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -385,23 +385,23 @@ func (_c *MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call) Run(run func( return _c } -func (_c *MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call) Return(_a0 *v1alpha1.RunFlavorVersionResponse, _a1 error) *MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call { +func (_c *Mockv1alpha1InstanceServiceClient_RunFlavorVersion_Call) Return(_a0 *v1alpha1.RunFlavorVersionResponse, _a1 error) *Mockv1alpha1InstanceServiceClient_RunFlavorVersion_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call) RunAndReturn(run func(context.Context, *v1alpha1.RunFlavorVersionRequest, ...grpc.CallOption) (*v1alpha1.RunFlavorVersionResponse, error)) *MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call { +func (_c *Mockv1alpha1InstanceServiceClient_RunFlavorVersion_Call) RunAndReturn(run func(context.Context, *v1alpha1.RunFlavorVersionRequest, ...grpc.CallOption) (*v1alpha1.RunFlavorVersionResponse, error)) *Mockv1alpha1InstanceServiceClient_RunFlavorVersion_Call { _c.Call.Return(run) return _c } -// NewMockV1alpha1InstanceServiceClient creates a new instance of MockV1alpha1InstanceServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockv1alpha1InstanceServiceClient creates a new instance of Mockv1alpha1InstanceServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockV1alpha1InstanceServiceClient(t interface { +func NewMockv1alpha1InstanceServiceClient(t interface { mock.TestingT Cleanup(func()) -}) *MockV1alpha1InstanceServiceClient { - mock := &MockV1alpha1InstanceServiceClient{} +}) *Mockv1alpha1InstanceServiceClient { + mock := &Mockv1alpha1InstanceServiceClient{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/v1alpha1_proxy_service_client.go b/internal/mock/v1alpha1_proxy_service_client.go index 20ee4fbd6..e4d79c5cd 100644 --- a/internal/mock/v1alpha1_proxy_service_client.go +++ b/internal/mock/v1alpha1_proxy_service_client.go @@ -12,21 +12,21 @@ import ( v1alpha1 "github.com/spacechunks/explorer/api/platformd/proxy/v1alpha1" ) -// MockV1alpha1ProxyServiceClient is an autogenerated mock type for the ProxyServiceClient type -type MockV1alpha1ProxyServiceClient struct { +// Mockv1alpha1ProxyServiceClient is an autogenerated mock type for the ProxyServiceClient type +type Mockv1alpha1ProxyServiceClient struct { mock.Mock } -type MockV1alpha1ProxyServiceClient_Expecter struct { +type Mockv1alpha1ProxyServiceClient_Expecter struct { mock *mock.Mock } -func (_m *MockV1alpha1ProxyServiceClient) EXPECT() *MockV1alpha1ProxyServiceClient_Expecter { - return &MockV1alpha1ProxyServiceClient_Expecter{mock: &_m.Mock} +func (_m *Mockv1alpha1ProxyServiceClient) EXPECT() *Mockv1alpha1ProxyServiceClient_Expecter { + return &Mockv1alpha1ProxyServiceClient_Expecter{mock: &_m.Mock} } // CreateListeners provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha1ProxyServiceClient) CreateListeners(ctx context.Context, in *v1alpha1.CreateListenersRequest, opts ...grpc.CallOption) (*v1alpha1.CreateListenersResponse, error) { +func (_m *Mockv1alpha1ProxyServiceClient) CreateListeners(ctx context.Context, in *v1alpha1.CreateListenersRequest, opts ...grpc.CallOption) (*v1alpha1.CreateListenersResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -62,8 +62,8 @@ func (_m *MockV1alpha1ProxyServiceClient) CreateListeners(ctx context.Context, i return r0, r1 } -// MockV1alpha1ProxyServiceClient_CreateListeners_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateListeners' -type MockV1alpha1ProxyServiceClient_CreateListeners_Call struct { +// Mockv1alpha1ProxyServiceClient_CreateListeners_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateListeners' +type Mockv1alpha1ProxyServiceClient_CreateListeners_Call struct { *mock.Call } @@ -71,12 +71,12 @@ type MockV1alpha1ProxyServiceClient_CreateListeners_Call struct { // - ctx context.Context // - in *v1alpha1.CreateListenersRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha1ProxyServiceClient_Expecter) CreateListeners(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1ProxyServiceClient_CreateListeners_Call { - return &MockV1alpha1ProxyServiceClient_CreateListeners_Call{Call: _e.mock.On("CreateListeners", +func (_e *Mockv1alpha1ProxyServiceClient_Expecter) CreateListeners(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha1ProxyServiceClient_CreateListeners_Call { + return &Mockv1alpha1ProxyServiceClient_CreateListeners_Call{Call: _e.mock.On("CreateListeners", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha1ProxyServiceClient_CreateListeners_Call) Run(run func(ctx context.Context, in *v1alpha1.CreateListenersRequest, opts ...grpc.CallOption)) *MockV1alpha1ProxyServiceClient_CreateListeners_Call { +func (_c *Mockv1alpha1ProxyServiceClient_CreateListeners_Call) Run(run func(ctx context.Context, in *v1alpha1.CreateListenersRequest, opts ...grpc.CallOption)) *Mockv1alpha1ProxyServiceClient_CreateListeners_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -89,18 +89,18 @@ func (_c *MockV1alpha1ProxyServiceClient_CreateListeners_Call) Run(run func(ctx return _c } -func (_c *MockV1alpha1ProxyServiceClient_CreateListeners_Call) Return(_a0 *v1alpha1.CreateListenersResponse, _a1 error) *MockV1alpha1ProxyServiceClient_CreateListeners_Call { +func (_c *Mockv1alpha1ProxyServiceClient_CreateListeners_Call) Return(_a0 *v1alpha1.CreateListenersResponse, _a1 error) *Mockv1alpha1ProxyServiceClient_CreateListeners_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha1ProxyServiceClient_CreateListeners_Call) RunAndReturn(run func(context.Context, *v1alpha1.CreateListenersRequest, ...grpc.CallOption) (*v1alpha1.CreateListenersResponse, error)) *MockV1alpha1ProxyServiceClient_CreateListeners_Call { +func (_c *Mockv1alpha1ProxyServiceClient_CreateListeners_Call) RunAndReturn(run func(context.Context, *v1alpha1.CreateListenersRequest, ...grpc.CallOption) (*v1alpha1.CreateListenersResponse, error)) *Mockv1alpha1ProxyServiceClient_CreateListeners_Call { _c.Call.Return(run) return _c } // DeleteListeners provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha1ProxyServiceClient) DeleteListeners(ctx context.Context, in *v1alpha1.DeleteListenersRequest, opts ...grpc.CallOption) (*v1alpha1.DeleteListenersResponse, error) { +func (_m *Mockv1alpha1ProxyServiceClient) DeleteListeners(ctx context.Context, in *v1alpha1.DeleteListenersRequest, opts ...grpc.CallOption) (*v1alpha1.DeleteListenersResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -136,8 +136,8 @@ func (_m *MockV1alpha1ProxyServiceClient) DeleteListeners(ctx context.Context, i return r0, r1 } -// MockV1alpha1ProxyServiceClient_DeleteListeners_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteListeners' -type MockV1alpha1ProxyServiceClient_DeleteListeners_Call struct { +// Mockv1alpha1ProxyServiceClient_DeleteListeners_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteListeners' +type Mockv1alpha1ProxyServiceClient_DeleteListeners_Call struct { *mock.Call } @@ -145,12 +145,12 @@ type MockV1alpha1ProxyServiceClient_DeleteListeners_Call struct { // - ctx context.Context // - in *v1alpha1.DeleteListenersRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha1ProxyServiceClient_Expecter) DeleteListeners(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1ProxyServiceClient_DeleteListeners_Call { - return &MockV1alpha1ProxyServiceClient_DeleteListeners_Call{Call: _e.mock.On("DeleteListeners", +func (_e *Mockv1alpha1ProxyServiceClient_Expecter) DeleteListeners(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha1ProxyServiceClient_DeleteListeners_Call { + return &Mockv1alpha1ProxyServiceClient_DeleteListeners_Call{Call: _e.mock.On("DeleteListeners", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha1ProxyServiceClient_DeleteListeners_Call) Run(run func(ctx context.Context, in *v1alpha1.DeleteListenersRequest, opts ...grpc.CallOption)) *MockV1alpha1ProxyServiceClient_DeleteListeners_Call { +func (_c *Mockv1alpha1ProxyServiceClient_DeleteListeners_Call) Run(run func(ctx context.Context, in *v1alpha1.DeleteListenersRequest, opts ...grpc.CallOption)) *Mockv1alpha1ProxyServiceClient_DeleteListeners_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -163,23 +163,23 @@ func (_c *MockV1alpha1ProxyServiceClient_DeleteListeners_Call) Run(run func(ctx return _c } -func (_c *MockV1alpha1ProxyServiceClient_DeleteListeners_Call) Return(_a0 *v1alpha1.DeleteListenersResponse, _a1 error) *MockV1alpha1ProxyServiceClient_DeleteListeners_Call { +func (_c *Mockv1alpha1ProxyServiceClient_DeleteListeners_Call) Return(_a0 *v1alpha1.DeleteListenersResponse, _a1 error) *Mockv1alpha1ProxyServiceClient_DeleteListeners_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha1ProxyServiceClient_DeleteListeners_Call) RunAndReturn(run func(context.Context, *v1alpha1.DeleteListenersRequest, ...grpc.CallOption) (*v1alpha1.DeleteListenersResponse, error)) *MockV1alpha1ProxyServiceClient_DeleteListeners_Call { +func (_c *Mockv1alpha1ProxyServiceClient_DeleteListeners_Call) RunAndReturn(run func(context.Context, *v1alpha1.DeleteListenersRequest, ...grpc.CallOption) (*v1alpha1.DeleteListenersResponse, error)) *Mockv1alpha1ProxyServiceClient_DeleteListeners_Call { _c.Call.Return(run) return _c } -// NewMockV1alpha1ProxyServiceClient creates a new instance of MockV1alpha1ProxyServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockv1alpha1ProxyServiceClient creates a new instance of Mockv1alpha1ProxyServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockV1alpha1ProxyServiceClient(t interface { +func NewMockv1alpha1ProxyServiceClient(t interface { mock.TestingT Cleanup(func()) -}) *MockV1alpha1ProxyServiceClient { - mock := &MockV1alpha1ProxyServiceClient{} +}) *Mockv1alpha1ProxyServiceClient { + mock := &Mockv1alpha1ProxyServiceClient{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/v1alpha2_workload_service_client.go b/internal/mock/v1alpha2_workload_service_client.go index c1fd59612..6d2b09b7f 100644 --- a/internal/mock/v1alpha2_workload_service_client.go +++ b/internal/mock/v1alpha2_workload_service_client.go @@ -12,21 +12,21 @@ import ( v1alpha2 "github.com/spacechunks/explorer/api/platformd/workload/v1alpha2" ) -// MockV1alpha2WorkloadServiceClient is an autogenerated mock type for the WorkloadServiceClient type -type MockV1alpha2WorkloadServiceClient struct { +// Mockv1alpha2WorkloadServiceClient is an autogenerated mock type for the WorkloadServiceClient type +type Mockv1alpha2WorkloadServiceClient struct { mock.Mock } -type MockV1alpha2WorkloadServiceClient_Expecter struct { +type Mockv1alpha2WorkloadServiceClient_Expecter struct { mock *mock.Mock } -func (_m *MockV1alpha2WorkloadServiceClient) EXPECT() *MockV1alpha2WorkloadServiceClient_Expecter { - return &MockV1alpha2WorkloadServiceClient_Expecter{mock: &_m.Mock} +func (_m *Mockv1alpha2WorkloadServiceClient) EXPECT() *Mockv1alpha2WorkloadServiceClient_Expecter { + return &Mockv1alpha2WorkloadServiceClient_Expecter{mock: &_m.Mock} } // StopWorkload provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha2WorkloadServiceClient) StopWorkload(ctx context.Context, in *v1alpha2.WorkloadStopRequest, opts ...grpc.CallOption) (*v1alpha2.WorkloadStopResponse, error) { +func (_m *Mockv1alpha2WorkloadServiceClient) StopWorkload(ctx context.Context, in *v1alpha2.WorkloadStopRequest, opts ...grpc.CallOption) (*v1alpha2.WorkloadStopResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -62,8 +62,8 @@ func (_m *MockV1alpha2WorkloadServiceClient) StopWorkload(ctx context.Context, i return r0, r1 } -// MockV1alpha2WorkloadServiceClient_StopWorkload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopWorkload' -type MockV1alpha2WorkloadServiceClient_StopWorkload_Call struct { +// Mockv1alpha2WorkloadServiceClient_StopWorkload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopWorkload' +type Mockv1alpha2WorkloadServiceClient_StopWorkload_Call struct { *mock.Call } @@ -71,12 +71,12 @@ type MockV1alpha2WorkloadServiceClient_StopWorkload_Call struct { // - ctx context.Context // - in *v1alpha2.WorkloadStopRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha2WorkloadServiceClient_Expecter) StopWorkload(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha2WorkloadServiceClient_StopWorkload_Call { - return &MockV1alpha2WorkloadServiceClient_StopWorkload_Call{Call: _e.mock.On("StopWorkload", +func (_e *Mockv1alpha2WorkloadServiceClient_Expecter) StopWorkload(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha2WorkloadServiceClient_StopWorkload_Call { + return &Mockv1alpha2WorkloadServiceClient_StopWorkload_Call{Call: _e.mock.On("StopWorkload", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha2WorkloadServiceClient_StopWorkload_Call) Run(run func(ctx context.Context, in *v1alpha2.WorkloadStopRequest, opts ...grpc.CallOption)) *MockV1alpha2WorkloadServiceClient_StopWorkload_Call { +func (_c *Mockv1alpha2WorkloadServiceClient_StopWorkload_Call) Run(run func(ctx context.Context, in *v1alpha2.WorkloadStopRequest, opts ...grpc.CallOption)) *Mockv1alpha2WorkloadServiceClient_StopWorkload_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -89,18 +89,18 @@ func (_c *MockV1alpha2WorkloadServiceClient_StopWorkload_Call) Run(run func(ctx return _c } -func (_c *MockV1alpha2WorkloadServiceClient_StopWorkload_Call) Return(_a0 *v1alpha2.WorkloadStopResponse, _a1 error) *MockV1alpha2WorkloadServiceClient_StopWorkload_Call { +func (_c *Mockv1alpha2WorkloadServiceClient_StopWorkload_Call) Return(_a0 *v1alpha2.WorkloadStopResponse, _a1 error) *Mockv1alpha2WorkloadServiceClient_StopWorkload_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha2WorkloadServiceClient_StopWorkload_Call) RunAndReturn(run func(context.Context, *v1alpha2.WorkloadStopRequest, ...grpc.CallOption) (*v1alpha2.WorkloadStopResponse, error)) *MockV1alpha2WorkloadServiceClient_StopWorkload_Call { +func (_c *Mockv1alpha2WorkloadServiceClient_StopWorkload_Call) RunAndReturn(run func(context.Context, *v1alpha2.WorkloadStopRequest, ...grpc.CallOption) (*v1alpha2.WorkloadStopResponse, error)) *Mockv1alpha2WorkloadServiceClient_StopWorkload_Call { _c.Call.Return(run) return _c } // WorkloadMetadata provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha2WorkloadServiceClient) WorkloadMetadata(ctx context.Context, in *v1alpha2.WorkloadMetadataRequest, opts ...grpc.CallOption) (*v1alpha2.WorkloadMetadataResponse, error) { +func (_m *Mockv1alpha2WorkloadServiceClient) WorkloadMetadata(ctx context.Context, in *v1alpha2.WorkloadMetadataRequest, opts ...grpc.CallOption) (*v1alpha2.WorkloadMetadataResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -136,8 +136,8 @@ func (_m *MockV1alpha2WorkloadServiceClient) WorkloadMetadata(ctx context.Contex return r0, r1 } -// MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkloadMetadata' -type MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call struct { +// Mockv1alpha2WorkloadServiceClient_WorkloadMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkloadMetadata' +type Mockv1alpha2WorkloadServiceClient_WorkloadMetadata_Call struct { *mock.Call } @@ -145,12 +145,12 @@ type MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call struct { // - ctx context.Context // - in *v1alpha2.WorkloadMetadataRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha2WorkloadServiceClient_Expecter) WorkloadMetadata(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call { - return &MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call{Call: _e.mock.On("WorkloadMetadata", +func (_e *Mockv1alpha2WorkloadServiceClient_Expecter) WorkloadMetadata(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha2WorkloadServiceClient_WorkloadMetadata_Call { + return &Mockv1alpha2WorkloadServiceClient_WorkloadMetadata_Call{Call: _e.mock.On("WorkloadMetadata", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call) Run(run func(ctx context.Context, in *v1alpha2.WorkloadMetadataRequest, opts ...grpc.CallOption)) *MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call { +func (_c *Mockv1alpha2WorkloadServiceClient_WorkloadMetadata_Call) Run(run func(ctx context.Context, in *v1alpha2.WorkloadMetadataRequest, opts ...grpc.CallOption)) *Mockv1alpha2WorkloadServiceClient_WorkloadMetadata_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -163,18 +163,18 @@ func (_c *MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call) Run(run func( return _c } -func (_c *MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call) Return(_a0 *v1alpha2.WorkloadMetadataResponse, _a1 error) *MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call { +func (_c *Mockv1alpha2WorkloadServiceClient_WorkloadMetadata_Call) Return(_a0 *v1alpha2.WorkloadMetadataResponse, _a1 error) *Mockv1alpha2WorkloadServiceClient_WorkloadMetadata_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call) RunAndReturn(run func(context.Context, *v1alpha2.WorkloadMetadataRequest, ...grpc.CallOption) (*v1alpha2.WorkloadMetadataResponse, error)) *MockV1alpha2WorkloadServiceClient_WorkloadMetadata_Call { +func (_c *Mockv1alpha2WorkloadServiceClient_WorkloadMetadata_Call) RunAndReturn(run func(context.Context, *v1alpha2.WorkloadMetadataRequest, ...grpc.CallOption) (*v1alpha2.WorkloadMetadataResponse, error)) *Mockv1alpha2WorkloadServiceClient_WorkloadMetadata_Call { _c.Call.Return(run) return _c } // WorkloadStatus provides a mock function with given fields: ctx, in, opts -func (_m *MockV1alpha2WorkloadServiceClient) WorkloadStatus(ctx context.Context, in *v1alpha2.WorkloadStatusRequest, opts ...grpc.CallOption) (*v1alpha2.WorkloadStatusResponse, error) { +func (_m *Mockv1alpha2WorkloadServiceClient) WorkloadStatus(ctx context.Context, in *v1alpha2.WorkloadStatusRequest, opts ...grpc.CallOption) (*v1alpha2.WorkloadStatusResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -210,8 +210,8 @@ func (_m *MockV1alpha2WorkloadServiceClient) WorkloadStatus(ctx context.Context, return r0, r1 } -// MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkloadStatus' -type MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call struct { +// Mockv1alpha2WorkloadServiceClient_WorkloadStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkloadStatus' +type Mockv1alpha2WorkloadServiceClient_WorkloadStatus_Call struct { *mock.Call } @@ -219,12 +219,12 @@ type MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call struct { // - ctx context.Context // - in *v1alpha2.WorkloadStatusRequest // - opts ...grpc.CallOption -func (_e *MockV1alpha2WorkloadServiceClient_Expecter) WorkloadStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call { - return &MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call{Call: _e.mock.On("WorkloadStatus", +func (_e *Mockv1alpha2WorkloadServiceClient_Expecter) WorkloadStatus(ctx interface{}, in interface{}, opts ...interface{}) *Mockv1alpha2WorkloadServiceClient_WorkloadStatus_Call { + return &Mockv1alpha2WorkloadServiceClient_WorkloadStatus_Call{Call: _e.mock.On("WorkloadStatus", append([]interface{}{ctx, in}, opts...)...)} } -func (_c *MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call) Run(run func(ctx context.Context, in *v1alpha2.WorkloadStatusRequest, opts ...grpc.CallOption)) *MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call { +func (_c *Mockv1alpha2WorkloadServiceClient_WorkloadStatus_Call) Run(run func(ctx context.Context, in *v1alpha2.WorkloadStatusRequest, opts ...grpc.CallOption)) *Mockv1alpha2WorkloadServiceClient_WorkloadStatus_Call { _c.Call.Run(func(args mock.Arguments) { variadicArgs := make([]grpc.CallOption, len(args)-2) for i, a := range args[2:] { @@ -237,23 +237,23 @@ func (_c *MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call) Run(run func(ct return _c } -func (_c *MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call) Return(_a0 *v1alpha2.WorkloadStatusResponse, _a1 error) *MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call { +func (_c *Mockv1alpha2WorkloadServiceClient_WorkloadStatus_Call) Return(_a0 *v1alpha2.WorkloadStatusResponse, _a1 error) *Mockv1alpha2WorkloadServiceClient_WorkloadStatus_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call) RunAndReturn(run func(context.Context, *v1alpha2.WorkloadStatusRequest, ...grpc.CallOption) (*v1alpha2.WorkloadStatusResponse, error)) *MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call { +func (_c *Mockv1alpha2WorkloadServiceClient_WorkloadStatus_Call) RunAndReturn(run func(context.Context, *v1alpha2.WorkloadStatusRequest, ...grpc.CallOption) (*v1alpha2.WorkloadStatusResponse, error)) *Mockv1alpha2WorkloadServiceClient_WorkloadStatus_Call { _c.Call.Return(run) return _c } -// NewMockV1alpha2WorkloadServiceClient creates a new instance of MockV1alpha2WorkloadServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockv1alpha2WorkloadServiceClient creates a new instance of Mockv1alpha2WorkloadServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockV1alpha2WorkloadServiceClient(t interface { +func NewMockv1alpha2WorkloadServiceClient(t interface { mock.TestingT Cleanup(func()) -}) *MockV1alpha2WorkloadServiceClient { - mock := &MockV1alpha2WorkloadServiceClient{} +}) *Mockv1alpha2WorkloadServiceClient { + mock := &Mockv1alpha2WorkloadServiceClient{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/workload_service.go b/internal/mock/workload_service.go index 42f7d764d..857098cc6 100644 --- a/internal/mock/workload_service.go +++ b/internal/mock/workload_service.go @@ -11,21 +11,21 @@ import ( workload "github.com/spacechunks/explorer/platformd/workload" ) -// MockWorkloadService is an autogenerated mock type for the Service type -type MockWorkloadService struct { +// MockworkloadService is an autogenerated mock type for the Service type +type MockworkloadService struct { mock.Mock } -type MockWorkloadService_Expecter struct { +type MockworkloadService_Expecter struct { mock *mock.Mock } -func (_m *MockWorkloadService) EXPECT() *MockWorkloadService_Expecter { - return &MockWorkloadService_Expecter{mock: &_m.Mock} +func (_m *MockworkloadService) EXPECT() *MockworkloadService_Expecter { + return &MockworkloadService_Expecter{mock: &_m.Mock} } // GetWorkloadHealth provides a mock function with given fields: ctx, id -func (_m *MockWorkloadService) GetWorkloadHealth(ctx context.Context, id string) (status.WorkloadHealthStatus, error) { +func (_m *MockworkloadService) GetWorkloadHealth(ctx context.Context, id string) (status.WorkloadHealthStatus, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -52,37 +52,37 @@ func (_m *MockWorkloadService) GetWorkloadHealth(ctx context.Context, id string) return r0, r1 } -// MockWorkloadService_GetWorkloadHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkloadHealth' -type MockWorkloadService_GetWorkloadHealth_Call struct { +// MockworkloadService_GetWorkloadHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkloadHealth' +type MockworkloadService_GetWorkloadHealth_Call struct { *mock.Call } // GetWorkloadHealth is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockWorkloadService_Expecter) GetWorkloadHealth(ctx interface{}, id interface{}) *MockWorkloadService_GetWorkloadHealth_Call { - return &MockWorkloadService_GetWorkloadHealth_Call{Call: _e.mock.On("GetWorkloadHealth", ctx, id)} +func (_e *MockworkloadService_Expecter) GetWorkloadHealth(ctx interface{}, id interface{}) *MockworkloadService_GetWorkloadHealth_Call { + return &MockworkloadService_GetWorkloadHealth_Call{Call: _e.mock.On("GetWorkloadHealth", ctx, id)} } -func (_c *MockWorkloadService_GetWorkloadHealth_Call) Run(run func(ctx context.Context, id string)) *MockWorkloadService_GetWorkloadHealth_Call { +func (_c *MockworkloadService_GetWorkloadHealth_Call) Run(run func(ctx context.Context, id string)) *MockworkloadService_GetWorkloadHealth_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockWorkloadService_GetWorkloadHealth_Call) Return(_a0 status.WorkloadHealthStatus, _a1 error) *MockWorkloadService_GetWorkloadHealth_Call { +func (_c *MockworkloadService_GetWorkloadHealth_Call) Return(_a0 status.WorkloadHealthStatus, _a1 error) *MockworkloadService_GetWorkloadHealth_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockWorkloadService_GetWorkloadHealth_Call) RunAndReturn(run func(context.Context, string) (status.WorkloadHealthStatus, error)) *MockWorkloadService_GetWorkloadHealth_Call { +func (_c *MockworkloadService_GetWorkloadHealth_Call) RunAndReturn(run func(context.Context, string) (status.WorkloadHealthStatus, error)) *MockworkloadService_GetWorkloadHealth_Call { _c.Call.Return(run) return _c } // RemoveWorkload provides a mock function with given fields: ctx, id -func (_m *MockWorkloadService) RemoveWorkload(ctx context.Context, id string) error { +func (_m *MockworkloadService) RemoveWorkload(ctx context.Context, id string) error { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -99,37 +99,37 @@ func (_m *MockWorkloadService) RemoveWorkload(ctx context.Context, id string) er return r0 } -// MockWorkloadService_RemoveWorkload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveWorkload' -type MockWorkloadService_RemoveWorkload_Call struct { +// MockworkloadService_RemoveWorkload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveWorkload' +type MockworkloadService_RemoveWorkload_Call struct { *mock.Call } // RemoveWorkload is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockWorkloadService_Expecter) RemoveWorkload(ctx interface{}, id interface{}) *MockWorkloadService_RemoveWorkload_Call { - return &MockWorkloadService_RemoveWorkload_Call{Call: _e.mock.On("RemoveWorkload", ctx, id)} +func (_e *MockworkloadService_Expecter) RemoveWorkload(ctx interface{}, id interface{}) *MockworkloadService_RemoveWorkload_Call { + return &MockworkloadService_RemoveWorkload_Call{Call: _e.mock.On("RemoveWorkload", ctx, id)} } -func (_c *MockWorkloadService_RemoveWorkload_Call) Run(run func(ctx context.Context, id string)) *MockWorkloadService_RemoveWorkload_Call { +func (_c *MockworkloadService_RemoveWorkload_Call) Run(run func(ctx context.Context, id string)) *MockworkloadService_RemoveWorkload_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockWorkloadService_RemoveWorkload_Call) Return(_a0 error) *MockWorkloadService_RemoveWorkload_Call { +func (_c *MockworkloadService_RemoveWorkload_Call) Return(_a0 error) *MockworkloadService_RemoveWorkload_Call { _c.Call.Return(_a0) return _c } -func (_c *MockWorkloadService_RemoveWorkload_Call) RunAndReturn(run func(context.Context, string) error) *MockWorkloadService_RemoveWorkload_Call { +func (_c *MockworkloadService_RemoveWorkload_Call) RunAndReturn(run func(context.Context, string) error) *MockworkloadService_RemoveWorkload_Call { _c.Call.Return(run) return _c } // RunWorkload provides a mock function with given fields: ctx, w, attempt -func (_m *MockWorkloadService) RunWorkload(ctx context.Context, w workload.Workload, attempt uint) error { +func (_m *MockworkloadService) RunWorkload(ctx context.Context, w workload.Workload, attempt uint) error { ret := _m.Called(ctx, w, attempt) if len(ret) == 0 { @@ -146,8 +146,8 @@ func (_m *MockWorkloadService) RunWorkload(ctx context.Context, w workload.Workl return r0 } -// MockWorkloadService_RunWorkload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunWorkload' -type MockWorkloadService_RunWorkload_Call struct { +// MockworkloadService_RunWorkload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunWorkload' +type MockworkloadService_RunWorkload_Call struct { *mock.Call } @@ -155,29 +155,29 @@ type MockWorkloadService_RunWorkload_Call struct { // - ctx context.Context // - w workload.Workload // - attempt uint -func (_e *MockWorkloadService_Expecter) RunWorkload(ctx interface{}, w interface{}, attempt interface{}) *MockWorkloadService_RunWorkload_Call { - return &MockWorkloadService_RunWorkload_Call{Call: _e.mock.On("RunWorkload", ctx, w, attempt)} +func (_e *MockworkloadService_Expecter) RunWorkload(ctx interface{}, w interface{}, attempt interface{}) *MockworkloadService_RunWorkload_Call { + return &MockworkloadService_RunWorkload_Call{Call: _e.mock.On("RunWorkload", ctx, w, attempt)} } -func (_c *MockWorkloadService_RunWorkload_Call) Run(run func(ctx context.Context, w workload.Workload, attempt uint)) *MockWorkloadService_RunWorkload_Call { +func (_c *MockworkloadService_RunWorkload_Call) Run(run func(ctx context.Context, w workload.Workload, attempt uint)) *MockworkloadService_RunWorkload_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(workload.Workload), args[2].(uint)) }) return _c } -func (_c *MockWorkloadService_RunWorkload_Call) Return(_a0 error) *MockWorkloadService_RunWorkload_Call { +func (_c *MockworkloadService_RunWorkload_Call) Return(_a0 error) *MockworkloadService_RunWorkload_Call { _c.Call.Return(_a0) return _c } -func (_c *MockWorkloadService_RunWorkload_Call) RunAndReturn(run func(context.Context, workload.Workload, uint) error) *MockWorkloadService_RunWorkload_Call { +func (_c *MockworkloadService_RunWorkload_Call) RunAndReturn(run func(context.Context, workload.Workload, uint) error) *MockworkloadService_RunWorkload_Call { _c.Call.Return(run) return _c } // WorkloadMetadata provides a mock function with given fields: ctx, id -func (_m *MockWorkloadService) WorkloadMetadata(ctx context.Context, id string) (workload.Metadata, error) { +func (_m *MockworkloadService) WorkloadMetadata(ctx context.Context, id string) (workload.Metadata, error) { ret := _m.Called(ctx, id) if len(ret) == 0 { @@ -204,42 +204,42 @@ func (_m *MockWorkloadService) WorkloadMetadata(ctx context.Context, id string) return r0, r1 } -// MockWorkloadService_WorkloadMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkloadMetadata' -type MockWorkloadService_WorkloadMetadata_Call struct { +// MockworkloadService_WorkloadMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkloadMetadata' +type MockworkloadService_WorkloadMetadata_Call struct { *mock.Call } // WorkloadMetadata is a helper method to define mock.On call // - ctx context.Context // - id string -func (_e *MockWorkloadService_Expecter) WorkloadMetadata(ctx interface{}, id interface{}) *MockWorkloadService_WorkloadMetadata_Call { - return &MockWorkloadService_WorkloadMetadata_Call{Call: _e.mock.On("WorkloadMetadata", ctx, id)} +func (_e *MockworkloadService_Expecter) WorkloadMetadata(ctx interface{}, id interface{}) *MockworkloadService_WorkloadMetadata_Call { + return &MockworkloadService_WorkloadMetadata_Call{Call: _e.mock.On("WorkloadMetadata", ctx, id)} } -func (_c *MockWorkloadService_WorkloadMetadata_Call) Run(run func(ctx context.Context, id string)) *MockWorkloadService_WorkloadMetadata_Call { +func (_c *MockworkloadService_WorkloadMetadata_Call) Run(run func(ctx context.Context, id string)) *MockworkloadService_WorkloadMetadata_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockWorkloadService_WorkloadMetadata_Call) Return(_a0 workload.Metadata, _a1 error) *MockWorkloadService_WorkloadMetadata_Call { +func (_c *MockworkloadService_WorkloadMetadata_Call) Return(_a0 workload.Metadata, _a1 error) *MockworkloadService_WorkloadMetadata_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockWorkloadService_WorkloadMetadata_Call) RunAndReturn(run func(context.Context, string) (workload.Metadata, error)) *MockWorkloadService_WorkloadMetadata_Call { +func (_c *MockworkloadService_WorkloadMetadata_Call) RunAndReturn(run func(context.Context, string) (workload.Metadata, error)) *MockworkloadService_WorkloadMetadata_Call { _c.Call.Return(run) return _c } -// NewMockWorkloadService creates a new instance of MockWorkloadService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockworkloadService creates a new instance of MockworkloadService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockWorkloadService(t interface { +func NewMockworkloadService(t interface { mock.TestingT Cleanup(func()) -}) *MockWorkloadService { - mock := &MockWorkloadService{} +}) *MockworkloadService { + mock := &MockworkloadService{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/internal/mock/xds_map.go b/internal/mock/xds_map.go index 394cc79ab..1c00aaa60 100644 --- a/internal/mock/xds_map.go +++ b/internal/mock/xds_map.go @@ -12,21 +12,21 @@ import ( xds "github.com/spacechunks/explorer/platformd/proxy/xds" ) -// MockXdsMap is an autogenerated mock type for the Map type -type MockXdsMap struct { +// MockxdsMap is an autogenerated mock type for the Map type +type MockxdsMap struct { mock.Mock } -type MockXdsMap_Expecter struct { +type MockxdsMap_Expecter struct { mock *mock.Mock } -func (_m *MockXdsMap) EXPECT() *MockXdsMap_Expecter { - return &MockXdsMap_Expecter{mock: &_m.Mock} +func (_m *MockxdsMap) EXPECT() *MockxdsMap_Expecter { + return &MockxdsMap_Expecter{mock: &_m.Mock} } // Del provides a mock function with given fields: ctx, key -func (_m *MockXdsMap) Del(ctx context.Context, key string) (*cache.Snapshot, error) { +func (_m *MockxdsMap) Del(ctx context.Context, key string) (*cache.Snapshot, error) { ret := _m.Called(ctx, key) if len(ret) == 0 { @@ -55,37 +55,37 @@ func (_m *MockXdsMap) Del(ctx context.Context, key string) (*cache.Snapshot, err return r0, r1 } -// MockXdsMap_Del_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Del' -type MockXdsMap_Del_Call struct { +// MockxdsMap_Del_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Del' +type MockxdsMap_Del_Call struct { *mock.Call } // Del is a helper method to define mock.On call // - ctx context.Context // - key string -func (_e *MockXdsMap_Expecter) Del(ctx interface{}, key interface{}) *MockXdsMap_Del_Call { - return &MockXdsMap_Del_Call{Call: _e.mock.On("Del", ctx, key)} +func (_e *MockxdsMap_Expecter) Del(ctx interface{}, key interface{}) *MockxdsMap_Del_Call { + return &MockxdsMap_Del_Call{Call: _e.mock.On("Del", ctx, key)} } -func (_c *MockXdsMap_Del_Call) Run(run func(ctx context.Context, key string)) *MockXdsMap_Del_Call { +func (_c *MockxdsMap_Del_Call) Run(run func(ctx context.Context, key string)) *MockxdsMap_Del_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string)) }) return _c } -func (_c *MockXdsMap_Del_Call) Return(_a0 *cache.Snapshot, _a1 error) *MockXdsMap_Del_Call { +func (_c *MockxdsMap_Del_Call) Return(_a0 *cache.Snapshot, _a1 error) *MockxdsMap_Del_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockXdsMap_Del_Call) RunAndReturn(run func(context.Context, string) (*cache.Snapshot, error)) *MockXdsMap_Del_Call { +func (_c *MockxdsMap_Del_Call) RunAndReturn(run func(context.Context, string) (*cache.Snapshot, error)) *MockxdsMap_Del_Call { _c.Call.Return(run) return _c } // Get provides a mock function with given fields: key -func (_m *MockXdsMap) Get(key string) xds.ResourceGroup { +func (_m *MockxdsMap) Get(key string) xds.ResourceGroup { ret := _m.Called(key) if len(ret) == 0 { @@ -102,36 +102,36 @@ func (_m *MockXdsMap) Get(key string) xds.ResourceGroup { return r0 } -// MockXdsMap_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get' -type MockXdsMap_Get_Call struct { +// MockxdsMap_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get' +type MockxdsMap_Get_Call struct { *mock.Call } // Get is a helper method to define mock.On call // - key string -func (_e *MockXdsMap_Expecter) Get(key interface{}) *MockXdsMap_Get_Call { - return &MockXdsMap_Get_Call{Call: _e.mock.On("Get", key)} +func (_e *MockxdsMap_Expecter) Get(key interface{}) *MockxdsMap_Get_Call { + return &MockxdsMap_Get_Call{Call: _e.mock.On("Get", key)} } -func (_c *MockXdsMap_Get_Call) Run(run func(key string)) *MockXdsMap_Get_Call { +func (_c *MockxdsMap_Get_Call) Run(run func(key string)) *MockxdsMap_Get_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string)) }) return _c } -func (_c *MockXdsMap_Get_Call) Return(_a0 xds.ResourceGroup) *MockXdsMap_Get_Call { +func (_c *MockxdsMap_Get_Call) Return(_a0 xds.ResourceGroup) *MockxdsMap_Get_Call { _c.Call.Return(_a0) return _c } -func (_c *MockXdsMap_Get_Call) RunAndReturn(run func(string) xds.ResourceGroup) *MockXdsMap_Get_Call { +func (_c *MockxdsMap_Get_Call) RunAndReturn(run func(string) xds.ResourceGroup) *MockxdsMap_Get_Call { _c.Call.Return(run) return _c } // Put provides a mock function with given fields: ctx, key, rg -func (_m *MockXdsMap) Put(ctx context.Context, key string, rg xds.ResourceGroup) (*cache.Snapshot, error) { +func (_m *MockxdsMap) Put(ctx context.Context, key string, rg xds.ResourceGroup) (*cache.Snapshot, error) { ret := _m.Called(ctx, key, rg) if len(ret) == 0 { @@ -160,8 +160,8 @@ func (_m *MockXdsMap) Put(ctx context.Context, key string, rg xds.ResourceGroup) return r0, r1 } -// MockXdsMap_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put' -type MockXdsMap_Put_Call struct { +// MockxdsMap_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put' +type MockxdsMap_Put_Call struct { *mock.Call } @@ -169,34 +169,34 @@ type MockXdsMap_Put_Call struct { // - ctx context.Context // - key string // - rg xds.ResourceGroup -func (_e *MockXdsMap_Expecter) Put(ctx interface{}, key interface{}, rg interface{}) *MockXdsMap_Put_Call { - return &MockXdsMap_Put_Call{Call: _e.mock.On("Put", ctx, key, rg)} +func (_e *MockxdsMap_Expecter) Put(ctx interface{}, key interface{}, rg interface{}) *MockxdsMap_Put_Call { + return &MockxdsMap_Put_Call{Call: _e.mock.On("Put", ctx, key, rg)} } -func (_c *MockXdsMap_Put_Call) Run(run func(ctx context.Context, key string, rg xds.ResourceGroup)) *MockXdsMap_Put_Call { +func (_c *MockxdsMap_Put_Call) Run(run func(ctx context.Context, key string, rg xds.ResourceGroup)) *MockxdsMap_Put_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(string), args[2].(xds.ResourceGroup)) }) return _c } -func (_c *MockXdsMap_Put_Call) Return(_a0 *cache.Snapshot, _a1 error) *MockXdsMap_Put_Call { +func (_c *MockxdsMap_Put_Call) Return(_a0 *cache.Snapshot, _a1 error) *MockxdsMap_Put_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockXdsMap_Put_Call) RunAndReturn(run func(context.Context, string, xds.ResourceGroup) (*cache.Snapshot, error)) *MockXdsMap_Put_Call { +func (_c *MockxdsMap_Put_Call) RunAndReturn(run func(context.Context, string, xds.ResourceGroup) (*cache.Snapshot, error)) *MockxdsMap_Put_Call { _c.Call.Return(run) return _c } -// NewMockXdsMap creates a new instance of MockXdsMap. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// NewMockxdsMap creates a new instance of MockxdsMap. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. -func NewMockXdsMap(t interface { +func NewMockxdsMap(t interface { mock.TestingT Cleanup(func()) -}) *MockXdsMap { - mock := &MockXdsMap{} +}) *MockxdsMap { + mock := &MockxdsMap{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) diff --git a/vendor/github.com/huandu/xstrings/README.md b/vendor/github.com/huandu/xstrings/README.md index 750c3c7eb..e809c79ab 100644 --- a/vendor/github.com/huandu/xstrings/README.md +++ b/vendor/github.com/huandu/xstrings/README.md @@ -39,8 +39,8 @@ _Keep this table sorted by Function in ascending order._ | [Count](https://godoc.org/github.com/huandu/xstrings#Count) | `String#count` in Ruby | [#16](https://github.com/huandu/xstrings/issues/16) | | [Delete](https://godoc.org/github.com/huandu/xstrings#Delete) | `String#delete` in Ruby | [#17](https://github.com/huandu/xstrings/issues/17) | | [ExpandTabs](https://godoc.org/github.com/huandu/xstrings#ExpandTabs) | `str.expandtabs` in Python | [#27](https://github.com/huandu/xstrings/issues/27) | -| [FirstRuneToLower](https://godoc.org/github.com/huandu/xstrings#FirstRuneToLower) | `lcfirst` in PHP or Perl | [#15](https://github.com/huandu/xstrings/issues/15) | -| [FirstRuneToUpper](https://godoc.org/github.com/huandu/xstrings#FirstRuneToUpper) | `String#capitalize` in Ruby; `ucfirst` in PHP or Perl | [#15](https://github.com/huandu/xstrings/issues/15) | +| [FirstRuneToLower](https://godoc.org/github.com/huandu/xstrings#FirstRuneToLower) | `lcfirst` in PHP or Perl | [#15](https://github.com/huandu/xstrings/issues/15) | +| [FirstRuneToUpper](https://godoc.org/github.com/huandu/xstrings#FirstRuneToUpper) | `String#capitalize` in Ruby; `ucfirst` in PHP or Perl | [#15](https://github.com/huandu/xstrings/issues/15) | | [Insert](https://godoc.org/github.com/huandu/xstrings#Insert) | `String#insert` in Ruby | [#18](https://github.com/huandu/xstrings/issues/18) | | [LastPartition](https://godoc.org/github.com/huandu/xstrings#LastPartition) | `str.rpartition` in Python; `String#rpartition` in Ruby | [#19](https://github.com/huandu/xstrings/issues/19) | | [LeftJustify](https://godoc.org/github.com/huandu/xstrings#LeftJustify) | `str.ljust` in Python; `String#ljust` in Ruby | [#28](https://github.com/huandu/xstrings/issues/28) | @@ -50,14 +50,15 @@ _Keep this table sorted by Function in ascending order._ | [RightJustify](https://godoc.org/github.com/huandu/xstrings#RightJustify) | `str.rjust` in Python; `String#rjust` in Ruby | [#29](https://github.com/huandu/xstrings/issues/29) | | [RuneWidth](https://godoc.org/github.com/huandu/xstrings#RuneWidth) | - | [#27](https://github.com/huandu/xstrings/issues/27) | | [Scrub](https://godoc.org/github.com/huandu/xstrings#Scrub) | `String#scrub` in Ruby | [#20](https://github.com/huandu/xstrings/issues/20) | -| [Shuffle](https://godoc.org/github.com/huandu/xstrings#Shuffle) | `str_shuffle` in PHP | [#13](https://github.com/huandu/xstrings/issues/13) | -| [ShuffleSource](https://godoc.org/github.com/huandu/xstrings#ShuffleSource) | `str_shuffle` in PHP | [#13](https://github.com/huandu/xstrings/issues/13) | +| [Shuffle](https://godoc.org/github.com/huandu/xstrings#Shuffle) | `str_shuffle` in PHP | [#13](https://github.com/huandu/xstrings/issues/13) | +| [ShuffleSource](https://godoc.org/github.com/huandu/xstrings#ShuffleSource) | `str_shuffle` in PHP | [#13](https://github.com/huandu/xstrings/issues/13) | | [Slice](https://godoc.org/github.com/huandu/xstrings#Slice) | `mb_substr` in PHP | [#9](https://github.com/huandu/xstrings/issues/9) | | [Squeeze](https://godoc.org/github.com/huandu/xstrings#Squeeze) | `String#squeeze` in Ruby | [#11](https://github.com/huandu/xstrings/issues/11) | | [Successor](https://godoc.org/github.com/huandu/xstrings#Successor) | `String#succ` or `String#next` in Ruby | [#22](https://github.com/huandu/xstrings/issues/22) | | [SwapCase](https://godoc.org/github.com/huandu/xstrings#SwapCase) | `str.swapcase` in Python; `String#swapcase` in Ruby | [#12](https://github.com/huandu/xstrings/issues/12) | | [ToCamelCase](https://godoc.org/github.com/huandu/xstrings#ToCamelCase) | `String#camelize` in RoR | [#1](https://github.com/huandu/xstrings/issues/1) | | [ToKebab](https://godoc.org/github.com/huandu/xstrings#ToKebabCase) | - | [#41](https://github.com/huandu/xstrings/issues/41) | +| [ToPascalCase](https://godoc.org/github.com/huandu/xstrings#ToPascalCase) | - | [#1](https://github.com/huandu/xstrings/issues/1) | | [ToSnakeCase](https://godoc.org/github.com/huandu/xstrings#ToSnakeCase) | `String#underscore` in RoR | [#1](https://github.com/huandu/xstrings/issues/1) | | [Translate](https://godoc.org/github.com/huandu/xstrings#Translate) | `str.translate` in Python; `String#tr` in Ruby; `strtr` in PHP; `tr///` in Perl | [#21](https://github.com/huandu/xstrings/issues/21) | | [Width](https://godoc.org/github.com/huandu/xstrings#Width) | `mb_strwidth` in PHP | [#26](https://github.com/huandu/xstrings/issues/26) | diff --git a/vendor/github.com/huandu/xstrings/convert.go b/vendor/github.com/huandu/xstrings/convert.go index cba0d0725..5d8cfee47 100644 --- a/vendor/github.com/huandu/xstrings/convert.go +++ b/vendor/github.com/huandu/xstrings/convert.go @@ -13,17 +13,37 @@ import ( // // Some samples. // +// "some_words" => "someWords" +// "http_server" => "httpServer" +// "no_https" => "noHttps" +// "_complex__case_" => "_complex_Case_" +// "some words" => "someWords" +// "GOLANG_IS_GREAT" => "golangIsGreat" +func ToCamelCase(str string) string { + return toCamelCase(str, false) +} + +// ToPascalCase is to convert words separated by space, underscore and hyphen to pascal case. +// +// Some samples. +// // "some_words" => "SomeWords" // "http_server" => "HttpServer" // "no_https" => "NoHttps" // "_complex__case_" => "_Complex_Case_" // "some words" => "SomeWords" -func ToCamelCase(str string) string { +// "GOLANG_IS_GREAT" => "GolangIsGreat" +func ToPascalCase(str string) string { + return toCamelCase(str, true) +} + +func toCamelCase(str string, isBig bool) string { if len(str) == 0 { return "" } buf := &stringBuilder{} + var isFirstRuneUpper bool var r0, r1 rune var size int @@ -33,7 +53,14 @@ func ToCamelCase(str string) string { str = str[size:] if !isConnector(r0) { - r0 = unicode.ToUpper(r0) + isFirstRuneUpper = unicode.IsUpper(r0) + + if isBig { + r0 = unicode.ToUpper(r0) + } else { + r0 = unicode.ToLower(r0) + } + break } @@ -60,12 +87,25 @@ func ToCamelCase(str string) string { } if isConnector(r1) { + isFirstRuneUpper = unicode.IsUpper(r0) r0 = unicode.ToUpper(r0) } else { + if isFirstRuneUpper { + if unicode.IsUpper(r0) { + r0 = unicode.ToLower(r0) + } else { + isFirstRuneUpper = false + } + } + buf.WriteRune(r1) } } + if isFirstRuneUpper && !isBig { + r0 = unicode.ToLower(r0) + } + buf.WriteRune(r0) return buf.String() } diff --git a/vendor/modules.txt b/vendor/modules.txt index 9bdc32f7a..b9360ce58 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -491,7 +491,7 @@ github.com/hetznercloud/hcloud-go/v2/hcloud/internal/instrumentation github.com/hetznercloud/hcloud-go/v2/hcloud/internal/util github.com/hetznercloud/hcloud-go/v2/hcloud/internal/version github.com/hetznercloud/hcloud-go/v2/hcloud/schema -# github.com/huandu/xstrings v1.4.0 +# github.com/huandu/xstrings v1.5.0 ## explicit; go 1.12 github.com/huandu/xstrings # github.com/iancoleman/strcase v0.3.0