// Code generated by MockGen. DO NOT EDIT. // Source: edge-infra.dev/pkg/edge/api/services (interfaces: RegistrationService) // Package mocks is a generated GoMock package. package mocks import ( context "context" reflect "reflect" model "edge-infra.dev/pkg/edge/api/graph/model" gomock "github.com/golang/mock/gomock" ) // MockRegistrationService is a mock of RegistrationService interface. type MockRegistrationService struct { ctrl *gomock.Controller recorder *MockRegistrationServiceMockRecorder } // MockRegistrationServiceMockRecorder is the mock recorder for MockRegistrationService. type MockRegistrationServiceMockRecorder struct { mock *MockRegistrationService } // NewMockRegistrationService creates a new mock instance. func NewMockRegistrationService(ctrl *gomock.Controller) *MockRegistrationService { mock := &MockRegistrationService{ctrl: ctrl} mock.recorder = &MockRegistrationServiceMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockRegistrationService) EXPECT() *MockRegistrationServiceMockRecorder { return m.recorder } // ClusterCaHash mocks base method. func (m *MockRegistrationService) ClusterCaHash(arg0 context.Context, arg1 string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ClusterCaHash", arg0, arg1) ret0, _ := ret[0].(string) ret1, _ := ret[1].(error) return ret0, ret1 } // ClusterCaHash indicates an expected call of ClusterCaHash. func (mr *MockRegistrationServiceMockRecorder) ClusterCaHash(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterCaHash", reflect.TypeOf((*MockRegistrationService)(nil).ClusterCaHash), arg0, arg1) } // CreateAClusterCR mocks base method. func (m *MockRegistrationService) CreateAClusterCR(arg0 context.Context, arg1, arg2, arg3, arg4, arg5, arg6 string, arg7 *model.Banner, arg8 *model.ClusterInfo) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateAClusterCR", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) ret0, _ := ret[0].(string) ret1, _ := ret[1].(error) return ret0, ret1 } // CreateAClusterCR indicates an expected call of CreateAClusterCR. func (mr *MockRegistrationServiceMockRecorder) CreateAClusterCR(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAClusterCR", reflect.TypeOf((*MockRegistrationService)(nil).CreateAClusterCR), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) } // CreateClusterSQLEntry mocks base method. func (m *MockRegistrationService) CreateClusterSQLEntry(arg0 context.Context, arg1 *model.RegistrationPayload, arg2, arg3, arg4, arg5 string, arg6 bool, arg7 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateClusterSQLEntry", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) ret0, _ := ret[0].(error) return ret0 } // CreateClusterSQLEntry indicates an expected call of CreateClusterSQLEntry. func (mr *MockRegistrationServiceMockRecorder) CreateClusterSQLEntry(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClusterSQLEntry", reflect.TypeOf((*MockRegistrationService)(nil).CreateClusterSQLEntry), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) } // IsClusterSQLEntryExist mocks base method. func (m *MockRegistrationService) IsClusterSQLEntryExist(arg0 context.Context, arg1, arg2 string) (bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IsClusterSQLEntryExist", arg0, arg1, arg2) ret0, _ := ret[0].(bool) ret1, _ := ret[1].(error) return ret0, ret1 } // IsClusterSQLEntryExist indicates an expected call of IsClusterSQLEntryExist. func (mr *MockRegistrationServiceMockRecorder) IsClusterSQLEntryExist(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsClusterSQLEntryExist", reflect.TypeOf((*MockRegistrationService)(nil).IsClusterSQLEntryExist), arg0, arg1, arg2) } // Reset mocks base method. func (m *MockRegistrationService) Reset(arg0 context.Context, arg1 string, arg2 bool) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Reset", arg0, arg1, arg2) ret0, _ := ret[0].(error) return ret0 } // Reset indicates an expected call of Reset. func (mr *MockRegistrationServiceMockRecorder) Reset(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockRegistrationService)(nil).Reset), arg0, arg1, arg2) } // UpdateClusterSQLEntry mocks base method. func (m *MockRegistrationService) UpdateClusterSQLEntry(arg0 context.Context, arg1 bool, arg2 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateClusterSQLEntry", arg0, arg1, arg2) ret0, _ := ret[0].(error) return ret0 } // UpdateClusterSQLEntry indicates an expected call of UpdateClusterSQLEntry. func (mr *MockRegistrationServiceMockRecorder) UpdateClusterSQLEntry(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterSQLEntry", reflect.TypeOf((*MockRegistrationService)(nil).UpdateClusterSQLEntry), arg0, arg1, arg2) } // UploadClusterCaHash mocks base method. func (m *MockRegistrationService) UploadClusterCaHash(arg0 context.Context, arg1, arg2 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UploadClusterCaHash", arg0, arg1, arg2) ret0, _ := ret[0].(error) return ret0 } // UploadClusterCaHash indicates an expected call of UploadClusterCaHash. func (mr *MockRegistrationServiceMockRecorder) UploadClusterCaHash(arg0, arg1, arg2 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadClusterCaHash", reflect.TypeOf((*MockRegistrationService)(nil).UploadClusterCaHash), arg0, arg1, arg2) }