github.com/argoproj/argo-cd@v1.8.7/pkg/apiclient/cluster/mocks/ClusterServiceServer.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	cluster "github.com/argoproj/argo-cd/pkg/apiclient/cluster"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  
    12  	v1alpha1 "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1"
    13  )
    14  
    15  // ClusterServiceServer is an autogenerated mock type for the ClusterServiceServer type
    16  type ClusterServiceServer struct {
    17  	mock.Mock
    18  }
    19  
    20  // Create provides a mock function with given fields: _a0, _a1
    21  func (_m *ClusterServiceServer) Create(_a0 context.Context, _a1 *cluster.ClusterCreateRequest) (*v1alpha1.Cluster, error) {
    22  	ret := _m.Called(_a0, _a1)
    23  
    24  	var r0 *v1alpha1.Cluster
    25  	if rf, ok := ret.Get(0).(func(context.Context, *cluster.ClusterCreateRequest) *v1alpha1.Cluster); ok {
    26  		r0 = rf(_a0, _a1)
    27  	} else {
    28  		if ret.Get(0) != nil {
    29  			r0 = ret.Get(0).(*v1alpha1.Cluster)
    30  		}
    31  	}
    32  
    33  	var r1 error
    34  	if rf, ok := ret.Get(1).(func(context.Context, *cluster.ClusterCreateRequest) error); ok {
    35  		r1 = rf(_a0, _a1)
    36  	} else {
    37  		r1 = ret.Error(1)
    38  	}
    39  
    40  	return r0, r1
    41  }
    42  
    43  // Delete provides a mock function with given fields: _a0, _a1
    44  func (_m *ClusterServiceServer) Delete(_a0 context.Context, _a1 *cluster.ClusterQuery) (*cluster.ClusterResponse, error) {
    45  	ret := _m.Called(_a0, _a1)
    46  
    47  	var r0 *cluster.ClusterResponse
    48  	if rf, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) *cluster.ClusterResponse); ok {
    49  		r0 = rf(_a0, _a1)
    50  	} else {
    51  		if ret.Get(0) != nil {
    52  			r0 = ret.Get(0).(*cluster.ClusterResponse)
    53  		}
    54  	}
    55  
    56  	var r1 error
    57  	if rf, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery) error); ok {
    58  		r1 = rf(_a0, _a1)
    59  	} else {
    60  		r1 = ret.Error(1)
    61  	}
    62  
    63  	return r0, r1
    64  }
    65  
    66  // Get provides a mock function with given fields: _a0, _a1
    67  func (_m *ClusterServiceServer) Get(_a0 context.Context, _a1 *cluster.ClusterQuery) (*v1alpha1.Cluster, error) {
    68  	ret := _m.Called(_a0, _a1)
    69  
    70  	var r0 *v1alpha1.Cluster
    71  	if rf, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) *v1alpha1.Cluster); ok {
    72  		r0 = rf(_a0, _a1)
    73  	} else {
    74  		if ret.Get(0) != nil {
    75  			r0 = ret.Get(0).(*v1alpha1.Cluster)
    76  		}
    77  	}
    78  
    79  	var r1 error
    80  	if rf, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery) error); ok {
    81  		r1 = rf(_a0, _a1)
    82  	} else {
    83  		r1 = ret.Error(1)
    84  	}
    85  
    86  	return r0, r1
    87  }
    88  
    89  // List provides a mock function with given fields: _a0, _a1
    90  func (_m *ClusterServiceServer) List(_a0 context.Context, _a1 *cluster.ClusterQuery) (*v1alpha1.ClusterList, error) {
    91  	ret := _m.Called(_a0, _a1)
    92  
    93  	var r0 *v1alpha1.ClusterList
    94  	if rf, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) *v1alpha1.ClusterList); ok {
    95  		r0 = rf(_a0, _a1)
    96  	} else {
    97  		if ret.Get(0) != nil {
    98  			r0 = ret.Get(0).(*v1alpha1.ClusterList)
    99  		}
   100  	}
   101  
   102  	var r1 error
   103  	if rf, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery) error); ok {
   104  		r1 = rf(_a0, _a1)
   105  	} else {
   106  		r1 = ret.Error(1)
   107  	}
   108  
   109  	return r0, r1
   110  }
   111  
   112  // Update provides a mock function with given fields: _a0, _a1
   113  func (_m *ClusterServiceServer) Update(_a0 context.Context, _a1 *cluster.ClusterUpdateRequest) (*v1alpha1.Cluster, error) {
   114  	ret := _m.Called(_a0, _a1)
   115  
   116  	var r0 *v1alpha1.Cluster
   117  	if rf, ok := ret.Get(0).(func(context.Context, *cluster.ClusterUpdateRequest) *v1alpha1.Cluster); ok {
   118  		r0 = rf(_a0, _a1)
   119  	} else {
   120  		if ret.Get(0) != nil {
   121  			r0 = ret.Get(0).(*v1alpha1.Cluster)
   122  		}
   123  	}
   124  
   125  	var r1 error
   126  	if rf, ok := ret.Get(1).(func(context.Context, *cluster.ClusterUpdateRequest) error); ok {
   127  		r1 = rf(_a0, _a1)
   128  	} else {
   129  		r1 = ret.Error(1)
   130  	}
   131  
   132  	return r0, r1
   133  }