123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- // Code generated by MockGen. DO NOT EDIT.
- // Source: github.com/kakao/bluegreen/controllers/bluegreen (interfaces: Client)
- // Package bluegreen is a generated GoMock package.
- package bluegreen
- import (
- context "context"
- reflect "reflect"
- gomock "github.com/golang/mock/gomock"
- v1 "github.com/kakao/bluegreen/api/v1"
- v10 "k8s.io/api/core/v1"
- types "k8s.io/apimachinery/pkg/types"
- client "sigs.k8s.io/controller-runtime/pkg/client"
- reconcile "sigs.k8s.io/controller-runtime/pkg/reconcile"
- )
- // MockClient is a mock of Client interface.
- type MockClient struct {
- ctrl *gomock.Controller
- recorder *MockClientMockRecorder
- }
- // MockClientMockRecorder is the mock recorder for MockClient.
- type MockClientMockRecorder struct {
- mock *MockClient
- }
- // NewMockClient creates a new mock instance.
- func NewMockClient(ctrl *gomock.Controller) *MockClient {
- mock := &MockClient{ctrl: ctrl}
- mock.recorder = &MockClientMockRecorder{mock}
- return mock
- }
- // EXPECT returns an object that allows the caller to indicate expected use.
- func (m *MockClient) EXPECT() *MockClientMockRecorder {
- return m.recorder
- }
- // CreateOrUpdateDeployment mocks base method.
- func (m *MockClient) CreateOrUpdateDeployment(arg0 context.Context, arg1 *v1.BlueGreen, arg2 v1.BlueOrGreen, arg3 v10.PodSpec) error {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CreateOrUpdateDeployment", arg0, arg1, arg2, arg3)
- ret0, _ := ret[0].(error)
- return ret0
- }
- // CreateOrUpdateDeployment indicates an expected call of CreateOrUpdateDeployment.
- func (mr *MockClientMockRecorder) CreateOrUpdateDeployment(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateDeployment", reflect.TypeOf((*MockClient)(nil).CreateOrUpdateDeployment), arg0, arg1, arg2, arg3)
- }
- // CreateOrUpdateService mocks base method.
- func (m *MockClient) CreateOrUpdateService(arg0 context.Context, arg1 *v1.BlueGreen) error {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CreateOrUpdateService", arg0, arg1)
- ret0, _ := ret[0].(error)
- return ret0
- }
- // CreateOrUpdateService indicates an expected call of CreateOrUpdateService.
- func (mr *MockClientMockRecorder) CreateOrUpdateService(arg0, arg1 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateService", reflect.TypeOf((*MockClient)(nil).CreateOrUpdateService), arg0, arg1)
- }
- // Get mocks base method.
- func (m *MockClient) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 client.Object) error {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
- ret0, _ := ret[0].(error)
- return ret0
- }
- // Get indicates an expected call of Get.
- func (mr *MockClientMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), arg0, arg1, arg2)
- }
- // List mocks base method.
- func (m *MockClient) List(arg0 context.Context, arg1 client.ObjectList, arg2 ...client.ListOption) error {
- m.ctrl.T.Helper()
- varargs := []interface{}{arg0, arg1}
- for _, a := range arg2 {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "List", varargs...)
- ret0, _ := ret[0].(error)
- return ret0
- }
- // List indicates an expected call of List.
- func (mr *MockClientMockRecorder) List(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{arg0, arg1}, arg2...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClient)(nil).List), varargs...)
- }
- // UpdateStatus mocks base method.
- func (m *MockClient) UpdateStatus(arg0 context.Context, arg1 reconcile.Request, arg2 v1.BlueGreenStatus) error {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2)
- ret0, _ := ret[0].(error)
- return ret0
- }
- // UpdateStatus indicates an expected call of UpdateStatus.
- func (mr *MockClientMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockClient)(nil).UpdateStatus), arg0, arg1, arg2)
- }
|