github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/pkg/configuration/proto/mocks/reconfigure_client_mocks.go (about)

     1  // /*
     2  // Copyright (C) 2022-2023 ApeCloud Co., Ltd
     3  //
     4  // This file is part of KubeBlocks project
     5  //
     6  // This program is free software: you can redistribute it and/or modify
     7  // it under the terms of the GNU Affero General Public License as published by
     8  // the Free Software Foundation, either version 3 of the License, or
     9  // (at your option) any later version.
    10  //
    11  // This program is distributed in the hope that it will be useful
    12  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    13  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14  // GNU Affero General Public License for more details.
    15  //
    16  // You should have received a copy of the GNU Affero General Public License
    17  // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    18  // */
    19  //
    20  //
    21  
    22  // Code generated by MockGen. DO NOT EDIT.
    23  // Source: github.com/1aal/kubeblocks/pkg/configuration/proto (interfaces: ReconfigureClient)
    24  
    25  // Package mocks is a generated GoMock package.
    26  package mocks
    27  
    28  import (
    29  	context "context"
    30  	reflect "reflect"
    31  
    32  	proto "github.com/1aal/kubeblocks/pkg/configuration/proto"
    33  	gomock "github.com/golang/mock/gomock"
    34  	grpc "google.golang.org/grpc"
    35  )
    36  
    37  // MockReconfigureClient is a mock of ReconfigureClient interface.
    38  type MockReconfigureClient struct {
    39  	ctrl     *gomock.Controller
    40  	recorder *MockReconfigureClientMockRecorder
    41  }
    42  
    43  // MockReconfigureClientMockRecorder is the mock recorder for MockReconfigureClient.
    44  type MockReconfigureClientMockRecorder struct {
    45  	mock *MockReconfigureClient
    46  }
    47  
    48  // NewMockReconfigureClient creates a new mock instance.
    49  func NewMockReconfigureClient(ctrl *gomock.Controller) *MockReconfigureClient {
    50  	mock := &MockReconfigureClient{ctrl: ctrl}
    51  	mock.recorder = &MockReconfigureClientMockRecorder{mock}
    52  	return mock
    53  }
    54  
    55  // EXPECT returns an object that allows the caller to indicate expected use.
    56  func (m *MockReconfigureClient) EXPECT() *MockReconfigureClientMockRecorder {
    57  	return m.recorder
    58  }
    59  
    60  // OnlineUpgradeParams mocks base method.
    61  func (m *MockReconfigureClient) OnlineUpgradeParams(arg0 context.Context, arg1 *proto.OnlineUpgradeParamsRequest, arg2 ...grpc.CallOption) (*proto.OnlineUpgradeParamsResponse, error) {
    62  	m.ctrl.T.Helper()
    63  	varargs := []interface{}{arg0, arg1}
    64  	for _, a := range arg2 {
    65  		varargs = append(varargs, a)
    66  	}
    67  	ret := m.ctrl.Call(m, "OnlineUpgradeParams", varargs...)
    68  	ret0, _ := ret[0].(*proto.OnlineUpgradeParamsResponse)
    69  	ret1, _ := ret[1].(error)
    70  	return ret0, ret1
    71  }
    72  
    73  // OnlineUpgradeParams indicates an expected call of OnlineUpgradeParams.
    74  func (mr *MockReconfigureClientMockRecorder) OnlineUpgradeParams(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
    75  	mr.mock.ctrl.T.Helper()
    76  	varargs := append([]interface{}{arg0, arg1}, arg2...)
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlineUpgradeParams", reflect.TypeOf((*MockReconfigureClient)(nil).OnlineUpgradeParams), varargs...)
    78  }
    79  
    80  // StopContainer mocks base method.
    81  func (m *MockReconfigureClient) StopContainer(arg0 context.Context, arg1 *proto.StopContainerRequest, arg2 ...grpc.CallOption) (*proto.StopContainerResponse, error) {
    82  	m.ctrl.T.Helper()
    83  	varargs := []interface{}{arg0, arg1}
    84  	for _, a := range arg2 {
    85  		varargs = append(varargs, a)
    86  	}
    87  	ret := m.ctrl.Call(m, "StopContainer", varargs...)
    88  	ret0, _ := ret[0].(*proto.StopContainerResponse)
    89  	ret1, _ := ret[1].(error)
    90  	return ret0, ret1
    91  }
    92  
    93  // StopContainer indicates an expected call of StopContainer.
    94  func (mr *MockReconfigureClientMockRecorder) StopContainer(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
    95  	mr.mock.ctrl.T.Helper()
    96  	varargs := append([]interface{}{arg0, arg1}, arg2...)
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopContainer", reflect.TypeOf((*MockReconfigureClient)(nil).StopContainer), varargs...)
    98  }