github.com/argoproj/argo-cd/v3@v3.2.1/util/db/mocks/ArgoDB.go (about)

     1  // Code generated by mockery; DO NOT EDIT.
     2  // github.com/vektra/mockery
     3  // template: testify
     4  
     5  package mocks
     6  
     7  import (
     8  	"context"
     9  
    10  	"github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
    11  	"github.com/argoproj/argo-cd/v3/util/db"
    12  	mock "github.com/stretchr/testify/mock"
    13  )
    14  
    15  // NewArgoDB creates a new instance of ArgoDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    16  // The first argument is typically a *testing.T value.
    17  func NewArgoDB(t interface {
    18  	mock.TestingT
    19  	Cleanup(func())
    20  }) *ArgoDB {
    21  	mock := &ArgoDB{}
    22  	mock.Mock.Test(t)
    23  
    24  	t.Cleanup(func() { mock.AssertExpectations(t) })
    25  
    26  	return mock
    27  }
    28  
    29  // ArgoDB is an autogenerated mock type for the ArgoDB type
    30  type ArgoDB struct {
    31  	mock.Mock
    32  }
    33  
    34  type ArgoDB_Expecter struct {
    35  	mock *mock.Mock
    36  }
    37  
    38  func (_m *ArgoDB) EXPECT() *ArgoDB_Expecter {
    39  	return &ArgoDB_Expecter{mock: &_m.Mock}
    40  }
    41  
    42  // AddGPGPublicKey provides a mock function for the type ArgoDB
    43  func (_mock *ArgoDB) AddGPGPublicKey(ctx context.Context, keyData string) (map[string]*v1alpha1.GnuPGPublicKey, []string, error) {
    44  	ret := _mock.Called(ctx, keyData)
    45  
    46  	if len(ret) == 0 {
    47  		panic("no return value specified for AddGPGPublicKey")
    48  	}
    49  
    50  	var r0 map[string]*v1alpha1.GnuPGPublicKey
    51  	var r1 []string
    52  	var r2 error
    53  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) (map[string]*v1alpha1.GnuPGPublicKey, []string, error)); ok {
    54  		return returnFunc(ctx, keyData)
    55  	}
    56  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) map[string]*v1alpha1.GnuPGPublicKey); ok {
    57  		r0 = returnFunc(ctx, keyData)
    58  	} else {
    59  		if ret.Get(0) != nil {
    60  			r0 = ret.Get(0).(map[string]*v1alpha1.GnuPGPublicKey)
    61  		}
    62  	}
    63  	if returnFunc, ok := ret.Get(1).(func(context.Context, string) []string); ok {
    64  		r1 = returnFunc(ctx, keyData)
    65  	} else {
    66  		if ret.Get(1) != nil {
    67  			r1 = ret.Get(1).([]string)
    68  		}
    69  	}
    70  	if returnFunc, ok := ret.Get(2).(func(context.Context, string) error); ok {
    71  		r2 = returnFunc(ctx, keyData)
    72  	} else {
    73  		r2 = ret.Error(2)
    74  	}
    75  	return r0, r1, r2
    76  }
    77  
    78  // ArgoDB_AddGPGPublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddGPGPublicKey'
    79  type ArgoDB_AddGPGPublicKey_Call struct {
    80  	*mock.Call
    81  }
    82  
    83  // AddGPGPublicKey is a helper method to define mock.On call
    84  //   - ctx context.Context
    85  //   - keyData string
    86  func (_e *ArgoDB_Expecter) AddGPGPublicKey(ctx interface{}, keyData interface{}) *ArgoDB_AddGPGPublicKey_Call {
    87  	return &ArgoDB_AddGPGPublicKey_Call{Call: _e.mock.On("AddGPGPublicKey", ctx, keyData)}
    88  }
    89  
    90  func (_c *ArgoDB_AddGPGPublicKey_Call) Run(run func(ctx context.Context, keyData string)) *ArgoDB_AddGPGPublicKey_Call {
    91  	_c.Call.Run(func(args mock.Arguments) {
    92  		var arg0 context.Context
    93  		if args[0] != nil {
    94  			arg0 = args[0].(context.Context)
    95  		}
    96  		var arg1 string
    97  		if args[1] != nil {
    98  			arg1 = args[1].(string)
    99  		}
   100  		run(
   101  			arg0,
   102  			arg1,
   103  		)
   104  	})
   105  	return _c
   106  }
   107  
   108  func (_c *ArgoDB_AddGPGPublicKey_Call) Return(stringToGnuPGPublicKey map[string]*v1alpha1.GnuPGPublicKey, strings []string, err error) *ArgoDB_AddGPGPublicKey_Call {
   109  	_c.Call.Return(stringToGnuPGPublicKey, strings, err)
   110  	return _c
   111  }
   112  
   113  func (_c *ArgoDB_AddGPGPublicKey_Call) RunAndReturn(run func(ctx context.Context, keyData string) (map[string]*v1alpha1.GnuPGPublicKey, []string, error)) *ArgoDB_AddGPGPublicKey_Call {
   114  	_c.Call.Return(run)
   115  	return _c
   116  }
   117  
   118  // CreateCluster provides a mock function for the type ArgoDB
   119  func (_mock *ArgoDB) CreateCluster(ctx context.Context, c *v1alpha1.Cluster) (*v1alpha1.Cluster, error) {
   120  	ret := _mock.Called(ctx, c)
   121  
   122  	if len(ret) == 0 {
   123  		panic("no return value specified for CreateCluster")
   124  	}
   125  
   126  	var r0 *v1alpha1.Cluster
   127  	var r1 error
   128  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Cluster) (*v1alpha1.Cluster, error)); ok {
   129  		return returnFunc(ctx, c)
   130  	}
   131  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Cluster) *v1alpha1.Cluster); ok {
   132  		r0 = returnFunc(ctx, c)
   133  	} else {
   134  		if ret.Get(0) != nil {
   135  			r0 = ret.Get(0).(*v1alpha1.Cluster)
   136  		}
   137  	}
   138  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.Cluster) error); ok {
   139  		r1 = returnFunc(ctx, c)
   140  	} else {
   141  		r1 = ret.Error(1)
   142  	}
   143  	return r0, r1
   144  }
   145  
   146  // ArgoDB_CreateCluster_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCluster'
   147  type ArgoDB_CreateCluster_Call struct {
   148  	*mock.Call
   149  }
   150  
   151  // CreateCluster is a helper method to define mock.On call
   152  //   - ctx context.Context
   153  //   - c *v1alpha1.Cluster
   154  func (_e *ArgoDB_Expecter) CreateCluster(ctx interface{}, c interface{}) *ArgoDB_CreateCluster_Call {
   155  	return &ArgoDB_CreateCluster_Call{Call: _e.mock.On("CreateCluster", ctx, c)}
   156  }
   157  
   158  func (_c *ArgoDB_CreateCluster_Call) Run(run func(ctx context.Context, c *v1alpha1.Cluster)) *ArgoDB_CreateCluster_Call {
   159  	_c.Call.Run(func(args mock.Arguments) {
   160  		var arg0 context.Context
   161  		if args[0] != nil {
   162  			arg0 = args[0].(context.Context)
   163  		}
   164  		var arg1 *v1alpha1.Cluster
   165  		if args[1] != nil {
   166  			arg1 = args[1].(*v1alpha1.Cluster)
   167  		}
   168  		run(
   169  			arg0,
   170  			arg1,
   171  		)
   172  	})
   173  	return _c
   174  }
   175  
   176  func (_c *ArgoDB_CreateCluster_Call) Return(cluster *v1alpha1.Cluster, err error) *ArgoDB_CreateCluster_Call {
   177  	_c.Call.Return(cluster, err)
   178  	return _c
   179  }
   180  
   181  func (_c *ArgoDB_CreateCluster_Call) RunAndReturn(run func(ctx context.Context, c *v1alpha1.Cluster) (*v1alpha1.Cluster, error)) *ArgoDB_CreateCluster_Call {
   182  	_c.Call.Return(run)
   183  	return _c
   184  }
   185  
   186  // CreateRepoCertificate provides a mock function for the type ArgoDB
   187  func (_mock *ArgoDB) CreateRepoCertificate(ctx context.Context, certificate *v1alpha1.RepositoryCertificateList, upsert bool) (*v1alpha1.RepositoryCertificateList, error) {
   188  	ret := _mock.Called(ctx, certificate, upsert)
   189  
   190  	if len(ret) == 0 {
   191  		panic("no return value specified for CreateRepoCertificate")
   192  	}
   193  
   194  	var r0 *v1alpha1.RepositoryCertificateList
   195  	var r1 error
   196  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.RepositoryCertificateList, bool) (*v1alpha1.RepositoryCertificateList, error)); ok {
   197  		return returnFunc(ctx, certificate, upsert)
   198  	}
   199  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.RepositoryCertificateList, bool) *v1alpha1.RepositoryCertificateList); ok {
   200  		r0 = returnFunc(ctx, certificate, upsert)
   201  	} else {
   202  		if ret.Get(0) != nil {
   203  			r0 = ret.Get(0).(*v1alpha1.RepositoryCertificateList)
   204  		}
   205  	}
   206  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.RepositoryCertificateList, bool) error); ok {
   207  		r1 = returnFunc(ctx, certificate, upsert)
   208  	} else {
   209  		r1 = ret.Error(1)
   210  	}
   211  	return r0, r1
   212  }
   213  
   214  // ArgoDB_CreateRepoCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRepoCertificate'
   215  type ArgoDB_CreateRepoCertificate_Call struct {
   216  	*mock.Call
   217  }
   218  
   219  // CreateRepoCertificate is a helper method to define mock.On call
   220  //   - ctx context.Context
   221  //   - certificate *v1alpha1.RepositoryCertificateList
   222  //   - upsert bool
   223  func (_e *ArgoDB_Expecter) CreateRepoCertificate(ctx interface{}, certificate interface{}, upsert interface{}) *ArgoDB_CreateRepoCertificate_Call {
   224  	return &ArgoDB_CreateRepoCertificate_Call{Call: _e.mock.On("CreateRepoCertificate", ctx, certificate, upsert)}
   225  }
   226  
   227  func (_c *ArgoDB_CreateRepoCertificate_Call) Run(run func(ctx context.Context, certificate *v1alpha1.RepositoryCertificateList, upsert bool)) *ArgoDB_CreateRepoCertificate_Call {
   228  	_c.Call.Run(func(args mock.Arguments) {
   229  		var arg0 context.Context
   230  		if args[0] != nil {
   231  			arg0 = args[0].(context.Context)
   232  		}
   233  		var arg1 *v1alpha1.RepositoryCertificateList
   234  		if args[1] != nil {
   235  			arg1 = args[1].(*v1alpha1.RepositoryCertificateList)
   236  		}
   237  		var arg2 bool
   238  		if args[2] != nil {
   239  			arg2 = args[2].(bool)
   240  		}
   241  		run(
   242  			arg0,
   243  			arg1,
   244  			arg2,
   245  		)
   246  	})
   247  	return _c
   248  }
   249  
   250  func (_c *ArgoDB_CreateRepoCertificate_Call) Return(repositoryCertificateList *v1alpha1.RepositoryCertificateList, err error) *ArgoDB_CreateRepoCertificate_Call {
   251  	_c.Call.Return(repositoryCertificateList, err)
   252  	return _c
   253  }
   254  
   255  func (_c *ArgoDB_CreateRepoCertificate_Call) RunAndReturn(run func(ctx context.Context, certificate *v1alpha1.RepositoryCertificateList, upsert bool) (*v1alpha1.RepositoryCertificateList, error)) *ArgoDB_CreateRepoCertificate_Call {
   256  	_c.Call.Return(run)
   257  	return _c
   258  }
   259  
   260  // CreateRepository provides a mock function for the type ArgoDB
   261  func (_mock *ArgoDB) CreateRepository(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error) {
   262  	ret := _mock.Called(ctx, r)
   263  
   264  	if len(ret) == 0 {
   265  		panic("no return value specified for CreateRepository")
   266  	}
   267  
   268  	var r0 *v1alpha1.Repository
   269  	var r1 error
   270  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Repository) (*v1alpha1.Repository, error)); ok {
   271  		return returnFunc(ctx, r)
   272  	}
   273  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Repository) *v1alpha1.Repository); ok {
   274  		r0 = returnFunc(ctx, r)
   275  	} else {
   276  		if ret.Get(0) != nil {
   277  			r0 = ret.Get(0).(*v1alpha1.Repository)
   278  		}
   279  	}
   280  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.Repository) error); ok {
   281  		r1 = returnFunc(ctx, r)
   282  	} else {
   283  		r1 = ret.Error(1)
   284  	}
   285  	return r0, r1
   286  }
   287  
   288  // ArgoDB_CreateRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRepository'
   289  type ArgoDB_CreateRepository_Call struct {
   290  	*mock.Call
   291  }
   292  
   293  // CreateRepository is a helper method to define mock.On call
   294  //   - ctx context.Context
   295  //   - r *v1alpha1.Repository
   296  func (_e *ArgoDB_Expecter) CreateRepository(ctx interface{}, r interface{}) *ArgoDB_CreateRepository_Call {
   297  	return &ArgoDB_CreateRepository_Call{Call: _e.mock.On("CreateRepository", ctx, r)}
   298  }
   299  
   300  func (_c *ArgoDB_CreateRepository_Call) Run(run func(ctx context.Context, r *v1alpha1.Repository)) *ArgoDB_CreateRepository_Call {
   301  	_c.Call.Run(func(args mock.Arguments) {
   302  		var arg0 context.Context
   303  		if args[0] != nil {
   304  			arg0 = args[0].(context.Context)
   305  		}
   306  		var arg1 *v1alpha1.Repository
   307  		if args[1] != nil {
   308  			arg1 = args[1].(*v1alpha1.Repository)
   309  		}
   310  		run(
   311  			arg0,
   312  			arg1,
   313  		)
   314  	})
   315  	return _c
   316  }
   317  
   318  func (_c *ArgoDB_CreateRepository_Call) Return(repository *v1alpha1.Repository, err error) *ArgoDB_CreateRepository_Call {
   319  	_c.Call.Return(repository, err)
   320  	return _c
   321  }
   322  
   323  func (_c *ArgoDB_CreateRepository_Call) RunAndReturn(run func(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error)) *ArgoDB_CreateRepository_Call {
   324  	_c.Call.Return(run)
   325  	return _c
   326  }
   327  
   328  // CreateRepositoryCredentials provides a mock function for the type ArgoDB
   329  func (_mock *ArgoDB) CreateRepositoryCredentials(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error) {
   330  	ret := _mock.Called(ctx, r)
   331  
   332  	if len(ret) == 0 {
   333  		panic("no return value specified for CreateRepositoryCredentials")
   334  	}
   335  
   336  	var r0 *v1alpha1.RepoCreds
   337  	var r1 error
   338  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)); ok {
   339  		return returnFunc(ctx, r)
   340  	}
   341  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.RepoCreds) *v1alpha1.RepoCreds); ok {
   342  		r0 = returnFunc(ctx, r)
   343  	} else {
   344  		if ret.Get(0) != nil {
   345  			r0 = ret.Get(0).(*v1alpha1.RepoCreds)
   346  		}
   347  	}
   348  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.RepoCreds) error); ok {
   349  		r1 = returnFunc(ctx, r)
   350  	} else {
   351  		r1 = ret.Error(1)
   352  	}
   353  	return r0, r1
   354  }
   355  
   356  // ArgoDB_CreateRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRepositoryCredentials'
   357  type ArgoDB_CreateRepositoryCredentials_Call struct {
   358  	*mock.Call
   359  }
   360  
   361  // CreateRepositoryCredentials is a helper method to define mock.On call
   362  //   - ctx context.Context
   363  //   - r *v1alpha1.RepoCreds
   364  func (_e *ArgoDB_Expecter) CreateRepositoryCredentials(ctx interface{}, r interface{}) *ArgoDB_CreateRepositoryCredentials_Call {
   365  	return &ArgoDB_CreateRepositoryCredentials_Call{Call: _e.mock.On("CreateRepositoryCredentials", ctx, r)}
   366  }
   367  
   368  func (_c *ArgoDB_CreateRepositoryCredentials_Call) Run(run func(ctx context.Context, r *v1alpha1.RepoCreds)) *ArgoDB_CreateRepositoryCredentials_Call {
   369  	_c.Call.Run(func(args mock.Arguments) {
   370  		var arg0 context.Context
   371  		if args[0] != nil {
   372  			arg0 = args[0].(context.Context)
   373  		}
   374  		var arg1 *v1alpha1.RepoCreds
   375  		if args[1] != nil {
   376  			arg1 = args[1].(*v1alpha1.RepoCreds)
   377  		}
   378  		run(
   379  			arg0,
   380  			arg1,
   381  		)
   382  	})
   383  	return _c
   384  }
   385  
   386  func (_c *ArgoDB_CreateRepositoryCredentials_Call) Return(repoCreds *v1alpha1.RepoCreds, err error) *ArgoDB_CreateRepositoryCredentials_Call {
   387  	_c.Call.Return(repoCreds, err)
   388  	return _c
   389  }
   390  
   391  func (_c *ArgoDB_CreateRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)) *ArgoDB_CreateRepositoryCredentials_Call {
   392  	_c.Call.Return(run)
   393  	return _c
   394  }
   395  
   396  // CreateWriteRepository provides a mock function for the type ArgoDB
   397  func (_mock *ArgoDB) CreateWriteRepository(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error) {
   398  	ret := _mock.Called(ctx, r)
   399  
   400  	if len(ret) == 0 {
   401  		panic("no return value specified for CreateWriteRepository")
   402  	}
   403  
   404  	var r0 *v1alpha1.Repository
   405  	var r1 error
   406  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Repository) (*v1alpha1.Repository, error)); ok {
   407  		return returnFunc(ctx, r)
   408  	}
   409  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Repository) *v1alpha1.Repository); ok {
   410  		r0 = returnFunc(ctx, r)
   411  	} else {
   412  		if ret.Get(0) != nil {
   413  			r0 = ret.Get(0).(*v1alpha1.Repository)
   414  		}
   415  	}
   416  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.Repository) error); ok {
   417  		r1 = returnFunc(ctx, r)
   418  	} else {
   419  		r1 = ret.Error(1)
   420  	}
   421  	return r0, r1
   422  }
   423  
   424  // ArgoDB_CreateWriteRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateWriteRepository'
   425  type ArgoDB_CreateWriteRepository_Call struct {
   426  	*mock.Call
   427  }
   428  
   429  // CreateWriteRepository is a helper method to define mock.On call
   430  //   - ctx context.Context
   431  //   - r *v1alpha1.Repository
   432  func (_e *ArgoDB_Expecter) CreateWriteRepository(ctx interface{}, r interface{}) *ArgoDB_CreateWriteRepository_Call {
   433  	return &ArgoDB_CreateWriteRepository_Call{Call: _e.mock.On("CreateWriteRepository", ctx, r)}
   434  }
   435  
   436  func (_c *ArgoDB_CreateWriteRepository_Call) Run(run func(ctx context.Context, r *v1alpha1.Repository)) *ArgoDB_CreateWriteRepository_Call {
   437  	_c.Call.Run(func(args mock.Arguments) {
   438  		var arg0 context.Context
   439  		if args[0] != nil {
   440  			arg0 = args[0].(context.Context)
   441  		}
   442  		var arg1 *v1alpha1.Repository
   443  		if args[1] != nil {
   444  			arg1 = args[1].(*v1alpha1.Repository)
   445  		}
   446  		run(
   447  			arg0,
   448  			arg1,
   449  		)
   450  	})
   451  	return _c
   452  }
   453  
   454  func (_c *ArgoDB_CreateWriteRepository_Call) Return(repository *v1alpha1.Repository, err error) *ArgoDB_CreateWriteRepository_Call {
   455  	_c.Call.Return(repository, err)
   456  	return _c
   457  }
   458  
   459  func (_c *ArgoDB_CreateWriteRepository_Call) RunAndReturn(run func(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error)) *ArgoDB_CreateWriteRepository_Call {
   460  	_c.Call.Return(run)
   461  	return _c
   462  }
   463  
   464  // CreateWriteRepositoryCredentials provides a mock function for the type ArgoDB
   465  func (_mock *ArgoDB) CreateWriteRepositoryCredentials(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error) {
   466  	ret := _mock.Called(ctx, r)
   467  
   468  	if len(ret) == 0 {
   469  		panic("no return value specified for CreateWriteRepositoryCredentials")
   470  	}
   471  
   472  	var r0 *v1alpha1.RepoCreds
   473  	var r1 error
   474  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)); ok {
   475  		return returnFunc(ctx, r)
   476  	}
   477  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.RepoCreds) *v1alpha1.RepoCreds); ok {
   478  		r0 = returnFunc(ctx, r)
   479  	} else {
   480  		if ret.Get(0) != nil {
   481  			r0 = ret.Get(0).(*v1alpha1.RepoCreds)
   482  		}
   483  	}
   484  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.RepoCreds) error); ok {
   485  		r1 = returnFunc(ctx, r)
   486  	} else {
   487  		r1 = ret.Error(1)
   488  	}
   489  	return r0, r1
   490  }
   491  
   492  // ArgoDB_CreateWriteRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateWriteRepositoryCredentials'
   493  type ArgoDB_CreateWriteRepositoryCredentials_Call struct {
   494  	*mock.Call
   495  }
   496  
   497  // CreateWriteRepositoryCredentials is a helper method to define mock.On call
   498  //   - ctx context.Context
   499  //   - r *v1alpha1.RepoCreds
   500  func (_e *ArgoDB_Expecter) CreateWriteRepositoryCredentials(ctx interface{}, r interface{}) *ArgoDB_CreateWriteRepositoryCredentials_Call {
   501  	return &ArgoDB_CreateWriteRepositoryCredentials_Call{Call: _e.mock.On("CreateWriteRepositoryCredentials", ctx, r)}
   502  }
   503  
   504  func (_c *ArgoDB_CreateWriteRepositoryCredentials_Call) Run(run func(ctx context.Context, r *v1alpha1.RepoCreds)) *ArgoDB_CreateWriteRepositoryCredentials_Call {
   505  	_c.Call.Run(func(args mock.Arguments) {
   506  		var arg0 context.Context
   507  		if args[0] != nil {
   508  			arg0 = args[0].(context.Context)
   509  		}
   510  		var arg1 *v1alpha1.RepoCreds
   511  		if args[1] != nil {
   512  			arg1 = args[1].(*v1alpha1.RepoCreds)
   513  		}
   514  		run(
   515  			arg0,
   516  			arg1,
   517  		)
   518  	})
   519  	return _c
   520  }
   521  
   522  func (_c *ArgoDB_CreateWriteRepositoryCredentials_Call) Return(repoCreds *v1alpha1.RepoCreds, err error) *ArgoDB_CreateWriteRepositoryCredentials_Call {
   523  	_c.Call.Return(repoCreds, err)
   524  	return _c
   525  }
   526  
   527  func (_c *ArgoDB_CreateWriteRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)) *ArgoDB_CreateWriteRepositoryCredentials_Call {
   528  	_c.Call.Return(run)
   529  	return _c
   530  }
   531  
   532  // DeleteCluster provides a mock function for the type ArgoDB
   533  func (_mock *ArgoDB) DeleteCluster(ctx context.Context, server string) error {
   534  	ret := _mock.Called(ctx, server)
   535  
   536  	if len(ret) == 0 {
   537  		panic("no return value specified for DeleteCluster")
   538  	}
   539  
   540  	var r0 error
   541  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
   542  		r0 = returnFunc(ctx, server)
   543  	} else {
   544  		r0 = ret.Error(0)
   545  	}
   546  	return r0
   547  }
   548  
   549  // ArgoDB_DeleteCluster_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCluster'
   550  type ArgoDB_DeleteCluster_Call struct {
   551  	*mock.Call
   552  }
   553  
   554  // DeleteCluster is a helper method to define mock.On call
   555  //   - ctx context.Context
   556  //   - server string
   557  func (_e *ArgoDB_Expecter) DeleteCluster(ctx interface{}, server interface{}) *ArgoDB_DeleteCluster_Call {
   558  	return &ArgoDB_DeleteCluster_Call{Call: _e.mock.On("DeleteCluster", ctx, server)}
   559  }
   560  
   561  func (_c *ArgoDB_DeleteCluster_Call) Run(run func(ctx context.Context, server string)) *ArgoDB_DeleteCluster_Call {
   562  	_c.Call.Run(func(args mock.Arguments) {
   563  		var arg0 context.Context
   564  		if args[0] != nil {
   565  			arg0 = args[0].(context.Context)
   566  		}
   567  		var arg1 string
   568  		if args[1] != nil {
   569  			arg1 = args[1].(string)
   570  		}
   571  		run(
   572  			arg0,
   573  			arg1,
   574  		)
   575  	})
   576  	return _c
   577  }
   578  
   579  func (_c *ArgoDB_DeleteCluster_Call) Return(err error) *ArgoDB_DeleteCluster_Call {
   580  	_c.Call.Return(err)
   581  	return _c
   582  }
   583  
   584  func (_c *ArgoDB_DeleteCluster_Call) RunAndReturn(run func(ctx context.Context, server string) error) *ArgoDB_DeleteCluster_Call {
   585  	_c.Call.Return(run)
   586  	return _c
   587  }
   588  
   589  // DeleteGPGPublicKey provides a mock function for the type ArgoDB
   590  func (_mock *ArgoDB) DeleteGPGPublicKey(ctx context.Context, keyID string) error {
   591  	ret := _mock.Called(ctx, keyID)
   592  
   593  	if len(ret) == 0 {
   594  		panic("no return value specified for DeleteGPGPublicKey")
   595  	}
   596  
   597  	var r0 error
   598  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
   599  		r0 = returnFunc(ctx, keyID)
   600  	} else {
   601  		r0 = ret.Error(0)
   602  	}
   603  	return r0
   604  }
   605  
   606  // ArgoDB_DeleteGPGPublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteGPGPublicKey'
   607  type ArgoDB_DeleteGPGPublicKey_Call struct {
   608  	*mock.Call
   609  }
   610  
   611  // DeleteGPGPublicKey is a helper method to define mock.On call
   612  //   - ctx context.Context
   613  //   - keyID string
   614  func (_e *ArgoDB_Expecter) DeleteGPGPublicKey(ctx interface{}, keyID interface{}) *ArgoDB_DeleteGPGPublicKey_Call {
   615  	return &ArgoDB_DeleteGPGPublicKey_Call{Call: _e.mock.On("DeleteGPGPublicKey", ctx, keyID)}
   616  }
   617  
   618  func (_c *ArgoDB_DeleteGPGPublicKey_Call) Run(run func(ctx context.Context, keyID string)) *ArgoDB_DeleteGPGPublicKey_Call {
   619  	_c.Call.Run(func(args mock.Arguments) {
   620  		var arg0 context.Context
   621  		if args[0] != nil {
   622  			arg0 = args[0].(context.Context)
   623  		}
   624  		var arg1 string
   625  		if args[1] != nil {
   626  			arg1 = args[1].(string)
   627  		}
   628  		run(
   629  			arg0,
   630  			arg1,
   631  		)
   632  	})
   633  	return _c
   634  }
   635  
   636  func (_c *ArgoDB_DeleteGPGPublicKey_Call) Return(err error) *ArgoDB_DeleteGPGPublicKey_Call {
   637  	_c.Call.Return(err)
   638  	return _c
   639  }
   640  
   641  func (_c *ArgoDB_DeleteGPGPublicKey_Call) RunAndReturn(run func(ctx context.Context, keyID string) error) *ArgoDB_DeleteGPGPublicKey_Call {
   642  	_c.Call.Return(run)
   643  	return _c
   644  }
   645  
   646  // DeleteRepository provides a mock function for the type ArgoDB
   647  func (_mock *ArgoDB) DeleteRepository(ctx context.Context, name string, project string) error {
   648  	ret := _mock.Called(ctx, name, project)
   649  
   650  	if len(ret) == 0 {
   651  		panic("no return value specified for DeleteRepository")
   652  	}
   653  
   654  	var r0 error
   655  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
   656  		r0 = returnFunc(ctx, name, project)
   657  	} else {
   658  		r0 = ret.Error(0)
   659  	}
   660  	return r0
   661  }
   662  
   663  // ArgoDB_DeleteRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRepository'
   664  type ArgoDB_DeleteRepository_Call struct {
   665  	*mock.Call
   666  }
   667  
   668  // DeleteRepository is a helper method to define mock.On call
   669  //   - ctx context.Context
   670  //   - name string
   671  //   - project string
   672  func (_e *ArgoDB_Expecter) DeleteRepository(ctx interface{}, name interface{}, project interface{}) *ArgoDB_DeleteRepository_Call {
   673  	return &ArgoDB_DeleteRepository_Call{Call: _e.mock.On("DeleteRepository", ctx, name, project)}
   674  }
   675  
   676  func (_c *ArgoDB_DeleteRepository_Call) Run(run func(ctx context.Context, name string, project string)) *ArgoDB_DeleteRepository_Call {
   677  	_c.Call.Run(func(args mock.Arguments) {
   678  		var arg0 context.Context
   679  		if args[0] != nil {
   680  			arg0 = args[0].(context.Context)
   681  		}
   682  		var arg1 string
   683  		if args[1] != nil {
   684  			arg1 = args[1].(string)
   685  		}
   686  		var arg2 string
   687  		if args[2] != nil {
   688  			arg2 = args[2].(string)
   689  		}
   690  		run(
   691  			arg0,
   692  			arg1,
   693  			arg2,
   694  		)
   695  	})
   696  	return _c
   697  }
   698  
   699  func (_c *ArgoDB_DeleteRepository_Call) Return(err error) *ArgoDB_DeleteRepository_Call {
   700  	_c.Call.Return(err)
   701  	return _c
   702  }
   703  
   704  func (_c *ArgoDB_DeleteRepository_Call) RunAndReturn(run func(ctx context.Context, name string, project string) error) *ArgoDB_DeleteRepository_Call {
   705  	_c.Call.Return(run)
   706  	return _c
   707  }
   708  
   709  // DeleteRepositoryCredentials provides a mock function for the type ArgoDB
   710  func (_mock *ArgoDB) DeleteRepositoryCredentials(ctx context.Context, name string) error {
   711  	ret := _mock.Called(ctx, name)
   712  
   713  	if len(ret) == 0 {
   714  		panic("no return value specified for DeleteRepositoryCredentials")
   715  	}
   716  
   717  	var r0 error
   718  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
   719  		r0 = returnFunc(ctx, name)
   720  	} else {
   721  		r0 = ret.Error(0)
   722  	}
   723  	return r0
   724  }
   725  
   726  // ArgoDB_DeleteRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRepositoryCredentials'
   727  type ArgoDB_DeleteRepositoryCredentials_Call struct {
   728  	*mock.Call
   729  }
   730  
   731  // DeleteRepositoryCredentials is a helper method to define mock.On call
   732  //   - ctx context.Context
   733  //   - name string
   734  func (_e *ArgoDB_Expecter) DeleteRepositoryCredentials(ctx interface{}, name interface{}) *ArgoDB_DeleteRepositoryCredentials_Call {
   735  	return &ArgoDB_DeleteRepositoryCredentials_Call{Call: _e.mock.On("DeleteRepositoryCredentials", ctx, name)}
   736  }
   737  
   738  func (_c *ArgoDB_DeleteRepositoryCredentials_Call) Run(run func(ctx context.Context, name string)) *ArgoDB_DeleteRepositoryCredentials_Call {
   739  	_c.Call.Run(func(args mock.Arguments) {
   740  		var arg0 context.Context
   741  		if args[0] != nil {
   742  			arg0 = args[0].(context.Context)
   743  		}
   744  		var arg1 string
   745  		if args[1] != nil {
   746  			arg1 = args[1].(string)
   747  		}
   748  		run(
   749  			arg0,
   750  			arg1,
   751  		)
   752  	})
   753  	return _c
   754  }
   755  
   756  func (_c *ArgoDB_DeleteRepositoryCredentials_Call) Return(err error) *ArgoDB_DeleteRepositoryCredentials_Call {
   757  	_c.Call.Return(err)
   758  	return _c
   759  }
   760  
   761  func (_c *ArgoDB_DeleteRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context, name string) error) *ArgoDB_DeleteRepositoryCredentials_Call {
   762  	_c.Call.Return(run)
   763  	return _c
   764  }
   765  
   766  // DeleteWriteRepository provides a mock function for the type ArgoDB
   767  func (_mock *ArgoDB) DeleteWriteRepository(ctx context.Context, name string, project string) error {
   768  	ret := _mock.Called(ctx, name, project)
   769  
   770  	if len(ret) == 0 {
   771  		panic("no return value specified for DeleteWriteRepository")
   772  	}
   773  
   774  	var r0 error
   775  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
   776  		r0 = returnFunc(ctx, name, project)
   777  	} else {
   778  		r0 = ret.Error(0)
   779  	}
   780  	return r0
   781  }
   782  
   783  // ArgoDB_DeleteWriteRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteWriteRepository'
   784  type ArgoDB_DeleteWriteRepository_Call struct {
   785  	*mock.Call
   786  }
   787  
   788  // DeleteWriteRepository is a helper method to define mock.On call
   789  //   - ctx context.Context
   790  //   - name string
   791  //   - project string
   792  func (_e *ArgoDB_Expecter) DeleteWriteRepository(ctx interface{}, name interface{}, project interface{}) *ArgoDB_DeleteWriteRepository_Call {
   793  	return &ArgoDB_DeleteWriteRepository_Call{Call: _e.mock.On("DeleteWriteRepository", ctx, name, project)}
   794  }
   795  
   796  func (_c *ArgoDB_DeleteWriteRepository_Call) Run(run func(ctx context.Context, name string, project string)) *ArgoDB_DeleteWriteRepository_Call {
   797  	_c.Call.Run(func(args mock.Arguments) {
   798  		var arg0 context.Context
   799  		if args[0] != nil {
   800  			arg0 = args[0].(context.Context)
   801  		}
   802  		var arg1 string
   803  		if args[1] != nil {
   804  			arg1 = args[1].(string)
   805  		}
   806  		var arg2 string
   807  		if args[2] != nil {
   808  			arg2 = args[2].(string)
   809  		}
   810  		run(
   811  			arg0,
   812  			arg1,
   813  			arg2,
   814  		)
   815  	})
   816  	return _c
   817  }
   818  
   819  func (_c *ArgoDB_DeleteWriteRepository_Call) Return(err error) *ArgoDB_DeleteWriteRepository_Call {
   820  	_c.Call.Return(err)
   821  	return _c
   822  }
   823  
   824  func (_c *ArgoDB_DeleteWriteRepository_Call) RunAndReturn(run func(ctx context.Context, name string, project string) error) *ArgoDB_DeleteWriteRepository_Call {
   825  	_c.Call.Return(run)
   826  	return _c
   827  }
   828  
   829  // DeleteWriteRepositoryCredentials provides a mock function for the type ArgoDB
   830  func (_mock *ArgoDB) DeleteWriteRepositoryCredentials(ctx context.Context, name string) error {
   831  	ret := _mock.Called(ctx, name)
   832  
   833  	if len(ret) == 0 {
   834  		panic("no return value specified for DeleteWriteRepositoryCredentials")
   835  	}
   836  
   837  	var r0 error
   838  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
   839  		r0 = returnFunc(ctx, name)
   840  	} else {
   841  		r0 = ret.Error(0)
   842  	}
   843  	return r0
   844  }
   845  
   846  // ArgoDB_DeleteWriteRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteWriteRepositoryCredentials'
   847  type ArgoDB_DeleteWriteRepositoryCredentials_Call struct {
   848  	*mock.Call
   849  }
   850  
   851  // DeleteWriteRepositoryCredentials is a helper method to define mock.On call
   852  //   - ctx context.Context
   853  //   - name string
   854  func (_e *ArgoDB_Expecter) DeleteWriteRepositoryCredentials(ctx interface{}, name interface{}) *ArgoDB_DeleteWriteRepositoryCredentials_Call {
   855  	return &ArgoDB_DeleteWriteRepositoryCredentials_Call{Call: _e.mock.On("DeleteWriteRepositoryCredentials", ctx, name)}
   856  }
   857  
   858  func (_c *ArgoDB_DeleteWriteRepositoryCredentials_Call) Run(run func(ctx context.Context, name string)) *ArgoDB_DeleteWriteRepositoryCredentials_Call {
   859  	_c.Call.Run(func(args mock.Arguments) {
   860  		var arg0 context.Context
   861  		if args[0] != nil {
   862  			arg0 = args[0].(context.Context)
   863  		}
   864  		var arg1 string
   865  		if args[1] != nil {
   866  			arg1 = args[1].(string)
   867  		}
   868  		run(
   869  			arg0,
   870  			arg1,
   871  		)
   872  	})
   873  	return _c
   874  }
   875  
   876  func (_c *ArgoDB_DeleteWriteRepositoryCredentials_Call) Return(err error) *ArgoDB_DeleteWriteRepositoryCredentials_Call {
   877  	_c.Call.Return(err)
   878  	return _c
   879  }
   880  
   881  func (_c *ArgoDB_DeleteWriteRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context, name string) error) *ArgoDB_DeleteWriteRepositoryCredentials_Call {
   882  	_c.Call.Return(run)
   883  	return _c
   884  }
   885  
   886  // GetAllHelmRepositoryCredentials provides a mock function for the type ArgoDB
   887  func (_mock *ArgoDB) GetAllHelmRepositoryCredentials(ctx context.Context) ([]*v1alpha1.RepoCreds, error) {
   888  	ret := _mock.Called(ctx)
   889  
   890  	if len(ret) == 0 {
   891  		panic("no return value specified for GetAllHelmRepositoryCredentials")
   892  	}
   893  
   894  	var r0 []*v1alpha1.RepoCreds
   895  	var r1 error
   896  	if returnFunc, ok := ret.Get(0).(func(context.Context) ([]*v1alpha1.RepoCreds, error)); ok {
   897  		return returnFunc(ctx)
   898  	}
   899  	if returnFunc, ok := ret.Get(0).(func(context.Context) []*v1alpha1.RepoCreds); ok {
   900  		r0 = returnFunc(ctx)
   901  	} else {
   902  		if ret.Get(0) != nil {
   903  			r0 = ret.Get(0).([]*v1alpha1.RepoCreds)
   904  		}
   905  	}
   906  	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
   907  		r1 = returnFunc(ctx)
   908  	} else {
   909  		r1 = ret.Error(1)
   910  	}
   911  	return r0, r1
   912  }
   913  
   914  // ArgoDB_GetAllHelmRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllHelmRepositoryCredentials'
   915  type ArgoDB_GetAllHelmRepositoryCredentials_Call struct {
   916  	*mock.Call
   917  }
   918  
   919  // GetAllHelmRepositoryCredentials is a helper method to define mock.On call
   920  //   - ctx context.Context
   921  func (_e *ArgoDB_Expecter) GetAllHelmRepositoryCredentials(ctx interface{}) *ArgoDB_GetAllHelmRepositoryCredentials_Call {
   922  	return &ArgoDB_GetAllHelmRepositoryCredentials_Call{Call: _e.mock.On("GetAllHelmRepositoryCredentials", ctx)}
   923  }
   924  
   925  func (_c *ArgoDB_GetAllHelmRepositoryCredentials_Call) Run(run func(ctx context.Context)) *ArgoDB_GetAllHelmRepositoryCredentials_Call {
   926  	_c.Call.Run(func(args mock.Arguments) {
   927  		var arg0 context.Context
   928  		if args[0] != nil {
   929  			arg0 = args[0].(context.Context)
   930  		}
   931  		run(
   932  			arg0,
   933  		)
   934  	})
   935  	return _c
   936  }
   937  
   938  func (_c *ArgoDB_GetAllHelmRepositoryCredentials_Call) Return(repoCredss []*v1alpha1.RepoCreds, err error) *ArgoDB_GetAllHelmRepositoryCredentials_Call {
   939  	_c.Call.Return(repoCredss, err)
   940  	return _c
   941  }
   942  
   943  func (_c *ArgoDB_GetAllHelmRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context) ([]*v1alpha1.RepoCreds, error)) *ArgoDB_GetAllHelmRepositoryCredentials_Call {
   944  	_c.Call.Return(run)
   945  	return _c
   946  }
   947  
   948  // GetAllOCIRepositoryCredentials provides a mock function for the type ArgoDB
   949  func (_mock *ArgoDB) GetAllOCIRepositoryCredentials(ctx context.Context) ([]*v1alpha1.RepoCreds, error) {
   950  	ret := _mock.Called(ctx)
   951  
   952  	if len(ret) == 0 {
   953  		panic("no return value specified for GetAllOCIRepositoryCredentials")
   954  	}
   955  
   956  	var r0 []*v1alpha1.RepoCreds
   957  	var r1 error
   958  	if returnFunc, ok := ret.Get(0).(func(context.Context) ([]*v1alpha1.RepoCreds, error)); ok {
   959  		return returnFunc(ctx)
   960  	}
   961  	if returnFunc, ok := ret.Get(0).(func(context.Context) []*v1alpha1.RepoCreds); ok {
   962  		r0 = returnFunc(ctx)
   963  	} else {
   964  		if ret.Get(0) != nil {
   965  			r0 = ret.Get(0).([]*v1alpha1.RepoCreds)
   966  		}
   967  	}
   968  	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
   969  		r1 = returnFunc(ctx)
   970  	} else {
   971  		r1 = ret.Error(1)
   972  	}
   973  	return r0, r1
   974  }
   975  
   976  // ArgoDB_GetAllOCIRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllOCIRepositoryCredentials'
   977  type ArgoDB_GetAllOCIRepositoryCredentials_Call struct {
   978  	*mock.Call
   979  }
   980  
   981  // GetAllOCIRepositoryCredentials is a helper method to define mock.On call
   982  //   - ctx context.Context
   983  func (_e *ArgoDB_Expecter) GetAllOCIRepositoryCredentials(ctx interface{}) *ArgoDB_GetAllOCIRepositoryCredentials_Call {
   984  	return &ArgoDB_GetAllOCIRepositoryCredentials_Call{Call: _e.mock.On("GetAllOCIRepositoryCredentials", ctx)}
   985  }
   986  
   987  func (_c *ArgoDB_GetAllOCIRepositoryCredentials_Call) Run(run func(ctx context.Context)) *ArgoDB_GetAllOCIRepositoryCredentials_Call {
   988  	_c.Call.Run(func(args mock.Arguments) {
   989  		var arg0 context.Context
   990  		if args[0] != nil {
   991  			arg0 = args[0].(context.Context)
   992  		}
   993  		run(
   994  			arg0,
   995  		)
   996  	})
   997  	return _c
   998  }
   999  
  1000  func (_c *ArgoDB_GetAllOCIRepositoryCredentials_Call) Return(repoCredss []*v1alpha1.RepoCreds, err error) *ArgoDB_GetAllOCIRepositoryCredentials_Call {
  1001  	_c.Call.Return(repoCredss, err)
  1002  	return _c
  1003  }
  1004  
  1005  func (_c *ArgoDB_GetAllOCIRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context) ([]*v1alpha1.RepoCreds, error)) *ArgoDB_GetAllOCIRepositoryCredentials_Call {
  1006  	_c.Call.Return(run)
  1007  	return _c
  1008  }
  1009  
  1010  // GetApplicationControllerReplicas provides a mock function for the type ArgoDB
  1011  func (_mock *ArgoDB) GetApplicationControllerReplicas() int {
  1012  	ret := _mock.Called()
  1013  
  1014  	if len(ret) == 0 {
  1015  		panic("no return value specified for GetApplicationControllerReplicas")
  1016  	}
  1017  
  1018  	var r0 int
  1019  	if returnFunc, ok := ret.Get(0).(func() int); ok {
  1020  		r0 = returnFunc()
  1021  	} else {
  1022  		r0 = ret.Get(0).(int)
  1023  	}
  1024  	return r0
  1025  }
  1026  
  1027  // ArgoDB_GetApplicationControllerReplicas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApplicationControllerReplicas'
  1028  type ArgoDB_GetApplicationControllerReplicas_Call struct {
  1029  	*mock.Call
  1030  }
  1031  
  1032  // GetApplicationControllerReplicas is a helper method to define mock.On call
  1033  func (_e *ArgoDB_Expecter) GetApplicationControllerReplicas() *ArgoDB_GetApplicationControllerReplicas_Call {
  1034  	return &ArgoDB_GetApplicationControllerReplicas_Call{Call: _e.mock.On("GetApplicationControllerReplicas")}
  1035  }
  1036  
  1037  func (_c *ArgoDB_GetApplicationControllerReplicas_Call) Run(run func()) *ArgoDB_GetApplicationControllerReplicas_Call {
  1038  	_c.Call.Run(func(args mock.Arguments) {
  1039  		run()
  1040  	})
  1041  	return _c
  1042  }
  1043  
  1044  func (_c *ArgoDB_GetApplicationControllerReplicas_Call) Return(n int) *ArgoDB_GetApplicationControllerReplicas_Call {
  1045  	_c.Call.Return(n)
  1046  	return _c
  1047  }
  1048  
  1049  func (_c *ArgoDB_GetApplicationControllerReplicas_Call) RunAndReturn(run func() int) *ArgoDB_GetApplicationControllerReplicas_Call {
  1050  	_c.Call.Return(run)
  1051  	return _c
  1052  }
  1053  
  1054  // GetCluster provides a mock function for the type ArgoDB
  1055  func (_mock *ArgoDB) GetCluster(ctx context.Context, server string) (*v1alpha1.Cluster, error) {
  1056  	ret := _mock.Called(ctx, server)
  1057  
  1058  	if len(ret) == 0 {
  1059  		panic("no return value specified for GetCluster")
  1060  	}
  1061  
  1062  	var r0 *v1alpha1.Cluster
  1063  	var r1 error
  1064  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) (*v1alpha1.Cluster, error)); ok {
  1065  		return returnFunc(ctx, server)
  1066  	}
  1067  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) *v1alpha1.Cluster); ok {
  1068  		r0 = returnFunc(ctx, server)
  1069  	} else {
  1070  		if ret.Get(0) != nil {
  1071  			r0 = ret.Get(0).(*v1alpha1.Cluster)
  1072  		}
  1073  	}
  1074  	if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
  1075  		r1 = returnFunc(ctx, server)
  1076  	} else {
  1077  		r1 = ret.Error(1)
  1078  	}
  1079  	return r0, r1
  1080  }
  1081  
  1082  // ArgoDB_GetCluster_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCluster'
  1083  type ArgoDB_GetCluster_Call struct {
  1084  	*mock.Call
  1085  }
  1086  
  1087  // GetCluster is a helper method to define mock.On call
  1088  //   - ctx context.Context
  1089  //   - server string
  1090  func (_e *ArgoDB_Expecter) GetCluster(ctx interface{}, server interface{}) *ArgoDB_GetCluster_Call {
  1091  	return &ArgoDB_GetCluster_Call{Call: _e.mock.On("GetCluster", ctx, server)}
  1092  }
  1093  
  1094  func (_c *ArgoDB_GetCluster_Call) Run(run func(ctx context.Context, server string)) *ArgoDB_GetCluster_Call {
  1095  	_c.Call.Run(func(args mock.Arguments) {
  1096  		var arg0 context.Context
  1097  		if args[0] != nil {
  1098  			arg0 = args[0].(context.Context)
  1099  		}
  1100  		var arg1 string
  1101  		if args[1] != nil {
  1102  			arg1 = args[1].(string)
  1103  		}
  1104  		run(
  1105  			arg0,
  1106  			arg1,
  1107  		)
  1108  	})
  1109  	return _c
  1110  }
  1111  
  1112  func (_c *ArgoDB_GetCluster_Call) Return(cluster *v1alpha1.Cluster, err error) *ArgoDB_GetCluster_Call {
  1113  	_c.Call.Return(cluster, err)
  1114  	return _c
  1115  }
  1116  
  1117  func (_c *ArgoDB_GetCluster_Call) RunAndReturn(run func(ctx context.Context, server string) (*v1alpha1.Cluster, error)) *ArgoDB_GetCluster_Call {
  1118  	_c.Call.Return(run)
  1119  	return _c
  1120  }
  1121  
  1122  // GetClusterServersByName provides a mock function for the type ArgoDB
  1123  func (_mock *ArgoDB) GetClusterServersByName(ctx context.Context, name string) ([]string, error) {
  1124  	ret := _mock.Called(ctx, name)
  1125  
  1126  	if len(ret) == 0 {
  1127  		panic("no return value specified for GetClusterServersByName")
  1128  	}
  1129  
  1130  	var r0 []string
  1131  	var r1 error
  1132  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) ([]string, error)); ok {
  1133  		return returnFunc(ctx, name)
  1134  	}
  1135  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) []string); ok {
  1136  		r0 = returnFunc(ctx, name)
  1137  	} else {
  1138  		if ret.Get(0) != nil {
  1139  			r0 = ret.Get(0).([]string)
  1140  		}
  1141  	}
  1142  	if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
  1143  		r1 = returnFunc(ctx, name)
  1144  	} else {
  1145  		r1 = ret.Error(1)
  1146  	}
  1147  	return r0, r1
  1148  }
  1149  
  1150  // ArgoDB_GetClusterServersByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClusterServersByName'
  1151  type ArgoDB_GetClusterServersByName_Call struct {
  1152  	*mock.Call
  1153  }
  1154  
  1155  // GetClusterServersByName is a helper method to define mock.On call
  1156  //   - ctx context.Context
  1157  //   - name string
  1158  func (_e *ArgoDB_Expecter) GetClusterServersByName(ctx interface{}, name interface{}) *ArgoDB_GetClusterServersByName_Call {
  1159  	return &ArgoDB_GetClusterServersByName_Call{Call: _e.mock.On("GetClusterServersByName", ctx, name)}
  1160  }
  1161  
  1162  func (_c *ArgoDB_GetClusterServersByName_Call) Run(run func(ctx context.Context, name string)) *ArgoDB_GetClusterServersByName_Call {
  1163  	_c.Call.Run(func(args mock.Arguments) {
  1164  		var arg0 context.Context
  1165  		if args[0] != nil {
  1166  			arg0 = args[0].(context.Context)
  1167  		}
  1168  		var arg1 string
  1169  		if args[1] != nil {
  1170  			arg1 = args[1].(string)
  1171  		}
  1172  		run(
  1173  			arg0,
  1174  			arg1,
  1175  		)
  1176  	})
  1177  	return _c
  1178  }
  1179  
  1180  func (_c *ArgoDB_GetClusterServersByName_Call) Return(strings []string, err error) *ArgoDB_GetClusterServersByName_Call {
  1181  	_c.Call.Return(strings, err)
  1182  	return _c
  1183  }
  1184  
  1185  func (_c *ArgoDB_GetClusterServersByName_Call) RunAndReturn(run func(ctx context.Context, name string) ([]string, error)) *ArgoDB_GetClusterServersByName_Call {
  1186  	_c.Call.Return(run)
  1187  	return _c
  1188  }
  1189  
  1190  // GetProjectClusters provides a mock function for the type ArgoDB
  1191  func (_mock *ArgoDB) GetProjectClusters(ctx context.Context, project string) ([]*v1alpha1.Cluster, error) {
  1192  	ret := _mock.Called(ctx, project)
  1193  
  1194  	if len(ret) == 0 {
  1195  		panic("no return value specified for GetProjectClusters")
  1196  	}
  1197  
  1198  	var r0 []*v1alpha1.Cluster
  1199  	var r1 error
  1200  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) ([]*v1alpha1.Cluster, error)); ok {
  1201  		return returnFunc(ctx, project)
  1202  	}
  1203  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) []*v1alpha1.Cluster); ok {
  1204  		r0 = returnFunc(ctx, project)
  1205  	} else {
  1206  		if ret.Get(0) != nil {
  1207  			r0 = ret.Get(0).([]*v1alpha1.Cluster)
  1208  		}
  1209  	}
  1210  	if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
  1211  		r1 = returnFunc(ctx, project)
  1212  	} else {
  1213  		r1 = ret.Error(1)
  1214  	}
  1215  	return r0, r1
  1216  }
  1217  
  1218  // ArgoDB_GetProjectClusters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectClusters'
  1219  type ArgoDB_GetProjectClusters_Call struct {
  1220  	*mock.Call
  1221  }
  1222  
  1223  // GetProjectClusters is a helper method to define mock.On call
  1224  //   - ctx context.Context
  1225  //   - project string
  1226  func (_e *ArgoDB_Expecter) GetProjectClusters(ctx interface{}, project interface{}) *ArgoDB_GetProjectClusters_Call {
  1227  	return &ArgoDB_GetProjectClusters_Call{Call: _e.mock.On("GetProjectClusters", ctx, project)}
  1228  }
  1229  
  1230  func (_c *ArgoDB_GetProjectClusters_Call) Run(run func(ctx context.Context, project string)) *ArgoDB_GetProjectClusters_Call {
  1231  	_c.Call.Run(func(args mock.Arguments) {
  1232  		var arg0 context.Context
  1233  		if args[0] != nil {
  1234  			arg0 = args[0].(context.Context)
  1235  		}
  1236  		var arg1 string
  1237  		if args[1] != nil {
  1238  			arg1 = args[1].(string)
  1239  		}
  1240  		run(
  1241  			arg0,
  1242  			arg1,
  1243  		)
  1244  	})
  1245  	return _c
  1246  }
  1247  
  1248  func (_c *ArgoDB_GetProjectClusters_Call) Return(clusters []*v1alpha1.Cluster, err error) *ArgoDB_GetProjectClusters_Call {
  1249  	_c.Call.Return(clusters, err)
  1250  	return _c
  1251  }
  1252  
  1253  func (_c *ArgoDB_GetProjectClusters_Call) RunAndReturn(run func(ctx context.Context, project string) ([]*v1alpha1.Cluster, error)) *ArgoDB_GetProjectClusters_Call {
  1254  	_c.Call.Return(run)
  1255  	return _c
  1256  }
  1257  
  1258  // GetProjectRepositories provides a mock function for the type ArgoDB
  1259  func (_mock *ArgoDB) GetProjectRepositories(project string) ([]*v1alpha1.Repository, error) {
  1260  	ret := _mock.Called(project)
  1261  
  1262  	if len(ret) == 0 {
  1263  		panic("no return value specified for GetProjectRepositories")
  1264  	}
  1265  
  1266  	var r0 []*v1alpha1.Repository
  1267  	var r1 error
  1268  	if returnFunc, ok := ret.Get(0).(func(string) ([]*v1alpha1.Repository, error)); ok {
  1269  		return returnFunc(project)
  1270  	}
  1271  	if returnFunc, ok := ret.Get(0).(func(string) []*v1alpha1.Repository); ok {
  1272  		r0 = returnFunc(project)
  1273  	} else {
  1274  		if ret.Get(0) != nil {
  1275  			r0 = ret.Get(0).([]*v1alpha1.Repository)
  1276  		}
  1277  	}
  1278  	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
  1279  		r1 = returnFunc(project)
  1280  	} else {
  1281  		r1 = ret.Error(1)
  1282  	}
  1283  	return r0, r1
  1284  }
  1285  
  1286  // ArgoDB_GetProjectRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectRepositories'
  1287  type ArgoDB_GetProjectRepositories_Call struct {
  1288  	*mock.Call
  1289  }
  1290  
  1291  // GetProjectRepositories is a helper method to define mock.On call
  1292  //   - project string
  1293  func (_e *ArgoDB_Expecter) GetProjectRepositories(project interface{}) *ArgoDB_GetProjectRepositories_Call {
  1294  	return &ArgoDB_GetProjectRepositories_Call{Call: _e.mock.On("GetProjectRepositories", project)}
  1295  }
  1296  
  1297  func (_c *ArgoDB_GetProjectRepositories_Call) Run(run func(project string)) *ArgoDB_GetProjectRepositories_Call {
  1298  	_c.Call.Run(func(args mock.Arguments) {
  1299  		var arg0 string
  1300  		if args[0] != nil {
  1301  			arg0 = args[0].(string)
  1302  		}
  1303  		run(
  1304  			arg0,
  1305  		)
  1306  	})
  1307  	return _c
  1308  }
  1309  
  1310  func (_c *ArgoDB_GetProjectRepositories_Call) Return(repositorys []*v1alpha1.Repository, err error) *ArgoDB_GetProjectRepositories_Call {
  1311  	_c.Call.Return(repositorys, err)
  1312  	return _c
  1313  }
  1314  
  1315  func (_c *ArgoDB_GetProjectRepositories_Call) RunAndReturn(run func(project string) ([]*v1alpha1.Repository, error)) *ArgoDB_GetProjectRepositories_Call {
  1316  	_c.Call.Return(run)
  1317  	return _c
  1318  }
  1319  
  1320  // GetProjectWriteRepositories provides a mock function for the type ArgoDB
  1321  func (_mock *ArgoDB) GetProjectWriteRepositories(project string) ([]*v1alpha1.Repository, error) {
  1322  	ret := _mock.Called(project)
  1323  
  1324  	if len(ret) == 0 {
  1325  		panic("no return value specified for GetProjectWriteRepositories")
  1326  	}
  1327  
  1328  	var r0 []*v1alpha1.Repository
  1329  	var r1 error
  1330  	if returnFunc, ok := ret.Get(0).(func(string) ([]*v1alpha1.Repository, error)); ok {
  1331  		return returnFunc(project)
  1332  	}
  1333  	if returnFunc, ok := ret.Get(0).(func(string) []*v1alpha1.Repository); ok {
  1334  		r0 = returnFunc(project)
  1335  	} else {
  1336  		if ret.Get(0) != nil {
  1337  			r0 = ret.Get(0).([]*v1alpha1.Repository)
  1338  		}
  1339  	}
  1340  	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
  1341  		r1 = returnFunc(project)
  1342  	} else {
  1343  		r1 = ret.Error(1)
  1344  	}
  1345  	return r0, r1
  1346  }
  1347  
  1348  // ArgoDB_GetProjectWriteRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectWriteRepositories'
  1349  type ArgoDB_GetProjectWriteRepositories_Call struct {
  1350  	*mock.Call
  1351  }
  1352  
  1353  // GetProjectWriteRepositories is a helper method to define mock.On call
  1354  //   - project string
  1355  func (_e *ArgoDB_Expecter) GetProjectWriteRepositories(project interface{}) *ArgoDB_GetProjectWriteRepositories_Call {
  1356  	return &ArgoDB_GetProjectWriteRepositories_Call{Call: _e.mock.On("GetProjectWriteRepositories", project)}
  1357  }
  1358  
  1359  func (_c *ArgoDB_GetProjectWriteRepositories_Call) Run(run func(project string)) *ArgoDB_GetProjectWriteRepositories_Call {
  1360  	_c.Call.Run(func(args mock.Arguments) {
  1361  		var arg0 string
  1362  		if args[0] != nil {
  1363  			arg0 = args[0].(string)
  1364  		}
  1365  		run(
  1366  			arg0,
  1367  		)
  1368  	})
  1369  	return _c
  1370  }
  1371  
  1372  func (_c *ArgoDB_GetProjectWriteRepositories_Call) Return(repositorys []*v1alpha1.Repository, err error) *ArgoDB_GetProjectWriteRepositories_Call {
  1373  	_c.Call.Return(repositorys, err)
  1374  	return _c
  1375  }
  1376  
  1377  func (_c *ArgoDB_GetProjectWriteRepositories_Call) RunAndReturn(run func(project string) ([]*v1alpha1.Repository, error)) *ArgoDB_GetProjectWriteRepositories_Call {
  1378  	_c.Call.Return(run)
  1379  	return _c
  1380  }
  1381  
  1382  // GetRepository provides a mock function for the type ArgoDB
  1383  func (_mock *ArgoDB) GetRepository(ctx context.Context, url string, project string) (*v1alpha1.Repository, error) {
  1384  	ret := _mock.Called(ctx, url, project)
  1385  
  1386  	if len(ret) == 0 {
  1387  		panic("no return value specified for GetRepository")
  1388  	}
  1389  
  1390  	var r0 *v1alpha1.Repository
  1391  	var r1 error
  1392  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (*v1alpha1.Repository, error)); ok {
  1393  		return returnFunc(ctx, url, project)
  1394  	}
  1395  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) *v1alpha1.Repository); ok {
  1396  		r0 = returnFunc(ctx, url, project)
  1397  	} else {
  1398  		if ret.Get(0) != nil {
  1399  			r0 = ret.Get(0).(*v1alpha1.Repository)
  1400  		}
  1401  	}
  1402  	if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
  1403  		r1 = returnFunc(ctx, url, project)
  1404  	} else {
  1405  		r1 = ret.Error(1)
  1406  	}
  1407  	return r0, r1
  1408  }
  1409  
  1410  // ArgoDB_GetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepository'
  1411  type ArgoDB_GetRepository_Call struct {
  1412  	*mock.Call
  1413  }
  1414  
  1415  // GetRepository is a helper method to define mock.On call
  1416  //   - ctx context.Context
  1417  //   - url string
  1418  //   - project string
  1419  func (_e *ArgoDB_Expecter) GetRepository(ctx interface{}, url interface{}, project interface{}) *ArgoDB_GetRepository_Call {
  1420  	return &ArgoDB_GetRepository_Call{Call: _e.mock.On("GetRepository", ctx, url, project)}
  1421  }
  1422  
  1423  func (_c *ArgoDB_GetRepository_Call) Run(run func(ctx context.Context, url string, project string)) *ArgoDB_GetRepository_Call {
  1424  	_c.Call.Run(func(args mock.Arguments) {
  1425  		var arg0 context.Context
  1426  		if args[0] != nil {
  1427  			arg0 = args[0].(context.Context)
  1428  		}
  1429  		var arg1 string
  1430  		if args[1] != nil {
  1431  			arg1 = args[1].(string)
  1432  		}
  1433  		var arg2 string
  1434  		if args[2] != nil {
  1435  			arg2 = args[2].(string)
  1436  		}
  1437  		run(
  1438  			arg0,
  1439  			arg1,
  1440  			arg2,
  1441  		)
  1442  	})
  1443  	return _c
  1444  }
  1445  
  1446  func (_c *ArgoDB_GetRepository_Call) Return(repository *v1alpha1.Repository, err error) *ArgoDB_GetRepository_Call {
  1447  	_c.Call.Return(repository, err)
  1448  	return _c
  1449  }
  1450  
  1451  func (_c *ArgoDB_GetRepository_Call) RunAndReturn(run func(ctx context.Context, url string, project string) (*v1alpha1.Repository, error)) *ArgoDB_GetRepository_Call {
  1452  	_c.Call.Return(run)
  1453  	return _c
  1454  }
  1455  
  1456  // GetRepositoryCredentials provides a mock function for the type ArgoDB
  1457  func (_mock *ArgoDB) GetRepositoryCredentials(ctx context.Context, name string) (*v1alpha1.RepoCreds, error) {
  1458  	ret := _mock.Called(ctx, name)
  1459  
  1460  	if len(ret) == 0 {
  1461  		panic("no return value specified for GetRepositoryCredentials")
  1462  	}
  1463  
  1464  	var r0 *v1alpha1.RepoCreds
  1465  	var r1 error
  1466  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) (*v1alpha1.RepoCreds, error)); ok {
  1467  		return returnFunc(ctx, name)
  1468  	}
  1469  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) *v1alpha1.RepoCreds); ok {
  1470  		r0 = returnFunc(ctx, name)
  1471  	} else {
  1472  		if ret.Get(0) != nil {
  1473  			r0 = ret.Get(0).(*v1alpha1.RepoCreds)
  1474  		}
  1475  	}
  1476  	if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
  1477  		r1 = returnFunc(ctx, name)
  1478  	} else {
  1479  		r1 = ret.Error(1)
  1480  	}
  1481  	return r0, r1
  1482  }
  1483  
  1484  // ArgoDB_GetRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepositoryCredentials'
  1485  type ArgoDB_GetRepositoryCredentials_Call struct {
  1486  	*mock.Call
  1487  }
  1488  
  1489  // GetRepositoryCredentials is a helper method to define mock.On call
  1490  //   - ctx context.Context
  1491  //   - name string
  1492  func (_e *ArgoDB_Expecter) GetRepositoryCredentials(ctx interface{}, name interface{}) *ArgoDB_GetRepositoryCredentials_Call {
  1493  	return &ArgoDB_GetRepositoryCredentials_Call{Call: _e.mock.On("GetRepositoryCredentials", ctx, name)}
  1494  }
  1495  
  1496  func (_c *ArgoDB_GetRepositoryCredentials_Call) Run(run func(ctx context.Context, name string)) *ArgoDB_GetRepositoryCredentials_Call {
  1497  	_c.Call.Run(func(args mock.Arguments) {
  1498  		var arg0 context.Context
  1499  		if args[0] != nil {
  1500  			arg0 = args[0].(context.Context)
  1501  		}
  1502  		var arg1 string
  1503  		if args[1] != nil {
  1504  			arg1 = args[1].(string)
  1505  		}
  1506  		run(
  1507  			arg0,
  1508  			arg1,
  1509  		)
  1510  	})
  1511  	return _c
  1512  }
  1513  
  1514  func (_c *ArgoDB_GetRepositoryCredentials_Call) Return(repoCreds *v1alpha1.RepoCreds, err error) *ArgoDB_GetRepositoryCredentials_Call {
  1515  	_c.Call.Return(repoCreds, err)
  1516  	return _c
  1517  }
  1518  
  1519  func (_c *ArgoDB_GetRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context, name string) (*v1alpha1.RepoCreds, error)) *ArgoDB_GetRepositoryCredentials_Call {
  1520  	_c.Call.Return(run)
  1521  	return _c
  1522  }
  1523  
  1524  // GetWriteRepository provides a mock function for the type ArgoDB
  1525  func (_mock *ArgoDB) GetWriteRepository(ctx context.Context, url string, project string) (*v1alpha1.Repository, error) {
  1526  	ret := _mock.Called(ctx, url, project)
  1527  
  1528  	if len(ret) == 0 {
  1529  		panic("no return value specified for GetWriteRepository")
  1530  	}
  1531  
  1532  	var r0 *v1alpha1.Repository
  1533  	var r1 error
  1534  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (*v1alpha1.Repository, error)); ok {
  1535  		return returnFunc(ctx, url, project)
  1536  	}
  1537  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) *v1alpha1.Repository); ok {
  1538  		r0 = returnFunc(ctx, url, project)
  1539  	} else {
  1540  		if ret.Get(0) != nil {
  1541  			r0 = ret.Get(0).(*v1alpha1.Repository)
  1542  		}
  1543  	}
  1544  	if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
  1545  		r1 = returnFunc(ctx, url, project)
  1546  	} else {
  1547  		r1 = ret.Error(1)
  1548  	}
  1549  	return r0, r1
  1550  }
  1551  
  1552  // ArgoDB_GetWriteRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWriteRepository'
  1553  type ArgoDB_GetWriteRepository_Call struct {
  1554  	*mock.Call
  1555  }
  1556  
  1557  // GetWriteRepository is a helper method to define mock.On call
  1558  //   - ctx context.Context
  1559  //   - url string
  1560  //   - project string
  1561  func (_e *ArgoDB_Expecter) GetWriteRepository(ctx interface{}, url interface{}, project interface{}) *ArgoDB_GetWriteRepository_Call {
  1562  	return &ArgoDB_GetWriteRepository_Call{Call: _e.mock.On("GetWriteRepository", ctx, url, project)}
  1563  }
  1564  
  1565  func (_c *ArgoDB_GetWriteRepository_Call) Run(run func(ctx context.Context, url string, project string)) *ArgoDB_GetWriteRepository_Call {
  1566  	_c.Call.Run(func(args mock.Arguments) {
  1567  		var arg0 context.Context
  1568  		if args[0] != nil {
  1569  			arg0 = args[0].(context.Context)
  1570  		}
  1571  		var arg1 string
  1572  		if args[1] != nil {
  1573  			arg1 = args[1].(string)
  1574  		}
  1575  		var arg2 string
  1576  		if args[2] != nil {
  1577  			arg2 = args[2].(string)
  1578  		}
  1579  		run(
  1580  			arg0,
  1581  			arg1,
  1582  			arg2,
  1583  		)
  1584  	})
  1585  	return _c
  1586  }
  1587  
  1588  func (_c *ArgoDB_GetWriteRepository_Call) Return(repository *v1alpha1.Repository, err error) *ArgoDB_GetWriteRepository_Call {
  1589  	_c.Call.Return(repository, err)
  1590  	return _c
  1591  }
  1592  
  1593  func (_c *ArgoDB_GetWriteRepository_Call) RunAndReturn(run func(ctx context.Context, url string, project string) (*v1alpha1.Repository, error)) *ArgoDB_GetWriteRepository_Call {
  1594  	_c.Call.Return(run)
  1595  	return _c
  1596  }
  1597  
  1598  // GetWriteRepositoryCredentials provides a mock function for the type ArgoDB
  1599  func (_mock *ArgoDB) GetWriteRepositoryCredentials(ctx context.Context, name string) (*v1alpha1.RepoCreds, error) {
  1600  	ret := _mock.Called(ctx, name)
  1601  
  1602  	if len(ret) == 0 {
  1603  		panic("no return value specified for GetWriteRepositoryCredentials")
  1604  	}
  1605  
  1606  	var r0 *v1alpha1.RepoCreds
  1607  	var r1 error
  1608  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) (*v1alpha1.RepoCreds, error)); ok {
  1609  		return returnFunc(ctx, name)
  1610  	}
  1611  	if returnFunc, ok := ret.Get(0).(func(context.Context, string) *v1alpha1.RepoCreds); ok {
  1612  		r0 = returnFunc(ctx, name)
  1613  	} else {
  1614  		if ret.Get(0) != nil {
  1615  			r0 = ret.Get(0).(*v1alpha1.RepoCreds)
  1616  		}
  1617  	}
  1618  	if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
  1619  		r1 = returnFunc(ctx, name)
  1620  	} else {
  1621  		r1 = ret.Error(1)
  1622  	}
  1623  	return r0, r1
  1624  }
  1625  
  1626  // ArgoDB_GetWriteRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWriteRepositoryCredentials'
  1627  type ArgoDB_GetWriteRepositoryCredentials_Call struct {
  1628  	*mock.Call
  1629  }
  1630  
  1631  // GetWriteRepositoryCredentials is a helper method to define mock.On call
  1632  //   - ctx context.Context
  1633  //   - name string
  1634  func (_e *ArgoDB_Expecter) GetWriteRepositoryCredentials(ctx interface{}, name interface{}) *ArgoDB_GetWriteRepositoryCredentials_Call {
  1635  	return &ArgoDB_GetWriteRepositoryCredentials_Call{Call: _e.mock.On("GetWriteRepositoryCredentials", ctx, name)}
  1636  }
  1637  
  1638  func (_c *ArgoDB_GetWriteRepositoryCredentials_Call) Run(run func(ctx context.Context, name string)) *ArgoDB_GetWriteRepositoryCredentials_Call {
  1639  	_c.Call.Run(func(args mock.Arguments) {
  1640  		var arg0 context.Context
  1641  		if args[0] != nil {
  1642  			arg0 = args[0].(context.Context)
  1643  		}
  1644  		var arg1 string
  1645  		if args[1] != nil {
  1646  			arg1 = args[1].(string)
  1647  		}
  1648  		run(
  1649  			arg0,
  1650  			arg1,
  1651  		)
  1652  	})
  1653  	return _c
  1654  }
  1655  
  1656  func (_c *ArgoDB_GetWriteRepositoryCredentials_Call) Return(repoCreds *v1alpha1.RepoCreds, err error) *ArgoDB_GetWriteRepositoryCredentials_Call {
  1657  	_c.Call.Return(repoCreds, err)
  1658  	return _c
  1659  }
  1660  
  1661  func (_c *ArgoDB_GetWriteRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context, name string) (*v1alpha1.RepoCreds, error)) *ArgoDB_GetWriteRepositoryCredentials_Call {
  1662  	_c.Call.Return(run)
  1663  	return _c
  1664  }
  1665  
  1666  // ListClusters provides a mock function for the type ArgoDB
  1667  func (_mock *ArgoDB) ListClusters(ctx context.Context) (*v1alpha1.ClusterList, error) {
  1668  	ret := _mock.Called(ctx)
  1669  
  1670  	if len(ret) == 0 {
  1671  		panic("no return value specified for ListClusters")
  1672  	}
  1673  
  1674  	var r0 *v1alpha1.ClusterList
  1675  	var r1 error
  1676  	if returnFunc, ok := ret.Get(0).(func(context.Context) (*v1alpha1.ClusterList, error)); ok {
  1677  		return returnFunc(ctx)
  1678  	}
  1679  	if returnFunc, ok := ret.Get(0).(func(context.Context) *v1alpha1.ClusterList); ok {
  1680  		r0 = returnFunc(ctx)
  1681  	} else {
  1682  		if ret.Get(0) != nil {
  1683  			r0 = ret.Get(0).(*v1alpha1.ClusterList)
  1684  		}
  1685  	}
  1686  	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
  1687  		r1 = returnFunc(ctx)
  1688  	} else {
  1689  		r1 = ret.Error(1)
  1690  	}
  1691  	return r0, r1
  1692  }
  1693  
  1694  // ArgoDB_ListClusters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListClusters'
  1695  type ArgoDB_ListClusters_Call struct {
  1696  	*mock.Call
  1697  }
  1698  
  1699  // ListClusters is a helper method to define mock.On call
  1700  //   - ctx context.Context
  1701  func (_e *ArgoDB_Expecter) ListClusters(ctx interface{}) *ArgoDB_ListClusters_Call {
  1702  	return &ArgoDB_ListClusters_Call{Call: _e.mock.On("ListClusters", ctx)}
  1703  }
  1704  
  1705  func (_c *ArgoDB_ListClusters_Call) Run(run func(ctx context.Context)) *ArgoDB_ListClusters_Call {
  1706  	_c.Call.Run(func(args mock.Arguments) {
  1707  		var arg0 context.Context
  1708  		if args[0] != nil {
  1709  			arg0 = args[0].(context.Context)
  1710  		}
  1711  		run(
  1712  			arg0,
  1713  		)
  1714  	})
  1715  	return _c
  1716  }
  1717  
  1718  func (_c *ArgoDB_ListClusters_Call) Return(clusterList *v1alpha1.ClusterList, err error) *ArgoDB_ListClusters_Call {
  1719  	_c.Call.Return(clusterList, err)
  1720  	return _c
  1721  }
  1722  
  1723  func (_c *ArgoDB_ListClusters_Call) RunAndReturn(run func(ctx context.Context) (*v1alpha1.ClusterList, error)) *ArgoDB_ListClusters_Call {
  1724  	_c.Call.Return(run)
  1725  	return _c
  1726  }
  1727  
  1728  // ListConfiguredGPGPublicKeys provides a mock function for the type ArgoDB
  1729  func (_mock *ArgoDB) ListConfiguredGPGPublicKeys(ctx context.Context) (map[string]*v1alpha1.GnuPGPublicKey, error) {
  1730  	ret := _mock.Called(ctx)
  1731  
  1732  	if len(ret) == 0 {
  1733  		panic("no return value specified for ListConfiguredGPGPublicKeys")
  1734  	}
  1735  
  1736  	var r0 map[string]*v1alpha1.GnuPGPublicKey
  1737  	var r1 error
  1738  	if returnFunc, ok := ret.Get(0).(func(context.Context) (map[string]*v1alpha1.GnuPGPublicKey, error)); ok {
  1739  		return returnFunc(ctx)
  1740  	}
  1741  	if returnFunc, ok := ret.Get(0).(func(context.Context) map[string]*v1alpha1.GnuPGPublicKey); ok {
  1742  		r0 = returnFunc(ctx)
  1743  	} else {
  1744  		if ret.Get(0) != nil {
  1745  			r0 = ret.Get(0).(map[string]*v1alpha1.GnuPGPublicKey)
  1746  		}
  1747  	}
  1748  	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
  1749  		r1 = returnFunc(ctx)
  1750  	} else {
  1751  		r1 = ret.Error(1)
  1752  	}
  1753  	return r0, r1
  1754  }
  1755  
  1756  // ArgoDB_ListConfiguredGPGPublicKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListConfiguredGPGPublicKeys'
  1757  type ArgoDB_ListConfiguredGPGPublicKeys_Call struct {
  1758  	*mock.Call
  1759  }
  1760  
  1761  // ListConfiguredGPGPublicKeys is a helper method to define mock.On call
  1762  //   - ctx context.Context
  1763  func (_e *ArgoDB_Expecter) ListConfiguredGPGPublicKeys(ctx interface{}) *ArgoDB_ListConfiguredGPGPublicKeys_Call {
  1764  	return &ArgoDB_ListConfiguredGPGPublicKeys_Call{Call: _e.mock.On("ListConfiguredGPGPublicKeys", ctx)}
  1765  }
  1766  
  1767  func (_c *ArgoDB_ListConfiguredGPGPublicKeys_Call) Run(run func(ctx context.Context)) *ArgoDB_ListConfiguredGPGPublicKeys_Call {
  1768  	_c.Call.Run(func(args mock.Arguments) {
  1769  		var arg0 context.Context
  1770  		if args[0] != nil {
  1771  			arg0 = args[0].(context.Context)
  1772  		}
  1773  		run(
  1774  			arg0,
  1775  		)
  1776  	})
  1777  	return _c
  1778  }
  1779  
  1780  func (_c *ArgoDB_ListConfiguredGPGPublicKeys_Call) Return(stringToGnuPGPublicKey map[string]*v1alpha1.GnuPGPublicKey, err error) *ArgoDB_ListConfiguredGPGPublicKeys_Call {
  1781  	_c.Call.Return(stringToGnuPGPublicKey, err)
  1782  	return _c
  1783  }
  1784  
  1785  func (_c *ArgoDB_ListConfiguredGPGPublicKeys_Call) RunAndReturn(run func(ctx context.Context) (map[string]*v1alpha1.GnuPGPublicKey, error)) *ArgoDB_ListConfiguredGPGPublicKeys_Call {
  1786  	_c.Call.Return(run)
  1787  	return _c
  1788  }
  1789  
  1790  // ListHelmRepositories provides a mock function for the type ArgoDB
  1791  func (_mock *ArgoDB) ListHelmRepositories(ctx context.Context) ([]*v1alpha1.Repository, error) {
  1792  	ret := _mock.Called(ctx)
  1793  
  1794  	if len(ret) == 0 {
  1795  		panic("no return value specified for ListHelmRepositories")
  1796  	}
  1797  
  1798  	var r0 []*v1alpha1.Repository
  1799  	var r1 error
  1800  	if returnFunc, ok := ret.Get(0).(func(context.Context) ([]*v1alpha1.Repository, error)); ok {
  1801  		return returnFunc(ctx)
  1802  	}
  1803  	if returnFunc, ok := ret.Get(0).(func(context.Context) []*v1alpha1.Repository); ok {
  1804  		r0 = returnFunc(ctx)
  1805  	} else {
  1806  		if ret.Get(0) != nil {
  1807  			r0 = ret.Get(0).([]*v1alpha1.Repository)
  1808  		}
  1809  	}
  1810  	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
  1811  		r1 = returnFunc(ctx)
  1812  	} else {
  1813  		r1 = ret.Error(1)
  1814  	}
  1815  	return r0, r1
  1816  }
  1817  
  1818  // ArgoDB_ListHelmRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListHelmRepositories'
  1819  type ArgoDB_ListHelmRepositories_Call struct {
  1820  	*mock.Call
  1821  }
  1822  
  1823  // ListHelmRepositories is a helper method to define mock.On call
  1824  //   - ctx context.Context
  1825  func (_e *ArgoDB_Expecter) ListHelmRepositories(ctx interface{}) *ArgoDB_ListHelmRepositories_Call {
  1826  	return &ArgoDB_ListHelmRepositories_Call{Call: _e.mock.On("ListHelmRepositories", ctx)}
  1827  }
  1828  
  1829  func (_c *ArgoDB_ListHelmRepositories_Call) Run(run func(ctx context.Context)) *ArgoDB_ListHelmRepositories_Call {
  1830  	_c.Call.Run(func(args mock.Arguments) {
  1831  		var arg0 context.Context
  1832  		if args[0] != nil {
  1833  			arg0 = args[0].(context.Context)
  1834  		}
  1835  		run(
  1836  			arg0,
  1837  		)
  1838  	})
  1839  	return _c
  1840  }
  1841  
  1842  func (_c *ArgoDB_ListHelmRepositories_Call) Return(repositorys []*v1alpha1.Repository, err error) *ArgoDB_ListHelmRepositories_Call {
  1843  	_c.Call.Return(repositorys, err)
  1844  	return _c
  1845  }
  1846  
  1847  func (_c *ArgoDB_ListHelmRepositories_Call) RunAndReturn(run func(ctx context.Context) ([]*v1alpha1.Repository, error)) *ArgoDB_ListHelmRepositories_Call {
  1848  	_c.Call.Return(run)
  1849  	return _c
  1850  }
  1851  
  1852  // ListOCIRepositories provides a mock function for the type ArgoDB
  1853  func (_mock *ArgoDB) ListOCIRepositories(ctx context.Context) ([]*v1alpha1.Repository, error) {
  1854  	ret := _mock.Called(ctx)
  1855  
  1856  	if len(ret) == 0 {
  1857  		panic("no return value specified for ListOCIRepositories")
  1858  	}
  1859  
  1860  	var r0 []*v1alpha1.Repository
  1861  	var r1 error
  1862  	if returnFunc, ok := ret.Get(0).(func(context.Context) ([]*v1alpha1.Repository, error)); ok {
  1863  		return returnFunc(ctx)
  1864  	}
  1865  	if returnFunc, ok := ret.Get(0).(func(context.Context) []*v1alpha1.Repository); ok {
  1866  		r0 = returnFunc(ctx)
  1867  	} else {
  1868  		if ret.Get(0) != nil {
  1869  			r0 = ret.Get(0).([]*v1alpha1.Repository)
  1870  		}
  1871  	}
  1872  	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
  1873  		r1 = returnFunc(ctx)
  1874  	} else {
  1875  		r1 = ret.Error(1)
  1876  	}
  1877  	return r0, r1
  1878  }
  1879  
  1880  // ArgoDB_ListOCIRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOCIRepositories'
  1881  type ArgoDB_ListOCIRepositories_Call struct {
  1882  	*mock.Call
  1883  }
  1884  
  1885  // ListOCIRepositories is a helper method to define mock.On call
  1886  //   - ctx context.Context
  1887  func (_e *ArgoDB_Expecter) ListOCIRepositories(ctx interface{}) *ArgoDB_ListOCIRepositories_Call {
  1888  	return &ArgoDB_ListOCIRepositories_Call{Call: _e.mock.On("ListOCIRepositories", ctx)}
  1889  }
  1890  
  1891  func (_c *ArgoDB_ListOCIRepositories_Call) Run(run func(ctx context.Context)) *ArgoDB_ListOCIRepositories_Call {
  1892  	_c.Call.Run(func(args mock.Arguments) {
  1893  		var arg0 context.Context
  1894  		if args[0] != nil {
  1895  			arg0 = args[0].(context.Context)
  1896  		}
  1897  		run(
  1898  			arg0,
  1899  		)
  1900  	})
  1901  	return _c
  1902  }
  1903  
  1904  func (_c *ArgoDB_ListOCIRepositories_Call) Return(repositorys []*v1alpha1.Repository, err error) *ArgoDB_ListOCIRepositories_Call {
  1905  	_c.Call.Return(repositorys, err)
  1906  	return _c
  1907  }
  1908  
  1909  func (_c *ArgoDB_ListOCIRepositories_Call) RunAndReturn(run func(ctx context.Context) ([]*v1alpha1.Repository, error)) *ArgoDB_ListOCIRepositories_Call {
  1910  	_c.Call.Return(run)
  1911  	return _c
  1912  }
  1913  
  1914  // ListRepoCertificates provides a mock function for the type ArgoDB
  1915  func (_mock *ArgoDB) ListRepoCertificates(ctx context.Context, selector *db.CertificateListSelector) (*v1alpha1.RepositoryCertificateList, error) {
  1916  	ret := _mock.Called(ctx, selector)
  1917  
  1918  	if len(ret) == 0 {
  1919  		panic("no return value specified for ListRepoCertificates")
  1920  	}
  1921  
  1922  	var r0 *v1alpha1.RepositoryCertificateList
  1923  	var r1 error
  1924  	if returnFunc, ok := ret.Get(0).(func(context.Context, *db.CertificateListSelector) (*v1alpha1.RepositoryCertificateList, error)); ok {
  1925  		return returnFunc(ctx, selector)
  1926  	}
  1927  	if returnFunc, ok := ret.Get(0).(func(context.Context, *db.CertificateListSelector) *v1alpha1.RepositoryCertificateList); ok {
  1928  		r0 = returnFunc(ctx, selector)
  1929  	} else {
  1930  		if ret.Get(0) != nil {
  1931  			r0 = ret.Get(0).(*v1alpha1.RepositoryCertificateList)
  1932  		}
  1933  	}
  1934  	if returnFunc, ok := ret.Get(1).(func(context.Context, *db.CertificateListSelector) error); ok {
  1935  		r1 = returnFunc(ctx, selector)
  1936  	} else {
  1937  		r1 = ret.Error(1)
  1938  	}
  1939  	return r0, r1
  1940  }
  1941  
  1942  // ArgoDB_ListRepoCertificates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRepoCertificates'
  1943  type ArgoDB_ListRepoCertificates_Call struct {
  1944  	*mock.Call
  1945  }
  1946  
  1947  // ListRepoCertificates is a helper method to define mock.On call
  1948  //   - ctx context.Context
  1949  //   - selector *db.CertificateListSelector
  1950  func (_e *ArgoDB_Expecter) ListRepoCertificates(ctx interface{}, selector interface{}) *ArgoDB_ListRepoCertificates_Call {
  1951  	return &ArgoDB_ListRepoCertificates_Call{Call: _e.mock.On("ListRepoCertificates", ctx, selector)}
  1952  }
  1953  
  1954  func (_c *ArgoDB_ListRepoCertificates_Call) Run(run func(ctx context.Context, selector *db.CertificateListSelector)) *ArgoDB_ListRepoCertificates_Call {
  1955  	_c.Call.Run(func(args mock.Arguments) {
  1956  		var arg0 context.Context
  1957  		if args[0] != nil {
  1958  			arg0 = args[0].(context.Context)
  1959  		}
  1960  		var arg1 *db.CertificateListSelector
  1961  		if args[1] != nil {
  1962  			arg1 = args[1].(*db.CertificateListSelector)
  1963  		}
  1964  		run(
  1965  			arg0,
  1966  			arg1,
  1967  		)
  1968  	})
  1969  	return _c
  1970  }
  1971  
  1972  func (_c *ArgoDB_ListRepoCertificates_Call) Return(repositoryCertificateList *v1alpha1.RepositoryCertificateList, err error) *ArgoDB_ListRepoCertificates_Call {
  1973  	_c.Call.Return(repositoryCertificateList, err)
  1974  	return _c
  1975  }
  1976  
  1977  func (_c *ArgoDB_ListRepoCertificates_Call) RunAndReturn(run func(ctx context.Context, selector *db.CertificateListSelector) (*v1alpha1.RepositoryCertificateList, error)) *ArgoDB_ListRepoCertificates_Call {
  1978  	_c.Call.Return(run)
  1979  	return _c
  1980  }
  1981  
  1982  // ListRepositories provides a mock function for the type ArgoDB
  1983  func (_mock *ArgoDB) ListRepositories(ctx context.Context) ([]*v1alpha1.Repository, error) {
  1984  	ret := _mock.Called(ctx)
  1985  
  1986  	if len(ret) == 0 {
  1987  		panic("no return value specified for ListRepositories")
  1988  	}
  1989  
  1990  	var r0 []*v1alpha1.Repository
  1991  	var r1 error
  1992  	if returnFunc, ok := ret.Get(0).(func(context.Context) ([]*v1alpha1.Repository, error)); ok {
  1993  		return returnFunc(ctx)
  1994  	}
  1995  	if returnFunc, ok := ret.Get(0).(func(context.Context) []*v1alpha1.Repository); ok {
  1996  		r0 = returnFunc(ctx)
  1997  	} else {
  1998  		if ret.Get(0) != nil {
  1999  			r0 = ret.Get(0).([]*v1alpha1.Repository)
  2000  		}
  2001  	}
  2002  	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
  2003  		r1 = returnFunc(ctx)
  2004  	} else {
  2005  		r1 = ret.Error(1)
  2006  	}
  2007  	return r0, r1
  2008  }
  2009  
  2010  // ArgoDB_ListRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRepositories'
  2011  type ArgoDB_ListRepositories_Call struct {
  2012  	*mock.Call
  2013  }
  2014  
  2015  // ListRepositories is a helper method to define mock.On call
  2016  //   - ctx context.Context
  2017  func (_e *ArgoDB_Expecter) ListRepositories(ctx interface{}) *ArgoDB_ListRepositories_Call {
  2018  	return &ArgoDB_ListRepositories_Call{Call: _e.mock.On("ListRepositories", ctx)}
  2019  }
  2020  
  2021  func (_c *ArgoDB_ListRepositories_Call) Run(run func(ctx context.Context)) *ArgoDB_ListRepositories_Call {
  2022  	_c.Call.Run(func(args mock.Arguments) {
  2023  		var arg0 context.Context
  2024  		if args[0] != nil {
  2025  			arg0 = args[0].(context.Context)
  2026  		}
  2027  		run(
  2028  			arg0,
  2029  		)
  2030  	})
  2031  	return _c
  2032  }
  2033  
  2034  func (_c *ArgoDB_ListRepositories_Call) Return(repositorys []*v1alpha1.Repository, err error) *ArgoDB_ListRepositories_Call {
  2035  	_c.Call.Return(repositorys, err)
  2036  	return _c
  2037  }
  2038  
  2039  func (_c *ArgoDB_ListRepositories_Call) RunAndReturn(run func(ctx context.Context) ([]*v1alpha1.Repository, error)) *ArgoDB_ListRepositories_Call {
  2040  	_c.Call.Return(run)
  2041  	return _c
  2042  }
  2043  
  2044  // ListRepositoryCredentials provides a mock function for the type ArgoDB
  2045  func (_mock *ArgoDB) ListRepositoryCredentials(ctx context.Context) ([]string, error) {
  2046  	ret := _mock.Called(ctx)
  2047  
  2048  	if len(ret) == 0 {
  2049  		panic("no return value specified for ListRepositoryCredentials")
  2050  	}
  2051  
  2052  	var r0 []string
  2053  	var r1 error
  2054  	if returnFunc, ok := ret.Get(0).(func(context.Context) ([]string, error)); ok {
  2055  		return returnFunc(ctx)
  2056  	}
  2057  	if returnFunc, ok := ret.Get(0).(func(context.Context) []string); ok {
  2058  		r0 = returnFunc(ctx)
  2059  	} else {
  2060  		if ret.Get(0) != nil {
  2061  			r0 = ret.Get(0).([]string)
  2062  		}
  2063  	}
  2064  	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
  2065  		r1 = returnFunc(ctx)
  2066  	} else {
  2067  		r1 = ret.Error(1)
  2068  	}
  2069  	return r0, r1
  2070  }
  2071  
  2072  // ArgoDB_ListRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRepositoryCredentials'
  2073  type ArgoDB_ListRepositoryCredentials_Call struct {
  2074  	*mock.Call
  2075  }
  2076  
  2077  // ListRepositoryCredentials is a helper method to define mock.On call
  2078  //   - ctx context.Context
  2079  func (_e *ArgoDB_Expecter) ListRepositoryCredentials(ctx interface{}) *ArgoDB_ListRepositoryCredentials_Call {
  2080  	return &ArgoDB_ListRepositoryCredentials_Call{Call: _e.mock.On("ListRepositoryCredentials", ctx)}
  2081  }
  2082  
  2083  func (_c *ArgoDB_ListRepositoryCredentials_Call) Run(run func(ctx context.Context)) *ArgoDB_ListRepositoryCredentials_Call {
  2084  	_c.Call.Run(func(args mock.Arguments) {
  2085  		var arg0 context.Context
  2086  		if args[0] != nil {
  2087  			arg0 = args[0].(context.Context)
  2088  		}
  2089  		run(
  2090  			arg0,
  2091  		)
  2092  	})
  2093  	return _c
  2094  }
  2095  
  2096  func (_c *ArgoDB_ListRepositoryCredentials_Call) Return(strings []string, err error) *ArgoDB_ListRepositoryCredentials_Call {
  2097  	_c.Call.Return(strings, err)
  2098  	return _c
  2099  }
  2100  
  2101  func (_c *ArgoDB_ListRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *ArgoDB_ListRepositoryCredentials_Call {
  2102  	_c.Call.Return(run)
  2103  	return _c
  2104  }
  2105  
  2106  // ListWriteRepositories provides a mock function for the type ArgoDB
  2107  func (_mock *ArgoDB) ListWriteRepositories(ctx context.Context) ([]*v1alpha1.Repository, error) {
  2108  	ret := _mock.Called(ctx)
  2109  
  2110  	if len(ret) == 0 {
  2111  		panic("no return value specified for ListWriteRepositories")
  2112  	}
  2113  
  2114  	var r0 []*v1alpha1.Repository
  2115  	var r1 error
  2116  	if returnFunc, ok := ret.Get(0).(func(context.Context) ([]*v1alpha1.Repository, error)); ok {
  2117  		return returnFunc(ctx)
  2118  	}
  2119  	if returnFunc, ok := ret.Get(0).(func(context.Context) []*v1alpha1.Repository); ok {
  2120  		r0 = returnFunc(ctx)
  2121  	} else {
  2122  		if ret.Get(0) != nil {
  2123  			r0 = ret.Get(0).([]*v1alpha1.Repository)
  2124  		}
  2125  	}
  2126  	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
  2127  		r1 = returnFunc(ctx)
  2128  	} else {
  2129  		r1 = ret.Error(1)
  2130  	}
  2131  	return r0, r1
  2132  }
  2133  
  2134  // ArgoDB_ListWriteRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListWriteRepositories'
  2135  type ArgoDB_ListWriteRepositories_Call struct {
  2136  	*mock.Call
  2137  }
  2138  
  2139  // ListWriteRepositories is a helper method to define mock.On call
  2140  //   - ctx context.Context
  2141  func (_e *ArgoDB_Expecter) ListWriteRepositories(ctx interface{}) *ArgoDB_ListWriteRepositories_Call {
  2142  	return &ArgoDB_ListWriteRepositories_Call{Call: _e.mock.On("ListWriteRepositories", ctx)}
  2143  }
  2144  
  2145  func (_c *ArgoDB_ListWriteRepositories_Call) Run(run func(ctx context.Context)) *ArgoDB_ListWriteRepositories_Call {
  2146  	_c.Call.Run(func(args mock.Arguments) {
  2147  		var arg0 context.Context
  2148  		if args[0] != nil {
  2149  			arg0 = args[0].(context.Context)
  2150  		}
  2151  		run(
  2152  			arg0,
  2153  		)
  2154  	})
  2155  	return _c
  2156  }
  2157  
  2158  func (_c *ArgoDB_ListWriteRepositories_Call) Return(repositorys []*v1alpha1.Repository, err error) *ArgoDB_ListWriteRepositories_Call {
  2159  	_c.Call.Return(repositorys, err)
  2160  	return _c
  2161  }
  2162  
  2163  func (_c *ArgoDB_ListWriteRepositories_Call) RunAndReturn(run func(ctx context.Context) ([]*v1alpha1.Repository, error)) *ArgoDB_ListWriteRepositories_Call {
  2164  	_c.Call.Return(run)
  2165  	return _c
  2166  }
  2167  
  2168  // ListWriteRepositoryCredentials provides a mock function for the type ArgoDB
  2169  func (_mock *ArgoDB) ListWriteRepositoryCredentials(ctx context.Context) ([]string, error) {
  2170  	ret := _mock.Called(ctx)
  2171  
  2172  	if len(ret) == 0 {
  2173  		panic("no return value specified for ListWriteRepositoryCredentials")
  2174  	}
  2175  
  2176  	var r0 []string
  2177  	var r1 error
  2178  	if returnFunc, ok := ret.Get(0).(func(context.Context) ([]string, error)); ok {
  2179  		return returnFunc(ctx)
  2180  	}
  2181  	if returnFunc, ok := ret.Get(0).(func(context.Context) []string); ok {
  2182  		r0 = returnFunc(ctx)
  2183  	} else {
  2184  		if ret.Get(0) != nil {
  2185  			r0 = ret.Get(0).([]string)
  2186  		}
  2187  	}
  2188  	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
  2189  		r1 = returnFunc(ctx)
  2190  	} else {
  2191  		r1 = ret.Error(1)
  2192  	}
  2193  	return r0, r1
  2194  }
  2195  
  2196  // ArgoDB_ListWriteRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListWriteRepositoryCredentials'
  2197  type ArgoDB_ListWriteRepositoryCredentials_Call struct {
  2198  	*mock.Call
  2199  }
  2200  
  2201  // ListWriteRepositoryCredentials is a helper method to define mock.On call
  2202  //   - ctx context.Context
  2203  func (_e *ArgoDB_Expecter) ListWriteRepositoryCredentials(ctx interface{}) *ArgoDB_ListWriteRepositoryCredentials_Call {
  2204  	return &ArgoDB_ListWriteRepositoryCredentials_Call{Call: _e.mock.On("ListWriteRepositoryCredentials", ctx)}
  2205  }
  2206  
  2207  func (_c *ArgoDB_ListWriteRepositoryCredentials_Call) Run(run func(ctx context.Context)) *ArgoDB_ListWriteRepositoryCredentials_Call {
  2208  	_c.Call.Run(func(args mock.Arguments) {
  2209  		var arg0 context.Context
  2210  		if args[0] != nil {
  2211  			arg0 = args[0].(context.Context)
  2212  		}
  2213  		run(
  2214  			arg0,
  2215  		)
  2216  	})
  2217  	return _c
  2218  }
  2219  
  2220  func (_c *ArgoDB_ListWriteRepositoryCredentials_Call) Return(strings []string, err error) *ArgoDB_ListWriteRepositoryCredentials_Call {
  2221  	_c.Call.Return(strings, err)
  2222  	return _c
  2223  }
  2224  
  2225  func (_c *ArgoDB_ListWriteRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *ArgoDB_ListWriteRepositoryCredentials_Call {
  2226  	_c.Call.Return(run)
  2227  	return _c
  2228  }
  2229  
  2230  // RemoveRepoCertificates provides a mock function for the type ArgoDB
  2231  func (_mock *ArgoDB) RemoveRepoCertificates(ctx context.Context, selector *db.CertificateListSelector) (*v1alpha1.RepositoryCertificateList, error) {
  2232  	ret := _mock.Called(ctx, selector)
  2233  
  2234  	if len(ret) == 0 {
  2235  		panic("no return value specified for RemoveRepoCertificates")
  2236  	}
  2237  
  2238  	var r0 *v1alpha1.RepositoryCertificateList
  2239  	var r1 error
  2240  	if returnFunc, ok := ret.Get(0).(func(context.Context, *db.CertificateListSelector) (*v1alpha1.RepositoryCertificateList, error)); ok {
  2241  		return returnFunc(ctx, selector)
  2242  	}
  2243  	if returnFunc, ok := ret.Get(0).(func(context.Context, *db.CertificateListSelector) *v1alpha1.RepositoryCertificateList); ok {
  2244  		r0 = returnFunc(ctx, selector)
  2245  	} else {
  2246  		if ret.Get(0) != nil {
  2247  			r0 = ret.Get(0).(*v1alpha1.RepositoryCertificateList)
  2248  		}
  2249  	}
  2250  	if returnFunc, ok := ret.Get(1).(func(context.Context, *db.CertificateListSelector) error); ok {
  2251  		r1 = returnFunc(ctx, selector)
  2252  	} else {
  2253  		r1 = ret.Error(1)
  2254  	}
  2255  	return r0, r1
  2256  }
  2257  
  2258  // ArgoDB_RemoveRepoCertificates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveRepoCertificates'
  2259  type ArgoDB_RemoveRepoCertificates_Call struct {
  2260  	*mock.Call
  2261  }
  2262  
  2263  // RemoveRepoCertificates is a helper method to define mock.On call
  2264  //   - ctx context.Context
  2265  //   - selector *db.CertificateListSelector
  2266  func (_e *ArgoDB_Expecter) RemoveRepoCertificates(ctx interface{}, selector interface{}) *ArgoDB_RemoveRepoCertificates_Call {
  2267  	return &ArgoDB_RemoveRepoCertificates_Call{Call: _e.mock.On("RemoveRepoCertificates", ctx, selector)}
  2268  }
  2269  
  2270  func (_c *ArgoDB_RemoveRepoCertificates_Call) Run(run func(ctx context.Context, selector *db.CertificateListSelector)) *ArgoDB_RemoveRepoCertificates_Call {
  2271  	_c.Call.Run(func(args mock.Arguments) {
  2272  		var arg0 context.Context
  2273  		if args[0] != nil {
  2274  			arg0 = args[0].(context.Context)
  2275  		}
  2276  		var arg1 *db.CertificateListSelector
  2277  		if args[1] != nil {
  2278  			arg1 = args[1].(*db.CertificateListSelector)
  2279  		}
  2280  		run(
  2281  			arg0,
  2282  			arg1,
  2283  		)
  2284  	})
  2285  	return _c
  2286  }
  2287  
  2288  func (_c *ArgoDB_RemoveRepoCertificates_Call) Return(repositoryCertificateList *v1alpha1.RepositoryCertificateList, err error) *ArgoDB_RemoveRepoCertificates_Call {
  2289  	_c.Call.Return(repositoryCertificateList, err)
  2290  	return _c
  2291  }
  2292  
  2293  func (_c *ArgoDB_RemoveRepoCertificates_Call) RunAndReturn(run func(ctx context.Context, selector *db.CertificateListSelector) (*v1alpha1.RepositoryCertificateList, error)) *ArgoDB_RemoveRepoCertificates_Call {
  2294  	_c.Call.Return(run)
  2295  	return _c
  2296  }
  2297  
  2298  // RepositoryExists provides a mock function for the type ArgoDB
  2299  func (_mock *ArgoDB) RepositoryExists(ctx context.Context, repoURL string, project string) (bool, error) {
  2300  	ret := _mock.Called(ctx, repoURL, project)
  2301  
  2302  	if len(ret) == 0 {
  2303  		panic("no return value specified for RepositoryExists")
  2304  	}
  2305  
  2306  	var r0 bool
  2307  	var r1 error
  2308  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (bool, error)); ok {
  2309  		return returnFunc(ctx, repoURL, project)
  2310  	}
  2311  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) bool); ok {
  2312  		r0 = returnFunc(ctx, repoURL, project)
  2313  	} else {
  2314  		r0 = ret.Get(0).(bool)
  2315  	}
  2316  	if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
  2317  		r1 = returnFunc(ctx, repoURL, project)
  2318  	} else {
  2319  		r1 = ret.Error(1)
  2320  	}
  2321  	return r0, r1
  2322  }
  2323  
  2324  // ArgoDB_RepositoryExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RepositoryExists'
  2325  type ArgoDB_RepositoryExists_Call struct {
  2326  	*mock.Call
  2327  }
  2328  
  2329  // RepositoryExists is a helper method to define mock.On call
  2330  //   - ctx context.Context
  2331  //   - repoURL string
  2332  //   - project string
  2333  func (_e *ArgoDB_Expecter) RepositoryExists(ctx interface{}, repoURL interface{}, project interface{}) *ArgoDB_RepositoryExists_Call {
  2334  	return &ArgoDB_RepositoryExists_Call{Call: _e.mock.On("RepositoryExists", ctx, repoURL, project)}
  2335  }
  2336  
  2337  func (_c *ArgoDB_RepositoryExists_Call) Run(run func(ctx context.Context, repoURL string, project string)) *ArgoDB_RepositoryExists_Call {
  2338  	_c.Call.Run(func(args mock.Arguments) {
  2339  		var arg0 context.Context
  2340  		if args[0] != nil {
  2341  			arg0 = args[0].(context.Context)
  2342  		}
  2343  		var arg1 string
  2344  		if args[1] != nil {
  2345  			arg1 = args[1].(string)
  2346  		}
  2347  		var arg2 string
  2348  		if args[2] != nil {
  2349  			arg2 = args[2].(string)
  2350  		}
  2351  		run(
  2352  			arg0,
  2353  			arg1,
  2354  			arg2,
  2355  		)
  2356  	})
  2357  	return _c
  2358  }
  2359  
  2360  func (_c *ArgoDB_RepositoryExists_Call) Return(b bool, err error) *ArgoDB_RepositoryExists_Call {
  2361  	_c.Call.Return(b, err)
  2362  	return _c
  2363  }
  2364  
  2365  func (_c *ArgoDB_RepositoryExists_Call) RunAndReturn(run func(ctx context.Context, repoURL string, project string) (bool, error)) *ArgoDB_RepositoryExists_Call {
  2366  	_c.Call.Return(run)
  2367  	return _c
  2368  }
  2369  
  2370  // UpdateCluster provides a mock function for the type ArgoDB
  2371  func (_mock *ArgoDB) UpdateCluster(ctx context.Context, c *v1alpha1.Cluster) (*v1alpha1.Cluster, error) {
  2372  	ret := _mock.Called(ctx, c)
  2373  
  2374  	if len(ret) == 0 {
  2375  		panic("no return value specified for UpdateCluster")
  2376  	}
  2377  
  2378  	var r0 *v1alpha1.Cluster
  2379  	var r1 error
  2380  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Cluster) (*v1alpha1.Cluster, error)); ok {
  2381  		return returnFunc(ctx, c)
  2382  	}
  2383  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Cluster) *v1alpha1.Cluster); ok {
  2384  		r0 = returnFunc(ctx, c)
  2385  	} else {
  2386  		if ret.Get(0) != nil {
  2387  			r0 = ret.Get(0).(*v1alpha1.Cluster)
  2388  		}
  2389  	}
  2390  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.Cluster) error); ok {
  2391  		r1 = returnFunc(ctx, c)
  2392  	} else {
  2393  		r1 = ret.Error(1)
  2394  	}
  2395  	return r0, r1
  2396  }
  2397  
  2398  // ArgoDB_UpdateCluster_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCluster'
  2399  type ArgoDB_UpdateCluster_Call struct {
  2400  	*mock.Call
  2401  }
  2402  
  2403  // UpdateCluster is a helper method to define mock.On call
  2404  //   - ctx context.Context
  2405  //   - c *v1alpha1.Cluster
  2406  func (_e *ArgoDB_Expecter) UpdateCluster(ctx interface{}, c interface{}) *ArgoDB_UpdateCluster_Call {
  2407  	return &ArgoDB_UpdateCluster_Call{Call: _e.mock.On("UpdateCluster", ctx, c)}
  2408  }
  2409  
  2410  func (_c *ArgoDB_UpdateCluster_Call) Run(run func(ctx context.Context, c *v1alpha1.Cluster)) *ArgoDB_UpdateCluster_Call {
  2411  	_c.Call.Run(func(args mock.Arguments) {
  2412  		var arg0 context.Context
  2413  		if args[0] != nil {
  2414  			arg0 = args[0].(context.Context)
  2415  		}
  2416  		var arg1 *v1alpha1.Cluster
  2417  		if args[1] != nil {
  2418  			arg1 = args[1].(*v1alpha1.Cluster)
  2419  		}
  2420  		run(
  2421  			arg0,
  2422  			arg1,
  2423  		)
  2424  	})
  2425  	return _c
  2426  }
  2427  
  2428  func (_c *ArgoDB_UpdateCluster_Call) Return(cluster *v1alpha1.Cluster, err error) *ArgoDB_UpdateCluster_Call {
  2429  	_c.Call.Return(cluster, err)
  2430  	return _c
  2431  }
  2432  
  2433  func (_c *ArgoDB_UpdateCluster_Call) RunAndReturn(run func(ctx context.Context, c *v1alpha1.Cluster) (*v1alpha1.Cluster, error)) *ArgoDB_UpdateCluster_Call {
  2434  	_c.Call.Return(run)
  2435  	return _c
  2436  }
  2437  
  2438  // UpdateRepository provides a mock function for the type ArgoDB
  2439  func (_mock *ArgoDB) UpdateRepository(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error) {
  2440  	ret := _mock.Called(ctx, r)
  2441  
  2442  	if len(ret) == 0 {
  2443  		panic("no return value specified for UpdateRepository")
  2444  	}
  2445  
  2446  	var r0 *v1alpha1.Repository
  2447  	var r1 error
  2448  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Repository) (*v1alpha1.Repository, error)); ok {
  2449  		return returnFunc(ctx, r)
  2450  	}
  2451  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Repository) *v1alpha1.Repository); ok {
  2452  		r0 = returnFunc(ctx, r)
  2453  	} else {
  2454  		if ret.Get(0) != nil {
  2455  			r0 = ret.Get(0).(*v1alpha1.Repository)
  2456  		}
  2457  	}
  2458  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.Repository) error); ok {
  2459  		r1 = returnFunc(ctx, r)
  2460  	} else {
  2461  		r1 = ret.Error(1)
  2462  	}
  2463  	return r0, r1
  2464  }
  2465  
  2466  // ArgoDB_UpdateRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRepository'
  2467  type ArgoDB_UpdateRepository_Call struct {
  2468  	*mock.Call
  2469  }
  2470  
  2471  // UpdateRepository is a helper method to define mock.On call
  2472  //   - ctx context.Context
  2473  //   - r *v1alpha1.Repository
  2474  func (_e *ArgoDB_Expecter) UpdateRepository(ctx interface{}, r interface{}) *ArgoDB_UpdateRepository_Call {
  2475  	return &ArgoDB_UpdateRepository_Call{Call: _e.mock.On("UpdateRepository", ctx, r)}
  2476  }
  2477  
  2478  func (_c *ArgoDB_UpdateRepository_Call) Run(run func(ctx context.Context, r *v1alpha1.Repository)) *ArgoDB_UpdateRepository_Call {
  2479  	_c.Call.Run(func(args mock.Arguments) {
  2480  		var arg0 context.Context
  2481  		if args[0] != nil {
  2482  			arg0 = args[0].(context.Context)
  2483  		}
  2484  		var arg1 *v1alpha1.Repository
  2485  		if args[1] != nil {
  2486  			arg1 = args[1].(*v1alpha1.Repository)
  2487  		}
  2488  		run(
  2489  			arg0,
  2490  			arg1,
  2491  		)
  2492  	})
  2493  	return _c
  2494  }
  2495  
  2496  func (_c *ArgoDB_UpdateRepository_Call) Return(repository *v1alpha1.Repository, err error) *ArgoDB_UpdateRepository_Call {
  2497  	_c.Call.Return(repository, err)
  2498  	return _c
  2499  }
  2500  
  2501  func (_c *ArgoDB_UpdateRepository_Call) RunAndReturn(run func(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error)) *ArgoDB_UpdateRepository_Call {
  2502  	_c.Call.Return(run)
  2503  	return _c
  2504  }
  2505  
  2506  // UpdateRepositoryCredentials provides a mock function for the type ArgoDB
  2507  func (_mock *ArgoDB) UpdateRepositoryCredentials(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error) {
  2508  	ret := _mock.Called(ctx, r)
  2509  
  2510  	if len(ret) == 0 {
  2511  		panic("no return value specified for UpdateRepositoryCredentials")
  2512  	}
  2513  
  2514  	var r0 *v1alpha1.RepoCreds
  2515  	var r1 error
  2516  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)); ok {
  2517  		return returnFunc(ctx, r)
  2518  	}
  2519  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.RepoCreds) *v1alpha1.RepoCreds); ok {
  2520  		r0 = returnFunc(ctx, r)
  2521  	} else {
  2522  		if ret.Get(0) != nil {
  2523  			r0 = ret.Get(0).(*v1alpha1.RepoCreds)
  2524  		}
  2525  	}
  2526  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.RepoCreds) error); ok {
  2527  		r1 = returnFunc(ctx, r)
  2528  	} else {
  2529  		r1 = ret.Error(1)
  2530  	}
  2531  	return r0, r1
  2532  }
  2533  
  2534  // ArgoDB_UpdateRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRepositoryCredentials'
  2535  type ArgoDB_UpdateRepositoryCredentials_Call struct {
  2536  	*mock.Call
  2537  }
  2538  
  2539  // UpdateRepositoryCredentials is a helper method to define mock.On call
  2540  //   - ctx context.Context
  2541  //   - r *v1alpha1.RepoCreds
  2542  func (_e *ArgoDB_Expecter) UpdateRepositoryCredentials(ctx interface{}, r interface{}) *ArgoDB_UpdateRepositoryCredentials_Call {
  2543  	return &ArgoDB_UpdateRepositoryCredentials_Call{Call: _e.mock.On("UpdateRepositoryCredentials", ctx, r)}
  2544  }
  2545  
  2546  func (_c *ArgoDB_UpdateRepositoryCredentials_Call) Run(run func(ctx context.Context, r *v1alpha1.RepoCreds)) *ArgoDB_UpdateRepositoryCredentials_Call {
  2547  	_c.Call.Run(func(args mock.Arguments) {
  2548  		var arg0 context.Context
  2549  		if args[0] != nil {
  2550  			arg0 = args[0].(context.Context)
  2551  		}
  2552  		var arg1 *v1alpha1.RepoCreds
  2553  		if args[1] != nil {
  2554  			arg1 = args[1].(*v1alpha1.RepoCreds)
  2555  		}
  2556  		run(
  2557  			arg0,
  2558  			arg1,
  2559  		)
  2560  	})
  2561  	return _c
  2562  }
  2563  
  2564  func (_c *ArgoDB_UpdateRepositoryCredentials_Call) Return(repoCreds *v1alpha1.RepoCreds, err error) *ArgoDB_UpdateRepositoryCredentials_Call {
  2565  	_c.Call.Return(repoCreds, err)
  2566  	return _c
  2567  }
  2568  
  2569  func (_c *ArgoDB_UpdateRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)) *ArgoDB_UpdateRepositoryCredentials_Call {
  2570  	_c.Call.Return(run)
  2571  	return _c
  2572  }
  2573  
  2574  // UpdateWriteRepository provides a mock function for the type ArgoDB
  2575  func (_mock *ArgoDB) UpdateWriteRepository(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error) {
  2576  	ret := _mock.Called(ctx, r)
  2577  
  2578  	if len(ret) == 0 {
  2579  		panic("no return value specified for UpdateWriteRepository")
  2580  	}
  2581  
  2582  	var r0 *v1alpha1.Repository
  2583  	var r1 error
  2584  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Repository) (*v1alpha1.Repository, error)); ok {
  2585  		return returnFunc(ctx, r)
  2586  	}
  2587  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Repository) *v1alpha1.Repository); ok {
  2588  		r0 = returnFunc(ctx, r)
  2589  	} else {
  2590  		if ret.Get(0) != nil {
  2591  			r0 = ret.Get(0).(*v1alpha1.Repository)
  2592  		}
  2593  	}
  2594  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.Repository) error); ok {
  2595  		r1 = returnFunc(ctx, r)
  2596  	} else {
  2597  		r1 = ret.Error(1)
  2598  	}
  2599  	return r0, r1
  2600  }
  2601  
  2602  // ArgoDB_UpdateWriteRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWriteRepository'
  2603  type ArgoDB_UpdateWriteRepository_Call struct {
  2604  	*mock.Call
  2605  }
  2606  
  2607  // UpdateWriteRepository is a helper method to define mock.On call
  2608  //   - ctx context.Context
  2609  //   - r *v1alpha1.Repository
  2610  func (_e *ArgoDB_Expecter) UpdateWriteRepository(ctx interface{}, r interface{}) *ArgoDB_UpdateWriteRepository_Call {
  2611  	return &ArgoDB_UpdateWriteRepository_Call{Call: _e.mock.On("UpdateWriteRepository", ctx, r)}
  2612  }
  2613  
  2614  func (_c *ArgoDB_UpdateWriteRepository_Call) Run(run func(ctx context.Context, r *v1alpha1.Repository)) *ArgoDB_UpdateWriteRepository_Call {
  2615  	_c.Call.Run(func(args mock.Arguments) {
  2616  		var arg0 context.Context
  2617  		if args[0] != nil {
  2618  			arg0 = args[0].(context.Context)
  2619  		}
  2620  		var arg1 *v1alpha1.Repository
  2621  		if args[1] != nil {
  2622  			arg1 = args[1].(*v1alpha1.Repository)
  2623  		}
  2624  		run(
  2625  			arg0,
  2626  			arg1,
  2627  		)
  2628  	})
  2629  	return _c
  2630  }
  2631  
  2632  func (_c *ArgoDB_UpdateWriteRepository_Call) Return(repository *v1alpha1.Repository, err error) *ArgoDB_UpdateWriteRepository_Call {
  2633  	_c.Call.Return(repository, err)
  2634  	return _c
  2635  }
  2636  
  2637  func (_c *ArgoDB_UpdateWriteRepository_Call) RunAndReturn(run func(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error)) *ArgoDB_UpdateWriteRepository_Call {
  2638  	_c.Call.Return(run)
  2639  	return _c
  2640  }
  2641  
  2642  // UpdateWriteRepositoryCredentials provides a mock function for the type ArgoDB
  2643  func (_mock *ArgoDB) UpdateWriteRepositoryCredentials(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error) {
  2644  	ret := _mock.Called(ctx, r)
  2645  
  2646  	if len(ret) == 0 {
  2647  		panic("no return value specified for UpdateWriteRepositoryCredentials")
  2648  	}
  2649  
  2650  	var r0 *v1alpha1.RepoCreds
  2651  	var r1 error
  2652  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)); ok {
  2653  		return returnFunc(ctx, r)
  2654  	}
  2655  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.RepoCreds) *v1alpha1.RepoCreds); ok {
  2656  		r0 = returnFunc(ctx, r)
  2657  	} else {
  2658  		if ret.Get(0) != nil {
  2659  			r0 = ret.Get(0).(*v1alpha1.RepoCreds)
  2660  		}
  2661  	}
  2662  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.RepoCreds) error); ok {
  2663  		r1 = returnFunc(ctx, r)
  2664  	} else {
  2665  		r1 = ret.Error(1)
  2666  	}
  2667  	return r0, r1
  2668  }
  2669  
  2670  // ArgoDB_UpdateWriteRepositoryCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWriteRepositoryCredentials'
  2671  type ArgoDB_UpdateWriteRepositoryCredentials_Call struct {
  2672  	*mock.Call
  2673  }
  2674  
  2675  // UpdateWriteRepositoryCredentials is a helper method to define mock.On call
  2676  //   - ctx context.Context
  2677  //   - r *v1alpha1.RepoCreds
  2678  func (_e *ArgoDB_Expecter) UpdateWriteRepositoryCredentials(ctx interface{}, r interface{}) *ArgoDB_UpdateWriteRepositoryCredentials_Call {
  2679  	return &ArgoDB_UpdateWriteRepositoryCredentials_Call{Call: _e.mock.On("UpdateWriteRepositoryCredentials", ctx, r)}
  2680  }
  2681  
  2682  func (_c *ArgoDB_UpdateWriteRepositoryCredentials_Call) Run(run func(ctx context.Context, r *v1alpha1.RepoCreds)) *ArgoDB_UpdateWriteRepositoryCredentials_Call {
  2683  	_c.Call.Run(func(args mock.Arguments) {
  2684  		var arg0 context.Context
  2685  		if args[0] != nil {
  2686  			arg0 = args[0].(context.Context)
  2687  		}
  2688  		var arg1 *v1alpha1.RepoCreds
  2689  		if args[1] != nil {
  2690  			arg1 = args[1].(*v1alpha1.RepoCreds)
  2691  		}
  2692  		run(
  2693  			arg0,
  2694  			arg1,
  2695  		)
  2696  	})
  2697  	return _c
  2698  }
  2699  
  2700  func (_c *ArgoDB_UpdateWriteRepositoryCredentials_Call) Return(repoCreds *v1alpha1.RepoCreds, err error) *ArgoDB_UpdateWriteRepositoryCredentials_Call {
  2701  	_c.Call.Return(repoCreds, err)
  2702  	return _c
  2703  }
  2704  
  2705  func (_c *ArgoDB_UpdateWriteRepositoryCredentials_Call) RunAndReturn(run func(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)) *ArgoDB_UpdateWriteRepositoryCredentials_Call {
  2706  	_c.Call.Return(run)
  2707  	return _c
  2708  }
  2709  
  2710  // WatchClusters provides a mock function for the type ArgoDB
  2711  func (_mock *ArgoDB) WatchClusters(ctx context.Context, handleAddEvent func(cluster *v1alpha1.Cluster), handleModEvent func(oldCluster *v1alpha1.Cluster, newCluster *v1alpha1.Cluster), handleDeleteEvent func(clusterServer string)) error {
  2712  	ret := _mock.Called(ctx, handleAddEvent, handleModEvent, handleDeleteEvent)
  2713  
  2714  	if len(ret) == 0 {
  2715  		panic("no return value specified for WatchClusters")
  2716  	}
  2717  
  2718  	var r0 error
  2719  	if returnFunc, ok := ret.Get(0).(func(context.Context, func(cluster *v1alpha1.Cluster), func(oldCluster *v1alpha1.Cluster, newCluster *v1alpha1.Cluster), func(clusterServer string)) error); ok {
  2720  		r0 = returnFunc(ctx, handleAddEvent, handleModEvent, handleDeleteEvent)
  2721  	} else {
  2722  		r0 = ret.Error(0)
  2723  	}
  2724  	return r0
  2725  }
  2726  
  2727  // ArgoDB_WatchClusters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchClusters'
  2728  type ArgoDB_WatchClusters_Call struct {
  2729  	*mock.Call
  2730  }
  2731  
  2732  // WatchClusters is a helper method to define mock.On call
  2733  //   - ctx context.Context
  2734  //   - handleAddEvent func(cluster *v1alpha1.Cluster)
  2735  //   - handleModEvent func(oldCluster *v1alpha1.Cluster, newCluster *v1alpha1.Cluster)
  2736  //   - handleDeleteEvent func(clusterServer string)
  2737  func (_e *ArgoDB_Expecter) WatchClusters(ctx interface{}, handleAddEvent interface{}, handleModEvent interface{}, handleDeleteEvent interface{}) *ArgoDB_WatchClusters_Call {
  2738  	return &ArgoDB_WatchClusters_Call{Call: _e.mock.On("WatchClusters", ctx, handleAddEvent, handleModEvent, handleDeleteEvent)}
  2739  }
  2740  
  2741  func (_c *ArgoDB_WatchClusters_Call) Run(run func(ctx context.Context, handleAddEvent func(cluster *v1alpha1.Cluster), handleModEvent func(oldCluster *v1alpha1.Cluster, newCluster *v1alpha1.Cluster), handleDeleteEvent func(clusterServer string))) *ArgoDB_WatchClusters_Call {
  2742  	_c.Call.Run(func(args mock.Arguments) {
  2743  		var arg0 context.Context
  2744  		if args[0] != nil {
  2745  			arg0 = args[0].(context.Context)
  2746  		}
  2747  		var arg1 func(cluster *v1alpha1.Cluster)
  2748  		if args[1] != nil {
  2749  			arg1 = args[1].(func(cluster *v1alpha1.Cluster))
  2750  		}
  2751  		var arg2 func(oldCluster *v1alpha1.Cluster, newCluster *v1alpha1.Cluster)
  2752  		if args[2] != nil {
  2753  			arg2 = args[2].(func(oldCluster *v1alpha1.Cluster, newCluster *v1alpha1.Cluster))
  2754  		}
  2755  		var arg3 func(clusterServer string)
  2756  		if args[3] != nil {
  2757  			arg3 = args[3].(func(clusterServer string))
  2758  		}
  2759  		run(
  2760  			arg0,
  2761  			arg1,
  2762  			arg2,
  2763  			arg3,
  2764  		)
  2765  	})
  2766  	return _c
  2767  }
  2768  
  2769  func (_c *ArgoDB_WatchClusters_Call) Return(err error) *ArgoDB_WatchClusters_Call {
  2770  	_c.Call.Return(err)
  2771  	return _c
  2772  }
  2773  
  2774  func (_c *ArgoDB_WatchClusters_Call) RunAndReturn(run func(ctx context.Context, handleAddEvent func(cluster *v1alpha1.Cluster), handleModEvent func(oldCluster *v1alpha1.Cluster, newCluster *v1alpha1.Cluster), handleDeleteEvent func(clusterServer string)) error) *ArgoDB_WatchClusters_Call {
  2775  	_c.Call.Return(run)
  2776  	return _c
  2777  }
  2778  
  2779  // WriteRepositoryExists provides a mock function for the type ArgoDB
  2780  func (_mock *ArgoDB) WriteRepositoryExists(ctx context.Context, repoURL string, project string) (bool, error) {
  2781  	ret := _mock.Called(ctx, repoURL, project)
  2782  
  2783  	if len(ret) == 0 {
  2784  		panic("no return value specified for WriteRepositoryExists")
  2785  	}
  2786  
  2787  	var r0 bool
  2788  	var r1 error
  2789  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (bool, error)); ok {
  2790  		return returnFunc(ctx, repoURL, project)
  2791  	}
  2792  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) bool); ok {
  2793  		r0 = returnFunc(ctx, repoURL, project)
  2794  	} else {
  2795  		r0 = ret.Get(0).(bool)
  2796  	}
  2797  	if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
  2798  		r1 = returnFunc(ctx, repoURL, project)
  2799  	} else {
  2800  		r1 = ret.Error(1)
  2801  	}
  2802  	return r0, r1
  2803  }
  2804  
  2805  // ArgoDB_WriteRepositoryExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteRepositoryExists'
  2806  type ArgoDB_WriteRepositoryExists_Call struct {
  2807  	*mock.Call
  2808  }
  2809  
  2810  // WriteRepositoryExists is a helper method to define mock.On call
  2811  //   - ctx context.Context
  2812  //   - repoURL string
  2813  //   - project string
  2814  func (_e *ArgoDB_Expecter) WriteRepositoryExists(ctx interface{}, repoURL interface{}, project interface{}) *ArgoDB_WriteRepositoryExists_Call {
  2815  	return &ArgoDB_WriteRepositoryExists_Call{Call: _e.mock.On("WriteRepositoryExists", ctx, repoURL, project)}
  2816  }
  2817  
  2818  func (_c *ArgoDB_WriteRepositoryExists_Call) Run(run func(ctx context.Context, repoURL string, project string)) *ArgoDB_WriteRepositoryExists_Call {
  2819  	_c.Call.Run(func(args mock.Arguments) {
  2820  		var arg0 context.Context
  2821  		if args[0] != nil {
  2822  			arg0 = args[0].(context.Context)
  2823  		}
  2824  		var arg1 string
  2825  		if args[1] != nil {
  2826  			arg1 = args[1].(string)
  2827  		}
  2828  		var arg2 string
  2829  		if args[2] != nil {
  2830  			arg2 = args[2].(string)
  2831  		}
  2832  		run(
  2833  			arg0,
  2834  			arg1,
  2835  			arg2,
  2836  		)
  2837  	})
  2838  	return _c
  2839  }
  2840  
  2841  func (_c *ArgoDB_WriteRepositoryExists_Call) Return(b bool, err error) *ArgoDB_WriteRepositoryExists_Call {
  2842  	_c.Call.Return(b, err)
  2843  	return _c
  2844  }
  2845  
  2846  func (_c *ArgoDB_WriteRepositoryExists_Call) RunAndReturn(run func(ctx context.Context, repoURL string, project string) (bool, error)) *ArgoDB_WriteRepositoryExists_Call {
  2847  	_c.Call.Return(run)
  2848  	return _c
  2849  }