2019-08-25 22:19:27 +08:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2019-10-13 19:56:13 +08:00
|
|
|
// Source: db/dao/dao.go
|
2018-11-19 14:09:14 +08:00
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// Package dao is a generated GoMock package.
|
2018-11-19 14:09:14 +08:00
|
|
|
package dao
|
|
|
|
|
|
|
|
import (
|
2019-09-18 17:56:52 +08:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
model "github.com/goodrain/rainbond/db/model"
|
2019-10-13 19:56:13 +08:00
|
|
|
reflect "reflect"
|
|
|
|
time "time"
|
2018-11-19 14:09:14 +08:00
|
|
|
)
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockDao is a mock of Dao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockDaoMockRecorder is the mock recorder for MockDao
|
|
|
|
type MockDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockDao(ctrl *gomock.Controller) *MockDao {
|
|
|
|
mock := &MockDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockDao) EXPECT() *MockDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockDelDao is a mock of DelDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockDelDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockDelDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockDelDaoMockRecorder is the mock recorder for MockDelDao
|
|
|
|
type MockDelDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockDelDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockDelDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockDelDao(ctrl *gomock.Controller) *MockDelDao {
|
|
|
|
mock := &MockDelDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockDelDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockDelDao) EXPECT() *MockDelDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel mocks base method
|
|
|
|
func (m *MockDelDao) DeleteModel(serviceID string, arg ...interface{}) error {
|
|
|
|
varargs := []interface{}{serviceID}
|
|
|
|
for _, a := range arg {
|
|
|
|
varargs = append(varargs, a)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
2019-08-25 22:19:27 +08:00
|
|
|
ret := m.ctrl.Call(m, "DeleteModel", varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel indicates an expected call of DeleteModel
|
|
|
|
func (mr *MockDelDaoMockRecorder) DeleteModel(serviceID interface{}, arg ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{serviceID}, arg...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModel", reflect.TypeOf((*MockDelDao)(nil).DeleteModel), varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2020-02-25 17:25:26 +08:00
|
|
|
// MockEnterpriseDao is a mock of EnterpriseDao interface
|
|
|
|
type MockEnterpriseDao struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockEnterpriseDaoMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockEnterpriseDaoMockRecorder is the mock recorder for MockEnterpriseDao
|
|
|
|
type MockEnterpriseDaoMockRecorder struct {
|
|
|
|
mock *MockEnterpriseDao
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockEnterpriseDao creates a new mock instance
|
|
|
|
func NewMockEnterpriseDao(ctrl *gomock.Controller) *MockEnterpriseDao {
|
|
|
|
mock := &MockEnterpriseDao{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockEnterpriseDaoMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockEnterpriseDao) EXPECT() *MockEnterpriseDaoMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetEnterpriseTenants mocks base method
|
|
|
|
func (m *MockEnterpriseDao) GetEnterpriseTenants(enterpriseID string) ([]*model.Tenants, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetEnterpriseTenants", enterpriseID)
|
|
|
|
ret0, _ := ret[0].([]*model.Tenants)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetEnterpriseTenants indicates an expected call of GetEnterpriseTenants
|
|
|
|
func (mr *MockEnterpriseDaoMockRecorder) GetEnterpriseTenants(enterpriseID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnterpriseTenants", reflect.TypeOf((*MockEnterpriseDao)(nil).GetEnterpriseTenants), enterpriseID)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantDao is a mock of TenantDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantDaoMockRecorder is the mock recorder for MockTenantDao
|
|
|
|
type MockTenantDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantDao(ctrl *gomock.Controller) *MockTenantDao {
|
|
|
|
mock := &MockTenantDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantDao) EXPECT() *MockTenantDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantByUUID mocks base method
|
|
|
|
func (m *MockTenantDao) GetTenantByUUID(uuid string) (*model.Tenants, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantByUUID", uuid)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.Tenants)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantByUUID indicates an expected call of GetTenantByUUID
|
|
|
|
func (mr *MockTenantDaoMockRecorder) GetTenantByUUID(uuid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantByUUID", reflect.TypeOf((*MockTenantDao)(nil).GetTenantByUUID), uuid)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantIDByName mocks base method
|
|
|
|
func (m *MockTenantDao) GetTenantIDByName(tenantName string) (*model.Tenants, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantIDByName", tenantName)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.Tenants)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantIDByName indicates an expected call of GetTenantIDByName
|
|
|
|
func (mr *MockTenantDaoMockRecorder) GetTenantIDByName(tenantName interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantIDByName", reflect.TypeOf((*MockTenantDao)(nil).GetTenantIDByName), tenantName)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetALLTenants mocks base method
|
|
|
|
func (m *MockTenantDao) GetALLTenants(query string) ([]*model.Tenants, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetALLTenants", query)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.Tenants)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetALLTenants indicates an expected call of GetALLTenants
|
|
|
|
func (mr *MockTenantDaoMockRecorder) GetALLTenants(query interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetALLTenants", reflect.TypeOf((*MockTenantDao)(nil).GetALLTenants), query)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantByEid mocks base method
|
|
|
|
func (m *MockTenantDao) GetTenantByEid(eid, query string) ([]*model.Tenants, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantByEid", eid, query)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.Tenants)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantByEid indicates an expected call of GetTenantByEid
|
|
|
|
func (mr *MockTenantDaoMockRecorder) GetTenantByEid(eid, query interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantByEid", reflect.TypeOf((*MockTenantDao)(nil).GetTenantByEid), eid, query)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPagedTenants mocks base method
|
|
|
|
func (m *MockTenantDao) GetPagedTenants(offset, len int) ([]*model.Tenants, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPagedTenants", offset, len)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.Tenants)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPagedTenants indicates an expected call of GetPagedTenants
|
|
|
|
func (mr *MockTenantDaoMockRecorder) GetPagedTenants(offset, len interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPagedTenants", reflect.TypeOf((*MockTenantDao)(nil).GetPagedTenants), offset, len)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantIDsByNames mocks base method
|
|
|
|
func (m *MockTenantDao) GetTenantIDsByNames(names []string) ([]string, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantIDsByNames", names)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]string)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantIDsByNames indicates an expected call of GetTenantIDsByNames
|
|
|
|
func (mr *MockTenantDaoMockRecorder) GetTenantIDsByNames(names interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantIDsByNames", reflect.TypeOf((*MockTenantDao)(nil).GetTenantIDsByNames), names)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantLimitsByNames mocks base method
|
|
|
|
func (m *MockTenantDao) GetTenantLimitsByNames(names []string) (map[string]int, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantLimitsByNames", names)
|
2018-11-21 18:35:04 +08:00
|
|
|
ret0, _ := ret[0].(map[string]int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantLimitsByNames indicates an expected call of GetTenantLimitsByNames
|
|
|
|
func (mr *MockTenantDaoMockRecorder) GetTenantLimitsByNames(names interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantLimitsByNames", reflect.TypeOf((*MockTenantDao)(nil).GetTenantLimitsByNames), names)
|
2018-11-21 18:35:04 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantByUUIDIsExist mocks base method
|
|
|
|
func (m *MockTenantDao) GetTenantByUUIDIsExist(uuid string) bool {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantByUUIDIsExist", uuid)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantByUUIDIsExist indicates an expected call of GetTenantByUUIDIsExist
|
|
|
|
func (mr *MockTenantDaoMockRecorder) GetTenantByUUIDIsExist(uuid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantByUUIDIsExist", reflect.TypeOf((*MockTenantDao)(nil).GetTenantByUUIDIsExist), uuid)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-11-21 17:07:58 +08:00
|
|
|
// DelByTenantID mocks base method
|
|
|
|
func (m *MockTenantDao) DelByTenantID(tenantID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelByTenantID", tenantID)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// DelByTenantID indicates an expected call of DelByTenantID
|
|
|
|
func (mr *MockTenantDaoMockRecorder) DelByTenantID(tenantID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelByTenantID", reflect.TypeOf((*MockTenantDao)(nil).DelByTenantID), tenantID)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockAppDao is a mock of AppDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockAppDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockAppDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockAppDaoMockRecorder is the mock recorder for MockAppDao
|
|
|
|
type MockAppDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockAppDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockAppDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockAppDao(ctrl *gomock.Controller) *MockAppDao {
|
|
|
|
mock := &MockAppDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockAppDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockAppDao) EXPECT() *MockAppDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockAppDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockAppDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockAppDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockAppDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockAppDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockAppDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetByEventId mocks base method
|
|
|
|
func (m *MockAppDao) GetByEventId(eventID string) (*model.AppStatus, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetByEventId", eventID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.AppStatus)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetByEventId indicates an expected call of GetByEventId
|
|
|
|
func (mr *MockAppDaoMockRecorder) GetByEventId(eventID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByEventId", reflect.TypeOf((*MockAppDao)(nil).GetByEventId), eventID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModelByEventId mocks base method
|
|
|
|
func (m *MockAppDao) DeleteModelByEventId(eventID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteModelByEventId", eventID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModelByEventId indicates an expected call of DeleteModelByEventId
|
|
|
|
func (mr *MockAppDaoMockRecorder) DeleteModelByEventId(eventID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelByEventId", reflect.TypeOf((*MockAppDao)(nil).DeleteModelByEventId), eventID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-12-12 17:40:40 +08:00
|
|
|
// MockVolumeTypeDao is a mock of VolumeTypeDao interface
|
|
|
|
type MockVolumeTypeDao struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockVolumeTypeDaoMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockVolumeTypeDaoMockRecorder is the mock recorder for MockVolumeTypeDao
|
|
|
|
type MockVolumeTypeDaoMockRecorder struct {
|
|
|
|
mock *MockVolumeTypeDao
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockVolumeTypeDao creates a new mock instance
|
|
|
|
func NewMockVolumeTypeDao(ctrl *gomock.Controller) *MockVolumeTypeDao {
|
|
|
|
mock := &MockVolumeTypeDao{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockVolumeTypeDaoMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockVolumeTypeDao) EXPECT() *MockVolumeTypeDaoMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockVolumeTypeDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockVolumeTypeDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockVolumeTypeDao)(nil).AddModel), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockVolumeTypeDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockVolumeTypeDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockVolumeTypeDao)(nil).UpdateModel), arg0)
|
|
|
|
}
|
|
|
|
|
2019-12-18 15:37:18 +08:00
|
|
|
// DeleteModelByVolumeTypes mocks base method
|
|
|
|
func (m *MockVolumeTypeDao) DeleteModelByVolumeTypes(volumeType string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteModelByVolumeTypes", volumeType)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteModelByVolumeTypes indicates an expected call of DeleteModelByVolumeTypes
|
|
|
|
func (mr *MockVolumeTypeDaoMockRecorder) DeleteModelByVolumeTypes(volumeType interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelByVolumeTypes", reflect.TypeOf((*MockVolumeTypeDao)(nil).DeleteModelByVolumeTypes), volumeType)
|
|
|
|
}
|
|
|
|
|
2019-12-12 17:40:40 +08:00
|
|
|
// GetAllVolumeTypes mocks base method
|
|
|
|
func (m *MockVolumeTypeDao) GetAllVolumeTypes() ([]*model.TenantServiceVolumeType, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetAllVolumeTypes")
|
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceVolumeType)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetAllVolumeTypes indicates an expected call of GetAllVolumeTypes
|
|
|
|
func (mr *MockVolumeTypeDaoMockRecorder) GetAllVolumeTypes() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllVolumeTypes", reflect.TypeOf((*MockVolumeTypeDao)(nil).GetAllVolumeTypes))
|
|
|
|
}
|
|
|
|
|
2020-02-25 17:25:26 +08:00
|
|
|
// GetAllVolumeTypesByPage mocks base method
|
|
|
|
func (m *MockVolumeTypeDao) GetAllVolumeTypesByPage(page, pageSize int) ([]*model.TenantServiceVolumeType, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetAllVolumeTypesByPage", page, pageSize)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceVolumeType)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetAllVolumeTypesByPage indicates an expected call of GetAllVolumeTypesByPage
|
|
|
|
func (mr *MockVolumeTypeDaoMockRecorder) GetAllVolumeTypesByPage(page, pageSize interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllVolumeTypesByPage", reflect.TypeOf((*MockVolumeTypeDao)(nil).GetAllVolumeTypesByPage), page, pageSize)
|
|
|
|
}
|
|
|
|
|
2019-12-12 17:40:40 +08:00
|
|
|
// GetVolumeTypeByType mocks base method
|
|
|
|
func (m *MockVolumeTypeDao) GetVolumeTypeByType(vt string) (*model.TenantServiceVolumeType, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetVolumeTypeByType", vt)
|
|
|
|
ret0, _ := ret[0].(*model.TenantServiceVolumeType)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetVolumeTypeByType indicates an expected call of GetVolumeTypeByType
|
|
|
|
func (mr *MockVolumeTypeDaoMockRecorder) GetVolumeTypeByType(vt interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVolumeTypeByType", reflect.TypeOf((*MockVolumeTypeDao)(nil).GetVolumeTypeByType), vt)
|
|
|
|
}
|
|
|
|
|
2020-02-25 17:25:26 +08:00
|
|
|
// CreateOrUpdateVolumeType mocks base method
|
|
|
|
func (m *MockVolumeTypeDao) CreateOrUpdateVolumeType(vt *model.TenantServiceVolumeType) (*model.TenantServiceVolumeType, error) {
|
|
|
|
ret := m.ctrl.Call(m, "CreateOrUpdateVolumeType", vt)
|
2019-12-18 15:37:18 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceVolumeType)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2020-02-25 17:25:26 +08:00
|
|
|
// CreateOrUpdateVolumeType indicates an expected call of CreateOrUpdateVolumeType
|
|
|
|
func (mr *MockVolumeTypeDaoMockRecorder) CreateOrUpdateVolumeType(vt interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateVolumeType", reflect.TypeOf((*MockVolumeTypeDao)(nil).CreateOrUpdateVolumeType), vt)
|
2019-12-18 15:37:18 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockLicenseDao is a mock of LicenseDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockLicenseDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockLicenseDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockLicenseDaoMockRecorder is the mock recorder for MockLicenseDao
|
|
|
|
type MockLicenseDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockLicenseDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockLicenseDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockLicenseDao(ctrl *gomock.Controller) *MockLicenseDao {
|
|
|
|
mock := &MockLicenseDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockLicenseDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockLicenseDao) EXPECT() *MockLicenseDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockLicenseDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockLicenseDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockLicenseDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockLicenseDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockLicenseDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockLicenseDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListLicenses mocks base method
|
|
|
|
func (m *MockLicenseDao) ListLicenses() ([]*model.LicenseInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListLicenses")
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.LicenseInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListLicenses indicates an expected call of ListLicenses
|
|
|
|
func (mr *MockLicenseDaoMockRecorder) ListLicenses() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLicenses", reflect.TypeOf((*MockLicenseDao)(nil).ListLicenses))
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceDao is a mock of TenantServiceDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServiceDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServiceDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceDaoMockRecorder is the mock recorder for MockTenantServiceDao
|
|
|
|
type MockTenantServiceDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServiceDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServiceDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServiceDao(ctrl *gomock.Controller) *MockTenantServiceDao {
|
|
|
|
mock := &MockTenantServiceDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServiceDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServiceDao) EXPECT() *MockTenantServiceDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServiceDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServiceDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServiceDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServiceDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceByID mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServiceByID(serviceID string) (*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceByID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceByID indicates an expected call of GetServiceByID
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServiceByID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceByID", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServiceByID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceByServiceAlias mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServiceByServiceAlias(serviceAlias string) (*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceByServiceAlias", serviceAlias)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceByServiceAlias indicates an expected call of GetServiceByServiceAlias
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServiceByServiceAlias(serviceAlias interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceByServiceAlias", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServiceByServiceAlias), serviceAlias)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceByIDs mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServiceByIDs(serviceIDs []string) ([]*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceByIDs", serviceIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceByIDs indicates an expected call of GetServiceByIDs
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServiceByIDs(serviceIDs interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceByIDs", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServiceByIDs), serviceIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceAliasByIDs mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServiceAliasByIDs(uids []string) ([]*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceAliasByIDs", uids)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceAliasByIDs indicates an expected call of GetServiceAliasByIDs
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServiceAliasByIDs(uids interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceAliasByIDs", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServiceAliasByIDs), uids)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceByTenantIDAndServiceAlias mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServiceByTenantIDAndServiceAlias(tenantID, serviceName string) (*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceByTenantIDAndServiceAlias", tenantID, serviceName)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceByTenantIDAndServiceAlias indicates an expected call of GetServiceByTenantIDAndServiceAlias
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServiceByTenantIDAndServiceAlias(tenantID, serviceName interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceByTenantIDAndServiceAlias", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServiceByTenantIDAndServiceAlias), tenantID, serviceName)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// SetTenantServiceStatus mocks base method
|
|
|
|
func (m *MockTenantServiceDao) SetTenantServiceStatus(serviceID, status string) error {
|
|
|
|
ret := m.ctrl.Call(m, "SetTenantServiceStatus", serviceID, status)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// SetTenantServiceStatus indicates an expected call of SetTenantServiceStatus
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) SetTenantServiceStatus(serviceID, status interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTenantServiceStatus", reflect.TypeOf((*MockTenantServiceDao)(nil).SetTenantServiceStatus), serviceID, status)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServicesByTenantID mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServicesByTenantID(tenantID string) ([]*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServicesByTenantID", tenantID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServicesByTenantID indicates an expected call of GetServicesByTenantID
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServicesByTenantID(tenantID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServicesByTenantID", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServicesByTenantID), tenantID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServicesByTenantIDs mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServicesByTenantIDs(tenantIDs []string) ([]*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServicesByTenantIDs", tenantIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServicesByTenantIDs indicates an expected call of GetServicesByTenantIDs
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServicesByTenantIDs(tenantIDs interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServicesByTenantIDs", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServicesByTenantIDs), tenantIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServicesAllInfoByTenantID mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServicesAllInfoByTenantID(tenantID string) ([]*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServicesAllInfoByTenantID", tenantID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServicesAllInfoByTenantID indicates an expected call of GetServicesAllInfoByTenantID
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServicesAllInfoByTenantID(tenantID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServicesAllInfoByTenantID", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServicesAllInfoByTenantID), tenantID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteServiceByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceDao) DeleteServiceByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteServiceByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteServiceByServiceID indicates an expected call of DeleteServiceByServiceID
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) DeleteServiceByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceByServiceID", reflect.TypeOf((*MockTenantServiceDao)(nil).DeleteServiceByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceMemoryByTenantIDs mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServiceMemoryByTenantIDs(tenantIDs, serviceIDs []string) (map[string]map[string]interface{}, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceMemoryByTenantIDs", tenantIDs, serviceIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(map[string]map[string]interface{})
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceMemoryByTenantIDs indicates an expected call of GetServiceMemoryByTenantIDs
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServiceMemoryByTenantIDs(tenantIDs, serviceIDs interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceMemoryByTenantIDs", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServiceMemoryByTenantIDs), tenantIDs, serviceIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceMemoryByServiceIDs mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServiceMemoryByServiceIDs(serviceIDs []string) (map[string]map[string]interface{}, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceMemoryByServiceIDs", serviceIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(map[string]map[string]interface{})
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceMemoryByServiceIDs indicates an expected call of GetServiceMemoryByServiceIDs
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServiceMemoryByServiceIDs(serviceIDs interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceMemoryByServiceIDs", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServiceMemoryByServiceIDs), serviceIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPagedTenantService mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetPagedTenantService(offset, len int, serviceIDs []string) ([]map[string]interface{}, int, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPagedTenantService", offset, len, serviceIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]map[string]interface{})
|
|
|
|
ret1, _ := ret[1].(int)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPagedTenantService indicates an expected call of GetPagedTenantService
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetPagedTenantService(offset, len, serviceIDs interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPagedTenantService", reflect.TypeOf((*MockTenantServiceDao)(nil).GetPagedTenantService), offset, len, serviceIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAllServicesID mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetAllServicesID() ([]*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetAllServicesID")
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAllServicesID indicates an expected call of GetAllServicesID
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetAllServicesID() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllServicesID", reflect.TypeOf((*MockTenantServiceDao)(nil).GetAllServicesID))
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateDeployVersion mocks base method
|
|
|
|
func (m *MockTenantServiceDao) UpdateDeployVersion(serviceID, deployversion string) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateDeployVersion", serviceID, deployversion)
|
2018-12-18 16:58:13 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateDeployVersion indicates an expected call of UpdateDeployVersion
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) UpdateDeployVersion(serviceID, deployversion interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeployVersion", reflect.TypeOf((*MockTenantServiceDao)(nil).UpdateDeployVersion), serviceID, deployversion)
|
2018-12-18 16:58:13 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListThirdPartyServices mocks base method
|
|
|
|
func (m *MockTenantServiceDao) ListThirdPartyServices() ([]*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListThirdPartyServices")
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListThirdPartyServices indicates an expected call of ListThirdPartyServices
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) ListThirdPartyServices() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThirdPartyServices", reflect.TypeOf((*MockTenantServiceDao)(nil).ListThirdPartyServices))
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-11-21 17:07:58 +08:00
|
|
|
// ListServicesByTenantID mocks base method
|
|
|
|
func (m *MockTenantServiceDao) ListServicesByTenantID(tenantID string) ([]*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListServicesByTenantID", tenantID)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListServicesByTenantID indicates an expected call of ListServicesByTenantID
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) ListServicesByTenantID(tenantID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesByTenantID", reflect.TypeOf((*MockTenantServiceDao)(nil).ListServicesByTenantID), tenantID)
|
|
|
|
}
|
|
|
|
|
2020-02-25 17:25:26 +08:00
|
|
|
// GetServiceTypeById mocks base method
|
|
|
|
func (m *MockTenantServiceDao) GetServiceTypeById(serviceID string) (*model.TenantServices, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceTypeById", serviceID)
|
|
|
|
ret0, _ := ret[0].(*model.TenantServices)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetServiceTypeById indicates an expected call of GetServiceTypeById
|
|
|
|
func (mr *MockTenantServiceDaoMockRecorder) GetServiceTypeById(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceTypeById", reflect.TypeOf((*MockTenantServiceDao)(nil).GetServiceTypeById), serviceID)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceDeleteDao is a mock of TenantServiceDeleteDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServiceDeleteDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServiceDeleteDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceDeleteDaoMockRecorder is the mock recorder for MockTenantServiceDeleteDao
|
|
|
|
type MockTenantServiceDeleteDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServiceDeleteDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServiceDeleteDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServiceDeleteDao(ctrl *gomock.Controller) *MockTenantServiceDeleteDao {
|
|
|
|
mock := &MockTenantServiceDeleteDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServiceDeleteDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServiceDeleteDao) EXPECT() *MockTenantServiceDeleteDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServiceDeleteDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServiceDeleteDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServiceDeleteDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServiceDeleteDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServiceDeleteDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServiceDeleteDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServicesDeleteByCreateTime mocks base method
|
|
|
|
func (m *MockTenantServiceDeleteDao) GetTenantServicesDeleteByCreateTime(createTime time.Time) ([]*model.TenantServicesDelete, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServicesDeleteByCreateTime", createTime)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServicesDelete)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServicesDeleteByCreateTime indicates an expected call of GetTenantServicesDeleteByCreateTime
|
|
|
|
func (mr *MockTenantServiceDeleteDaoMockRecorder) GetTenantServicesDeleteByCreateTime(createTime interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServicesDeleteByCreateTime", reflect.TypeOf((*MockTenantServiceDeleteDao)(nil).GetTenantServicesDeleteByCreateTime), createTime)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteTenantServicesDelete mocks base method
|
|
|
|
func (m *MockTenantServiceDeleteDao) DeleteTenantServicesDelete(record *model.TenantServicesDelete) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteTenantServicesDelete", record)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteTenantServicesDelete indicates an expected call of DeleteTenantServicesDelete
|
|
|
|
func (mr *MockTenantServiceDeleteDaoMockRecorder) DeleteTenantServicesDelete(record interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTenantServicesDelete", reflect.TypeOf((*MockTenantServiceDeleteDao)(nil).DeleteTenantServicesDelete), record)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServicesPortDao is a mock of TenantServicesPortDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServicesPortDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServicesPortDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServicesPortDaoMockRecorder is the mock recorder for MockTenantServicesPortDao
|
|
|
|
type MockTenantServicesPortDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServicesPortDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServicesPortDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServicesPortDao(ctrl *gomock.Controller) *MockTenantServicesPortDao {
|
|
|
|
mock := &MockTenantServicesPortDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServicesPortDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServicesPortDao) EXPECT() *MockTenantServicesPortDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServicesPortDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServicesPortDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) DeleteModel(serviceID string, arg ...interface{}) error {
|
|
|
|
varargs := []interface{}{serviceID}
|
|
|
|
for _, a := range arg {
|
|
|
|
varargs = append(varargs, a)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
2019-08-25 22:19:27 +08:00
|
|
|
ret := m.ctrl.Call(m, "DeleteModel", varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel indicates an expected call of DeleteModel
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) DeleteModel(serviceID interface{}, arg ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{serviceID}, arg...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModel", reflect.TypeOf((*MockTenantServicesPortDao)(nil).DeleteModel), varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPortsByServiceID mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) GetPortsByServiceID(serviceID string) ([]*model.TenantServicesPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPortsByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServicesPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPortsByServiceID indicates an expected call of GetPortsByServiceID
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) GetPortsByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPortsByServiceID", reflect.TypeOf((*MockTenantServicesPortDao)(nil).GetPortsByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetOuterPorts mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) GetOuterPorts(serviceID string) ([]*model.TenantServicesPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetOuterPorts", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServicesPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetOuterPorts indicates an expected call of GetOuterPorts
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) GetOuterPorts(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOuterPorts", reflect.TypeOf((*MockTenantServicesPortDao)(nil).GetOuterPorts), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetInnerPorts mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) GetInnerPorts(serviceID string) ([]*model.TenantServicesPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetInnerPorts", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServicesPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetInnerPorts indicates an expected call of GetInnerPorts
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) GetInnerPorts(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInnerPorts", reflect.TypeOf((*MockTenantServicesPortDao)(nil).GetInnerPorts), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPort mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) GetPort(serviceID string, port int) (*model.TenantServicesPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPort", serviceID, port)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServicesPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPort indicates an expected call of GetPort
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) GetPort(serviceID, port interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPort", reflect.TypeOf((*MockTenantServicesPortDao)(nil).GetPort), serviceID, port)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetOpenedPorts mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) GetOpenedPorts(serviceID string) ([]*model.TenantServicesPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetOpenedPorts", serviceID)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServicesPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetOpenedPorts indicates an expected call of GetOpenedPorts
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) GetOpenedPorts(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOpenedPorts", reflect.TypeOf((*MockTenantServicesPortDao)(nil).GetOpenedPorts), serviceID)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDepUDPPort mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) GetDepUDPPort(serviceID string) ([]*model.TenantServicesPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetDepUDPPort", serviceID)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServicesPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDepUDPPort indicates an expected call of GetDepUDPPort
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) GetDepUDPPort(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDepUDPPort", reflect.TypeOf((*MockTenantServicesPortDao)(nil).GetDepUDPPort), serviceID)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELPortsByServiceID mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) DELPortsByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DELPortsByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELPortsByServiceID indicates an expected call of DELPortsByServiceID
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) DELPortsByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DELPortsByServiceID", reflect.TypeOf((*MockTenantServicesPortDao)(nil).DELPortsByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// HasOpenPort mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) HasOpenPort(sid string) bool {
|
|
|
|
ret := m.ctrl.Call(m, "HasOpenPort", sid)
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// HasOpenPort indicates an expected call of HasOpenPort
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) HasOpenPort(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasOpenPort", reflect.TypeOf((*MockTenantServicesPortDao)(nil).HasOpenPort), sid)
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByServiceID mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) DelByServiceID(sid string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelByServiceID", sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByServiceID indicates an expected call of DelByServiceID
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) DelByServiceID(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelByServiceID", reflect.TypeOf((*MockTenantServicesPortDao)(nil).DelByServiceID), sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-12-10 17:56:47 +08:00
|
|
|
// ListInnerPortsByServiceIDs mocks base method
|
|
|
|
func (m *MockTenantServicesPortDao) ListInnerPortsByServiceIDs(serviceIDs []string) ([]*model.TenantServicesPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListInnerPortsByServiceIDs", serviceIDs)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantServicesPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListInnerPortsByServiceIDs indicates an expected call of ListInnerPortsByServiceIDs
|
|
|
|
func (mr *MockTenantServicesPortDaoMockRecorder) ListInnerPortsByServiceIDs(serviceIDs interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInnerPortsByServiceIDs", reflect.TypeOf((*MockTenantServicesPortDao)(nil).ListInnerPortsByServiceIDs), serviceIDs)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantPluginDao is a mock of TenantPluginDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantPluginDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantPluginDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantPluginDaoMockRecorder is the mock recorder for MockTenantPluginDao
|
|
|
|
type MockTenantPluginDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantPluginDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantPluginDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantPluginDao(ctrl *gomock.Controller) *MockTenantPluginDao {
|
|
|
|
mock := &MockTenantPluginDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantPluginDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantPluginDao) EXPECT() *MockTenantPluginDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantPluginDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantPluginDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantPluginDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantPluginDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantPluginDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantPluginDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginByID mocks base method
|
|
|
|
func (m *MockTenantPluginDao) GetPluginByID(pluginID, tenantID string) (*model.TenantPlugin, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPluginByID", pluginID, tenantID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantPlugin)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginByID indicates an expected call of GetPluginByID
|
|
|
|
func (mr *MockTenantPluginDaoMockRecorder) GetPluginByID(pluginID, tenantID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPluginByID", reflect.TypeOf((*MockTenantPluginDao)(nil).GetPluginByID), pluginID, tenantID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeletePluginByID mocks base method
|
|
|
|
func (m *MockTenantPluginDao) DeletePluginByID(pluginID, tenantID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeletePluginByID", pluginID, tenantID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeletePluginByID indicates an expected call of DeletePluginByID
|
|
|
|
func (mr *MockTenantPluginDaoMockRecorder) DeletePluginByID(pluginID, tenantID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePluginByID", reflect.TypeOf((*MockTenantPluginDao)(nil).DeletePluginByID), pluginID, tenantID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginsByTenantID mocks base method
|
|
|
|
func (m *MockTenantPluginDao) GetPluginsByTenantID(tenantID string) ([]*model.TenantPlugin, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPluginsByTenantID", tenantID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantPlugin)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginsByTenantID indicates an expected call of GetPluginsByTenantID
|
|
|
|
func (mr *MockTenantPluginDaoMockRecorder) GetPluginsByTenantID(tenantID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPluginsByTenantID", reflect.TypeOf((*MockTenantPluginDao)(nil).GetPluginsByTenantID), tenantID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-10-13 19:56:13 +08:00
|
|
|
// ListByIDs mocks base method
|
|
|
|
func (m *MockTenantPluginDao) ListByIDs(ids []string) ([]*model.TenantPlugin, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByIDs", ids)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantPlugin)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByIDs indicates an expected call of ListByIDs
|
|
|
|
func (mr *MockTenantPluginDaoMockRecorder) ListByIDs(ids interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByIDs", reflect.TypeOf((*MockTenantPluginDao)(nil).ListByIDs), ids)
|
|
|
|
}
|
|
|
|
|
2019-11-21 17:07:58 +08:00
|
|
|
// ListByTenantID mocks base method
|
|
|
|
func (m *MockTenantPluginDao) ListByTenantID(tenantID string) ([]*model.TenantPlugin, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByTenantID", tenantID)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantPlugin)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByTenantID indicates an expected call of ListByTenantID
|
|
|
|
func (mr *MockTenantPluginDaoMockRecorder) ListByTenantID(tenantID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByTenantID", reflect.TypeOf((*MockTenantPluginDao)(nil).ListByTenantID), tenantID)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantPluginDefaultENVDao is a mock of TenantPluginDefaultENVDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantPluginDefaultENVDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantPluginDefaultENVDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantPluginDefaultENVDaoMockRecorder is the mock recorder for MockTenantPluginDefaultENVDao
|
|
|
|
type MockTenantPluginDefaultENVDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantPluginDefaultENVDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantPluginDefaultENVDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantPluginDefaultENVDao(ctrl *gomock.Controller) *MockTenantPluginDefaultENVDao {
|
|
|
|
mock := &MockTenantPluginDefaultENVDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantPluginDefaultENVDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantPluginDefaultENVDao) EXPECT() *MockTenantPluginDefaultENVDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantPluginDefaultENVDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantPluginDefaultENVDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantPluginDefaultENVDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantPluginDefaultENVDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantPluginDefaultENVDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantPluginDefaultENVDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDefaultENVByName mocks base method
|
|
|
|
func (m *MockTenantPluginDefaultENVDao) GetDefaultENVByName(pluginID, name, versionID string) (*model.TenantPluginDefaultENV, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetDefaultENVByName", pluginID, name, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantPluginDefaultENV)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDefaultENVByName indicates an expected call of GetDefaultENVByName
|
|
|
|
func (mr *MockTenantPluginDefaultENVDaoMockRecorder) GetDefaultENVByName(pluginID, name, versionID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultENVByName", reflect.TypeOf((*MockTenantPluginDefaultENVDao)(nil).GetDefaultENVByName), pluginID, name, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDefaultENVSByPluginID mocks base method
|
|
|
|
func (m *MockTenantPluginDefaultENVDao) GetDefaultENVSByPluginID(pluginID, versionID string) ([]*model.TenantPluginDefaultENV, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetDefaultENVSByPluginID", pluginID, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantPluginDefaultENV)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDefaultENVSByPluginID indicates an expected call of GetDefaultENVSByPluginID
|
|
|
|
func (mr *MockTenantPluginDefaultENVDaoMockRecorder) GetDefaultENVSByPluginID(pluginID, versionID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultENVSByPluginID", reflect.TypeOf((*MockTenantPluginDefaultENVDao)(nil).GetDefaultENVSByPluginID), pluginID, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteDefaultENVByName mocks base method
|
|
|
|
func (m *MockTenantPluginDefaultENVDao) DeleteDefaultENVByName(pluginID, name, versionID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteDefaultENVByName", pluginID, name, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteDefaultENVByName indicates an expected call of DeleteDefaultENVByName
|
|
|
|
func (mr *MockTenantPluginDefaultENVDaoMockRecorder) DeleteDefaultENVByName(pluginID, name, versionID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDefaultENVByName", reflect.TypeOf((*MockTenantPluginDefaultENVDao)(nil).DeleteDefaultENVByName), pluginID, name, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteAllDefaultENVByPluginID mocks base method
|
|
|
|
func (m *MockTenantPluginDefaultENVDao) DeleteAllDefaultENVByPluginID(PluginID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteAllDefaultENVByPluginID", PluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteAllDefaultENVByPluginID indicates an expected call of DeleteAllDefaultENVByPluginID
|
|
|
|
func (mr *MockTenantPluginDefaultENVDaoMockRecorder) DeleteAllDefaultENVByPluginID(PluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllDefaultENVByPluginID", reflect.TypeOf((*MockTenantPluginDefaultENVDao)(nil).DeleteAllDefaultENVByPluginID), PluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteDefaultENVByPluginIDAndVersionID mocks base method
|
|
|
|
func (m *MockTenantPluginDefaultENVDao) DeleteDefaultENVByPluginIDAndVersionID(pluginID, versionID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteDefaultENVByPluginIDAndVersionID", pluginID, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteDefaultENVByPluginIDAndVersionID indicates an expected call of DeleteDefaultENVByPluginIDAndVersionID
|
|
|
|
func (mr *MockTenantPluginDefaultENVDaoMockRecorder) DeleteDefaultENVByPluginIDAndVersionID(pluginID, versionID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDefaultENVByPluginIDAndVersionID", reflect.TypeOf((*MockTenantPluginDefaultENVDao)(nil).DeleteDefaultENVByPluginIDAndVersionID), pluginID, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetALLMasterDefultENVs mocks base method
|
|
|
|
func (m *MockTenantPluginDefaultENVDao) GetALLMasterDefultENVs(pluginID string) ([]*model.TenantPluginDefaultENV, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetALLMasterDefultENVs", pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantPluginDefaultENV)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetALLMasterDefultENVs indicates an expected call of GetALLMasterDefultENVs
|
|
|
|
func (mr *MockTenantPluginDefaultENVDaoMockRecorder) GetALLMasterDefultENVs(pluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetALLMasterDefultENVs", reflect.TypeOf((*MockTenantPluginDefaultENVDao)(nil).GetALLMasterDefultENVs), pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDefaultEnvWhichCanBeSetByPluginID mocks base method
|
|
|
|
func (m *MockTenantPluginDefaultENVDao) GetDefaultEnvWhichCanBeSetByPluginID(pluginID, versionID string) ([]*model.TenantPluginDefaultENV, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetDefaultEnvWhichCanBeSetByPluginID", pluginID, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantPluginDefaultENV)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDefaultEnvWhichCanBeSetByPluginID indicates an expected call of GetDefaultEnvWhichCanBeSetByPluginID
|
|
|
|
func (mr *MockTenantPluginDefaultENVDaoMockRecorder) GetDefaultEnvWhichCanBeSetByPluginID(pluginID, versionID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultEnvWhichCanBeSetByPluginID", reflect.TypeOf((*MockTenantPluginDefaultENVDao)(nil).GetDefaultEnvWhichCanBeSetByPluginID), pluginID, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantPluginBuildVersionDao is a mock of TenantPluginBuildVersionDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantPluginBuildVersionDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantPluginBuildVersionDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantPluginBuildVersionDaoMockRecorder is the mock recorder for MockTenantPluginBuildVersionDao
|
|
|
|
type MockTenantPluginBuildVersionDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantPluginBuildVersionDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantPluginBuildVersionDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantPluginBuildVersionDao(ctrl *gomock.Controller) *MockTenantPluginBuildVersionDao {
|
|
|
|
mock := &MockTenantPluginBuildVersionDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantPluginBuildVersionDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantPluginBuildVersionDao) EXPECT() *MockTenantPluginBuildVersionDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantPluginBuildVersionDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantPluginBuildVersionDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantPluginBuildVersionDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantPluginBuildVersionDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantPluginBuildVersionDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantPluginBuildVersionDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteBuildVersionByVersionID mocks base method
|
|
|
|
func (m *MockTenantPluginBuildVersionDao) DeleteBuildVersionByVersionID(versionID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteBuildVersionByVersionID", versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteBuildVersionByVersionID indicates an expected call of DeleteBuildVersionByVersionID
|
|
|
|
func (mr *MockTenantPluginBuildVersionDaoMockRecorder) DeleteBuildVersionByVersionID(versionID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBuildVersionByVersionID", reflect.TypeOf((*MockTenantPluginBuildVersionDao)(nil).DeleteBuildVersionByVersionID), versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteBuildVersionByPluginID mocks base method
|
|
|
|
func (m *MockTenantPluginBuildVersionDao) DeleteBuildVersionByPluginID(pluginID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteBuildVersionByPluginID", pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteBuildVersionByPluginID indicates an expected call of DeleteBuildVersionByPluginID
|
|
|
|
func (mr *MockTenantPluginBuildVersionDaoMockRecorder) DeleteBuildVersionByPluginID(pluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBuildVersionByPluginID", reflect.TypeOf((*MockTenantPluginBuildVersionDao)(nil).DeleteBuildVersionByPluginID), pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetBuildVersionByPluginID mocks base method
|
|
|
|
func (m *MockTenantPluginBuildVersionDao) GetBuildVersionByPluginID(pluginID string) ([]*model.TenantPluginBuildVersion, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetBuildVersionByPluginID", pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantPluginBuildVersion)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetBuildVersionByPluginID indicates an expected call of GetBuildVersionByPluginID
|
|
|
|
func (mr *MockTenantPluginBuildVersionDaoMockRecorder) GetBuildVersionByPluginID(pluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildVersionByPluginID", reflect.TypeOf((*MockTenantPluginBuildVersionDao)(nil).GetBuildVersionByPluginID), pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetBuildVersionByVersionID mocks base method
|
|
|
|
func (m *MockTenantPluginBuildVersionDao) GetBuildVersionByVersionID(pluginID, versionID string) (*model.TenantPluginBuildVersion, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetBuildVersionByVersionID", pluginID, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantPluginBuildVersion)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetBuildVersionByVersionID indicates an expected call of GetBuildVersionByVersionID
|
|
|
|
func (mr *MockTenantPluginBuildVersionDaoMockRecorder) GetBuildVersionByVersionID(pluginID, versionID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildVersionByVersionID", reflect.TypeOf((*MockTenantPluginBuildVersionDao)(nil).GetBuildVersionByVersionID), pluginID, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLastBuildVersionByVersionID mocks base method
|
|
|
|
func (m *MockTenantPluginBuildVersionDao) GetLastBuildVersionByVersionID(pluginID, versionID string) (*model.TenantPluginBuildVersion, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetLastBuildVersionByVersionID", pluginID, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantPluginBuildVersion)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLastBuildVersionByVersionID indicates an expected call of GetLastBuildVersionByVersionID
|
|
|
|
func (mr *MockTenantPluginBuildVersionDaoMockRecorder) GetLastBuildVersionByVersionID(pluginID, versionID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastBuildVersionByVersionID", reflect.TypeOf((*MockTenantPluginBuildVersionDao)(nil).GetLastBuildVersionByVersionID), pluginID, versionID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetBuildVersionByDeployVersion mocks base method
|
|
|
|
func (m *MockTenantPluginBuildVersionDao) GetBuildVersionByDeployVersion(pluginID, versionID, deployVersion string) (*model.TenantPluginBuildVersion, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetBuildVersionByDeployVersion", pluginID, versionID, deployVersion)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantPluginBuildVersion)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetBuildVersionByDeployVersion indicates an expected call of GetBuildVersionByDeployVersion
|
|
|
|
func (mr *MockTenantPluginBuildVersionDaoMockRecorder) GetBuildVersionByDeployVersion(pluginID, versionID, deployVersion interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildVersionByDeployVersion", reflect.TypeOf((*MockTenantPluginBuildVersionDao)(nil).GetBuildVersionByDeployVersion), pluginID, versionID, deployVersion)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-10-13 19:56:13 +08:00
|
|
|
// ListSuccessfulOnesByPluginIDs mocks base method
|
|
|
|
func (m *MockTenantPluginBuildVersionDao) ListSuccessfulOnesByPluginIDs(pluginIDs []string) ([]*model.TenantPluginBuildVersion, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListSuccessfulOnesByPluginIDs", pluginIDs)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantPluginBuildVersion)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListSuccessfulOnesByPluginIDs indicates an expected call of ListSuccessfulOnesByPluginIDs
|
|
|
|
func (mr *MockTenantPluginBuildVersionDaoMockRecorder) ListSuccessfulOnesByPluginIDs(pluginIDs interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSuccessfulOnesByPluginIDs", reflect.TypeOf((*MockTenantPluginBuildVersionDao)(nil).ListSuccessfulOnesByPluginIDs), pluginIDs)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantPluginVersionEnvDao is a mock of TenantPluginVersionEnvDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantPluginVersionEnvDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantPluginVersionEnvDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantPluginVersionEnvDaoMockRecorder is the mock recorder for MockTenantPluginVersionEnvDao
|
|
|
|
type MockTenantPluginVersionEnvDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantPluginVersionEnvDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantPluginVersionEnvDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantPluginVersionEnvDao(ctrl *gomock.Controller) *MockTenantPluginVersionEnvDao {
|
|
|
|
mock := &MockTenantPluginVersionEnvDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantPluginVersionEnvDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantPluginVersionEnvDao) EXPECT() *MockTenantPluginVersionEnvDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantPluginVersionEnvDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantPluginVersionEnvDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantPluginVersionEnvDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantPluginVersionEnvDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantPluginVersionEnvDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantPluginVersionEnvDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteEnvByEnvName mocks base method
|
|
|
|
func (m *MockTenantPluginVersionEnvDao) DeleteEnvByEnvName(envName, pluginID, serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteEnvByEnvName", envName, pluginID, serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteEnvByEnvName indicates an expected call of DeleteEnvByEnvName
|
|
|
|
func (mr *MockTenantPluginVersionEnvDaoMockRecorder) DeleteEnvByEnvName(envName, pluginID, serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEnvByEnvName", reflect.TypeOf((*MockTenantPluginVersionEnvDao)(nil).DeleteEnvByEnvName), envName, pluginID, serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteEnvByPluginID mocks base method
|
|
|
|
func (m *MockTenantPluginVersionEnvDao) DeleteEnvByPluginID(serviceID, pluginID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteEnvByPluginID", serviceID, pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteEnvByPluginID indicates an expected call of DeleteEnvByPluginID
|
|
|
|
func (mr *MockTenantPluginVersionEnvDaoMockRecorder) DeleteEnvByPluginID(serviceID, pluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEnvByPluginID", reflect.TypeOf((*MockTenantPluginVersionEnvDao)(nil).DeleteEnvByPluginID), serviceID, pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteEnvByServiceID mocks base method
|
|
|
|
func (m *MockTenantPluginVersionEnvDao) DeleteEnvByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteEnvByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteEnvByServiceID indicates an expected call of DeleteEnvByServiceID
|
|
|
|
func (mr *MockTenantPluginVersionEnvDaoMockRecorder) DeleteEnvByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEnvByServiceID", reflect.TypeOf((*MockTenantPluginVersionEnvDao)(nil).DeleteEnvByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionEnvByServiceID mocks base method
|
|
|
|
func (m *MockTenantPluginVersionEnvDao) GetVersionEnvByServiceID(serviceID, pluginID string) ([]*model.TenantPluginVersionEnv, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetVersionEnvByServiceID", serviceID, pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantPluginVersionEnv)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionEnvByServiceID indicates an expected call of GetVersionEnvByServiceID
|
|
|
|
func (mr *MockTenantPluginVersionEnvDaoMockRecorder) GetVersionEnvByServiceID(serviceID, pluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVersionEnvByServiceID", reflect.TypeOf((*MockTenantPluginVersionEnvDao)(nil).GetVersionEnvByServiceID), serviceID, pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-10-13 19:56:13 +08:00
|
|
|
// ListByServiceID mocks base method
|
|
|
|
func (m *MockTenantPluginVersionEnvDao) ListByServiceID(serviceID string) ([]*model.TenantPluginVersionEnv, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByServiceID", serviceID)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantPluginVersionEnv)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByServiceID indicates an expected call of ListByServiceID
|
|
|
|
func (mr *MockTenantPluginVersionEnvDaoMockRecorder) ListByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByServiceID", reflect.TypeOf((*MockTenantPluginVersionEnvDao)(nil).ListByServiceID), serviceID)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionEnvByEnvName mocks base method
|
|
|
|
func (m *MockTenantPluginVersionEnvDao) GetVersionEnvByEnvName(serviceID, pluginID, envName string) (*model.TenantPluginVersionEnv, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetVersionEnvByEnvName", serviceID, pluginID, envName)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantPluginVersionEnv)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionEnvByEnvName indicates an expected call of GetVersionEnvByEnvName
|
|
|
|
func (mr *MockTenantPluginVersionEnvDaoMockRecorder) GetVersionEnvByEnvName(serviceID, pluginID, envName interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVersionEnvByEnvName", reflect.TypeOf((*MockTenantPluginVersionEnvDao)(nil).GetVersionEnvByEnvName), serviceID, pluginID, envName)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantPluginVersionConfigDao is a mock of TenantPluginVersionConfigDao interface
|
2019-02-15 17:20:08 +08:00
|
|
|
type MockTenantPluginVersionConfigDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantPluginVersionConfigDaoMockRecorder
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantPluginVersionConfigDaoMockRecorder is the mock recorder for MockTenantPluginVersionConfigDao
|
|
|
|
type MockTenantPluginVersionConfigDaoMockRecorder struct {
|
2019-02-15 17:20:08 +08:00
|
|
|
mock *MockTenantPluginVersionConfigDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantPluginVersionConfigDao creates a new mock instance
|
2019-02-15 17:20:08 +08:00
|
|
|
func NewMockTenantPluginVersionConfigDao(ctrl *gomock.Controller) *MockTenantPluginVersionConfigDao {
|
|
|
|
mock := &MockTenantPluginVersionConfigDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantPluginVersionConfigDaoMockRecorder{mock}
|
2019-02-15 17:20:08 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantPluginVersionConfigDao) EXPECT() *MockTenantPluginVersionConfigDaoMockRecorder {
|
|
|
|
return m.recorder
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantPluginVersionConfigDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantPluginVersionConfigDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantPluginVersionConfigDao)(nil).AddModel), arg0)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantPluginVersionConfigDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantPluginVersionConfigDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantPluginVersionConfigDao)(nil).UpdateModel), arg0)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginConfig mocks base method
|
|
|
|
func (m *MockTenantPluginVersionConfigDao) GetPluginConfig(serviceID, pluginID string) (*model.TenantPluginVersionDiscoverConfig, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPluginConfig", serviceID, pluginID)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantPluginVersionDiscoverConfig)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginConfig indicates an expected call of GetPluginConfig
|
|
|
|
func (mr *MockTenantPluginVersionConfigDaoMockRecorder) GetPluginConfig(serviceID, pluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPluginConfig", reflect.TypeOf((*MockTenantPluginVersionConfigDao)(nil).GetPluginConfig), serviceID, pluginID)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginConfigs mocks base method
|
|
|
|
func (m *MockTenantPluginVersionConfigDao) GetPluginConfigs(serviceID string) ([]*model.TenantPluginVersionDiscoverConfig, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPluginConfigs", serviceID)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantPluginVersionDiscoverConfig)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginConfigs indicates an expected call of GetPluginConfigs
|
|
|
|
func (mr *MockTenantPluginVersionConfigDaoMockRecorder) GetPluginConfigs(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPluginConfigs", reflect.TypeOf((*MockTenantPluginVersionConfigDao)(nil).GetPluginConfigs), serviceID)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeletePluginConfig mocks base method
|
|
|
|
func (m *MockTenantPluginVersionConfigDao) DeletePluginConfig(serviceID, pluginID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeletePluginConfig", serviceID, pluginID)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeletePluginConfig indicates an expected call of DeletePluginConfig
|
|
|
|
func (mr *MockTenantPluginVersionConfigDaoMockRecorder) DeletePluginConfig(serviceID, pluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePluginConfig", reflect.TypeOf((*MockTenantPluginVersionConfigDao)(nil).DeletePluginConfig), serviceID, pluginID)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeletePluginConfigByServiceID mocks base method
|
|
|
|
func (m *MockTenantPluginVersionConfigDao) DeletePluginConfigByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeletePluginConfigByServiceID", serviceID)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeletePluginConfigByServiceID indicates an expected call of DeletePluginConfigByServiceID
|
|
|
|
func (mr *MockTenantPluginVersionConfigDaoMockRecorder) DeletePluginConfigByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePluginConfigByServiceID", reflect.TypeOf((*MockTenantPluginVersionConfigDao)(nil).DeletePluginConfigByServiceID), serviceID)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServicePluginRelationDao is a mock of TenantServicePluginRelationDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServicePluginRelationDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServicePluginRelationDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServicePluginRelationDaoMockRecorder is the mock recorder for MockTenantServicePluginRelationDao
|
|
|
|
type MockTenantServicePluginRelationDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServicePluginRelationDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServicePluginRelationDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServicePluginRelationDao(ctrl *gomock.Controller) *MockTenantServicePluginRelationDao {
|
|
|
|
mock := &MockTenantServicePluginRelationDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServicePluginRelationDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServicePluginRelationDao) EXPECT() *MockTenantServicePluginRelationDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServicePluginRelationDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServicePluginRelationDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServicePluginRelationDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServicePluginRelationDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServicePluginRelationDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServicePluginRelationDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteRelationByServiceIDAndPluginID mocks base method
|
|
|
|
func (m *MockTenantServicePluginRelationDao) DeleteRelationByServiceIDAndPluginID(serviceID, pluginID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteRelationByServiceIDAndPluginID", serviceID, pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteRelationByServiceIDAndPluginID indicates an expected call of DeleteRelationByServiceIDAndPluginID
|
|
|
|
func (mr *MockTenantServicePluginRelationDaoMockRecorder) DeleteRelationByServiceIDAndPluginID(serviceID, pluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRelationByServiceIDAndPluginID", reflect.TypeOf((*MockTenantServicePluginRelationDao)(nil).DeleteRelationByServiceIDAndPluginID), serviceID, pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteALLRelationByServiceID mocks base method
|
|
|
|
func (m *MockTenantServicePluginRelationDao) DeleteALLRelationByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteALLRelationByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteALLRelationByServiceID indicates an expected call of DeleteALLRelationByServiceID
|
|
|
|
func (mr *MockTenantServicePluginRelationDaoMockRecorder) DeleteALLRelationByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteALLRelationByServiceID", reflect.TypeOf((*MockTenantServicePluginRelationDao)(nil).DeleteALLRelationByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteALLRelationByPluginID mocks base method
|
|
|
|
func (m *MockTenantServicePluginRelationDao) DeleteALLRelationByPluginID(pluginID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteALLRelationByPluginID", pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteALLRelationByPluginID indicates an expected call of DeleteALLRelationByPluginID
|
|
|
|
func (mr *MockTenantServicePluginRelationDaoMockRecorder) DeleteALLRelationByPluginID(pluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteALLRelationByPluginID", reflect.TypeOf((*MockTenantServicePluginRelationDao)(nil).DeleteALLRelationByPluginID), pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetALLRelationByServiceID mocks base method
|
|
|
|
func (m *MockTenantServicePluginRelationDao) GetALLRelationByServiceID(serviceID string) ([]*model.TenantServicePluginRelation, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetALLRelationByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServicePluginRelation)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetALLRelationByServiceID indicates an expected call of GetALLRelationByServiceID
|
|
|
|
func (mr *MockTenantServicePluginRelationDaoMockRecorder) GetALLRelationByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetALLRelationByServiceID", reflect.TypeOf((*MockTenantServicePluginRelationDao)(nil).GetALLRelationByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetRelateionByServiceIDAndPluginID mocks base method
|
|
|
|
func (m *MockTenantServicePluginRelationDao) GetRelateionByServiceIDAndPluginID(serviceID, pluginID string) (*model.TenantServicePluginRelation, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetRelateionByServiceIDAndPluginID", serviceID, pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServicePluginRelation)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetRelateionByServiceIDAndPluginID indicates an expected call of GetRelateionByServiceIDAndPluginID
|
|
|
|
func (mr *MockTenantServicePluginRelationDaoMockRecorder) GetRelateionByServiceIDAndPluginID(serviceID, pluginID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRelateionByServiceIDAndPluginID", reflect.TypeOf((*MockTenantServicePluginRelationDao)(nil).GetRelateionByServiceIDAndPluginID), serviceID, pluginID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// CheckSomeModelPluginByServiceID mocks base method
|
|
|
|
func (m *MockTenantServicePluginRelationDao) CheckSomeModelPluginByServiceID(serviceID, pluginModel string) (bool, error) {
|
|
|
|
ret := m.ctrl.Call(m, "CheckSomeModelPluginByServiceID", serviceID, pluginModel)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// CheckSomeModelPluginByServiceID indicates an expected call of CheckSomeModelPluginByServiceID
|
|
|
|
func (mr *MockTenantServicePluginRelationDaoMockRecorder) CheckSomeModelPluginByServiceID(serviceID, pluginModel interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSomeModelPluginByServiceID", reflect.TypeOf((*MockTenantServicePluginRelationDao)(nil).CheckSomeModelPluginByServiceID), serviceID, pluginModel)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// CheckSomeModelLikePluginByServiceID mocks base method
|
|
|
|
func (m *MockTenantServicePluginRelationDao) CheckSomeModelLikePluginByServiceID(serviceID, pluginModel string) (bool, error) {
|
|
|
|
ret := m.ctrl.Call(m, "CheckSomeModelLikePluginByServiceID", serviceID, pluginModel)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// CheckSomeModelLikePluginByServiceID indicates an expected call of CheckSomeModelLikePluginByServiceID
|
|
|
|
func (mr *MockTenantServicePluginRelationDaoMockRecorder) CheckSomeModelLikePluginByServiceID(serviceID, pluginModel interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSomeModelLikePluginByServiceID", reflect.TypeOf((*MockTenantServicePluginRelationDao)(nil).CheckSomeModelLikePluginByServiceID), serviceID, pluginModel)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceRelationDao is a mock of TenantServiceRelationDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServiceRelationDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServiceRelationDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceRelationDaoMockRecorder is the mock recorder for MockTenantServiceRelationDao
|
|
|
|
type MockTenantServiceRelationDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServiceRelationDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServiceRelationDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServiceRelationDao(ctrl *gomock.Controller) *MockTenantServiceRelationDao {
|
|
|
|
mock := &MockTenantServiceRelationDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServiceRelationDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServiceRelationDao) EXPECT() *MockTenantServiceRelationDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServiceRelationDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServiceRelationDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServiceRelationDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServiceRelationDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServiceRelationDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServiceRelationDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel mocks base method
|
|
|
|
func (m *MockTenantServiceRelationDao) DeleteModel(serviceID string, arg ...interface{}) error {
|
|
|
|
varargs := []interface{}{serviceID}
|
|
|
|
for _, a := range arg {
|
|
|
|
varargs = append(varargs, a)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
2019-08-25 22:19:27 +08:00
|
|
|
ret := m.ctrl.Call(m, "DeleteModel", varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel indicates an expected call of DeleteModel
|
|
|
|
func (mr *MockTenantServiceRelationDaoMockRecorder) DeleteModel(serviceID interface{}, arg ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{serviceID}, arg...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModel", reflect.TypeOf((*MockTenantServiceRelationDao)(nil).DeleteModel), varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceRelations mocks base method
|
|
|
|
func (m *MockTenantServiceRelationDao) GetTenantServiceRelations(serviceID string) ([]*model.TenantServiceRelation, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServiceRelations", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceRelation)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceRelations indicates an expected call of GetTenantServiceRelations
|
|
|
|
func (mr *MockTenantServiceRelationDaoMockRecorder) GetTenantServiceRelations(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServiceRelations", reflect.TypeOf((*MockTenantServiceRelationDao)(nil).GetTenantServiceRelations), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-12-10 17:56:47 +08:00
|
|
|
// ListByServiceIDs mocks base method
|
|
|
|
func (m *MockTenantServiceRelationDao) ListByServiceIDs(serviceIDs []string) ([]*model.TenantServiceRelation, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByServiceIDs", serviceIDs)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceRelation)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByServiceIDs indicates an expected call of ListByServiceIDs
|
|
|
|
func (mr *MockTenantServiceRelationDaoMockRecorder) ListByServiceIDs(serviceIDs interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByServiceIDs", reflect.TypeOf((*MockTenantServiceRelationDao)(nil).ListByServiceIDs), serviceIDs)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceRelationsByDependServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceRelationDao) GetTenantServiceRelationsByDependServiceID(dependServiceID string) ([]*model.TenantServiceRelation, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServiceRelationsByDependServiceID", dependServiceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceRelation)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceRelationsByDependServiceID indicates an expected call of GetTenantServiceRelationsByDependServiceID
|
|
|
|
func (mr *MockTenantServiceRelationDaoMockRecorder) GetTenantServiceRelationsByDependServiceID(dependServiceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServiceRelationsByDependServiceID", reflect.TypeOf((*MockTenantServiceRelationDao)(nil).GetTenantServiceRelationsByDependServiceID), dependServiceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// HaveRelations mocks base method
|
|
|
|
func (m *MockTenantServiceRelationDao) HaveRelations(serviceID string) bool {
|
|
|
|
ret := m.ctrl.Call(m, "HaveRelations", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// HaveRelations indicates an expected call of HaveRelations
|
|
|
|
func (mr *MockTenantServiceRelationDaoMockRecorder) HaveRelations(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HaveRelations", reflect.TypeOf((*MockTenantServiceRelationDao)(nil).HaveRelations), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELRelationsByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceRelationDao) DELRelationsByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DELRelationsByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELRelationsByServiceID indicates an expected call of DELRelationsByServiceID
|
|
|
|
func (mr *MockTenantServiceRelationDaoMockRecorder) DELRelationsByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DELRelationsByServiceID", reflect.TypeOf((*MockTenantServiceRelationDao)(nil).DELRelationsByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteRelationByDepID mocks base method
|
|
|
|
func (m *MockTenantServiceRelationDao) DeleteRelationByDepID(serviceID, depID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteRelationByDepID", serviceID, depID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteRelationByDepID indicates an expected call of DeleteRelationByDepID
|
|
|
|
func (mr *MockTenantServiceRelationDaoMockRecorder) DeleteRelationByDepID(serviceID, depID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRelationByDepID", reflect.TypeOf((*MockTenantServiceRelationDao)(nil).DeleteRelationByDepID), serviceID, depID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServicesStreamPluginPortDao is a mock of TenantServicesStreamPluginPortDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServicesStreamPluginPortDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServicesStreamPluginPortDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServicesStreamPluginPortDaoMockRecorder is the mock recorder for MockTenantServicesStreamPluginPortDao
|
|
|
|
type MockTenantServicesStreamPluginPortDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServicesStreamPluginPortDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServicesStreamPluginPortDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServicesStreamPluginPortDao(ctrl *gomock.Controller) *MockTenantServicesStreamPluginPortDao {
|
|
|
|
mock := &MockTenantServicesStreamPluginPortDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServicesStreamPluginPortDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServicesStreamPluginPortDao) EXPECT() *MockTenantServicesStreamPluginPortDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServicesStreamPluginPortDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServicesStreamPluginPortDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServicesStreamPluginPortDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServicesStreamPluginPortDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServicesStreamPluginPortDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServicesStreamPluginPortDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginMappingPorts mocks base method
|
|
|
|
func (m *MockTenantServicesStreamPluginPortDao) GetPluginMappingPorts(serviceID string) ([]*model.TenantServicesStreamPluginPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPluginMappingPorts", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServicesStreamPluginPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginMappingPorts indicates an expected call of GetPluginMappingPorts
|
|
|
|
func (mr *MockTenantServicesStreamPluginPortDaoMockRecorder) GetPluginMappingPorts(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPluginMappingPorts", reflect.TypeOf((*MockTenantServicesStreamPluginPortDao)(nil).GetPluginMappingPorts), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// SetPluginMappingPort mocks base method
|
|
|
|
func (m *MockTenantServicesStreamPluginPortDao) SetPluginMappingPort(tenantID, serviceID, pluginModel string, containerPort int) (int, error) {
|
|
|
|
ret := m.ctrl.Call(m, "SetPluginMappingPort", tenantID, serviceID, pluginModel, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// SetPluginMappingPort indicates an expected call of SetPluginMappingPort
|
|
|
|
func (mr *MockTenantServicesStreamPluginPortDaoMockRecorder) SetPluginMappingPort(tenantID, serviceID, pluginModel, containerPort interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPluginMappingPort", reflect.TypeOf((*MockTenantServicesStreamPluginPortDao)(nil).SetPluginMappingPort), tenantID, serviceID, pluginModel, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeletePluginMappingPortByContainerPort mocks base method
|
|
|
|
func (m *MockTenantServicesStreamPluginPortDao) DeletePluginMappingPortByContainerPort(serviceID, pluginModel string, containerPort int) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeletePluginMappingPortByContainerPort", serviceID, pluginModel, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeletePluginMappingPortByContainerPort indicates an expected call of DeletePluginMappingPortByContainerPort
|
|
|
|
func (mr *MockTenantServicesStreamPluginPortDaoMockRecorder) DeletePluginMappingPortByContainerPort(serviceID, pluginModel, containerPort interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePluginMappingPortByContainerPort", reflect.TypeOf((*MockTenantServicesStreamPluginPortDao)(nil).DeletePluginMappingPortByContainerPort), serviceID, pluginModel, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteAllPluginMappingPortByServiceID mocks base method
|
|
|
|
func (m *MockTenantServicesStreamPluginPortDao) DeleteAllPluginMappingPortByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteAllPluginMappingPortByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteAllPluginMappingPortByServiceID indicates an expected call of DeleteAllPluginMappingPortByServiceID
|
|
|
|
func (mr *MockTenantServicesStreamPluginPortDaoMockRecorder) DeleteAllPluginMappingPortByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllPluginMappingPortByServiceID", reflect.TypeOf((*MockTenantServicesStreamPluginPortDao)(nil).DeleteAllPluginMappingPortByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginMappingPortByServiceIDAndContainerPort mocks base method
|
|
|
|
func (m *MockTenantServicesStreamPluginPortDao) GetPluginMappingPortByServiceIDAndContainerPort(serviceID, pluginModel string, containerPort int) (*model.TenantServicesStreamPluginPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPluginMappingPortByServiceIDAndContainerPort", serviceID, pluginModel, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServicesStreamPluginPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPluginMappingPortByServiceIDAndContainerPort indicates an expected call of GetPluginMappingPortByServiceIDAndContainerPort
|
|
|
|
func (mr *MockTenantServicesStreamPluginPortDaoMockRecorder) GetPluginMappingPortByServiceIDAndContainerPort(serviceID, pluginModel, containerPort interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPluginMappingPortByServiceIDAndContainerPort", reflect.TypeOf((*MockTenantServicesStreamPluginPortDao)(nil).GetPluginMappingPortByServiceIDAndContainerPort), serviceID, pluginModel, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-10-13 19:56:13 +08:00
|
|
|
// ListByServiceID mocks base method
|
|
|
|
func (m *MockTenantServicesStreamPluginPortDao) ListByServiceID(sid string) ([]*model.TenantServicesStreamPluginPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByServiceID", sid)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantServicesStreamPluginPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByServiceID indicates an expected call of ListByServiceID
|
|
|
|
func (mr *MockTenantServicesStreamPluginPortDaoMockRecorder) ListByServiceID(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByServiceID", reflect.TypeOf((*MockTenantServicesStreamPluginPortDao)(nil).ListByServiceID), sid)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceEnvVarDao is a mock of TenantServiceEnvVarDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServiceEnvVarDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServiceEnvVarDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceEnvVarDaoMockRecorder is the mock recorder for MockTenantServiceEnvVarDao
|
|
|
|
type MockTenantServiceEnvVarDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServiceEnvVarDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServiceEnvVarDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServiceEnvVarDao(ctrl *gomock.Controller) *MockTenantServiceEnvVarDao {
|
|
|
|
mock := &MockTenantServiceEnvVarDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServiceEnvVarDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServiceEnvVarDao) EXPECT() *MockTenantServiceEnvVarDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServiceEnvVarDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServiceEnvVarDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServiceEnvVarDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServiceEnvVarDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServiceEnvVarDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServiceEnvVarDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel mocks base method
|
|
|
|
func (m *MockTenantServiceEnvVarDao) DeleteModel(serviceID string, arg ...interface{}) error {
|
|
|
|
varargs := []interface{}{serviceID}
|
|
|
|
for _, a := range arg {
|
|
|
|
varargs = append(varargs, a)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
2019-08-25 22:19:27 +08:00
|
|
|
ret := m.ctrl.Call(m, "DeleteModel", varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel indicates an expected call of DeleteModel
|
|
|
|
func (mr *MockTenantServiceEnvVarDaoMockRecorder) DeleteModel(serviceID interface{}, arg ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{serviceID}, arg...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModel", reflect.TypeOf((*MockTenantServiceEnvVarDao)(nil).DeleteModel), varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDependServiceEnvs mocks base method
|
|
|
|
func (m *MockTenantServiceEnvVarDao) GetDependServiceEnvs(serviceIDs, scopes []string) ([]*model.TenantServiceEnvVar, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetDependServiceEnvs", serviceIDs, scopes)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceEnvVar)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDependServiceEnvs indicates an expected call of GetDependServiceEnvs
|
|
|
|
func (mr *MockTenantServiceEnvVarDaoMockRecorder) GetDependServiceEnvs(serviceIDs, scopes interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDependServiceEnvs", reflect.TypeOf((*MockTenantServiceEnvVarDao)(nil).GetDependServiceEnvs), serviceIDs, scopes)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceEnvs mocks base method
|
|
|
|
func (m *MockTenantServiceEnvVarDao) GetServiceEnvs(serviceID string, scopes []string) ([]*model.TenantServiceEnvVar, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceEnvs", serviceID, scopes)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceEnvVar)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceEnvs indicates an expected call of GetServiceEnvs
|
|
|
|
func (mr *MockTenantServiceEnvVarDaoMockRecorder) GetServiceEnvs(serviceID, scopes interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceEnvs", reflect.TypeOf((*MockTenantServiceEnvVarDao)(nil).GetServiceEnvs), serviceID, scopes)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetEnv mocks base method
|
|
|
|
func (m *MockTenantServiceEnvVarDao) GetEnv(serviceID, envName string) (*model.TenantServiceEnvVar, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetEnv", serviceID, envName)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceEnvVar)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetEnv indicates an expected call of GetEnv
|
|
|
|
func (mr *MockTenantServiceEnvVarDaoMockRecorder) GetEnv(serviceID, envName interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnv", reflect.TypeOf((*MockTenantServiceEnvVarDao)(nil).GetEnv), serviceID, envName)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELServiceEnvsByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceEnvVarDao) DELServiceEnvsByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DELServiceEnvsByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELServiceEnvsByServiceID indicates an expected call of DELServiceEnvsByServiceID
|
|
|
|
func (mr *MockTenantServiceEnvVarDaoMockRecorder) DELServiceEnvsByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DELServiceEnvsByServiceID", reflect.TypeOf((*MockTenantServiceEnvVarDao)(nil).DELServiceEnvsByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByServiceIDAndScope mocks base method
|
|
|
|
func (m *MockTenantServiceEnvVarDao) DelByServiceIDAndScope(sid, scope string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelByServiceIDAndScope", sid, scope)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByServiceIDAndScope indicates an expected call of DelByServiceIDAndScope
|
|
|
|
func (mr *MockTenantServiceEnvVarDaoMockRecorder) DelByServiceIDAndScope(sid, scope interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelByServiceIDAndScope", reflect.TypeOf((*MockTenantServiceEnvVarDao)(nil).DelByServiceIDAndScope), sid, scope)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceMountRelationDao is a mock of TenantServiceMountRelationDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServiceMountRelationDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServiceMountRelationDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceMountRelationDaoMockRecorder is the mock recorder for MockTenantServiceMountRelationDao
|
|
|
|
type MockTenantServiceMountRelationDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServiceMountRelationDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServiceMountRelationDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServiceMountRelationDao(ctrl *gomock.Controller) *MockTenantServiceMountRelationDao {
|
|
|
|
mock := &MockTenantServiceMountRelationDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServiceMountRelationDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServiceMountRelationDao) EXPECT() *MockTenantServiceMountRelationDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServiceMountRelationDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServiceMountRelationDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServiceMountRelationDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServiceMountRelationDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServiceMountRelationDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServiceMountRelationDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceMountRelationsByService mocks base method
|
|
|
|
func (m *MockTenantServiceMountRelationDao) GetTenantServiceMountRelationsByService(serviceID string) ([]*model.TenantServiceMountRelation, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServiceMountRelationsByService", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceMountRelation)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceMountRelationsByService indicates an expected call of GetTenantServiceMountRelationsByService
|
|
|
|
func (mr *MockTenantServiceMountRelationDaoMockRecorder) GetTenantServiceMountRelationsByService(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServiceMountRelationsByService", reflect.TypeOf((*MockTenantServiceMountRelationDao)(nil).GetTenantServiceMountRelationsByService), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DElTenantServiceMountRelationByServiceAndName mocks base method
|
|
|
|
func (m *MockTenantServiceMountRelationDao) DElTenantServiceMountRelationByServiceAndName(serviceID, mntDir string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DElTenantServiceMountRelationByServiceAndName", serviceID, mntDir)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DElTenantServiceMountRelationByServiceAndName indicates an expected call of DElTenantServiceMountRelationByServiceAndName
|
|
|
|
func (mr *MockTenantServiceMountRelationDaoMockRecorder) DElTenantServiceMountRelationByServiceAndName(serviceID, mntDir interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DElTenantServiceMountRelationByServiceAndName", reflect.TypeOf((*MockTenantServiceMountRelationDao)(nil).DElTenantServiceMountRelationByServiceAndName), serviceID, mntDir)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELTenantServiceMountRelationByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceMountRelationDao) DELTenantServiceMountRelationByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DELTenantServiceMountRelationByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELTenantServiceMountRelationByServiceID indicates an expected call of DELTenantServiceMountRelationByServiceID
|
|
|
|
func (mr *MockTenantServiceMountRelationDaoMockRecorder) DELTenantServiceMountRelationByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DELTenantServiceMountRelationByServiceID", reflect.TypeOf((*MockTenantServiceMountRelationDao)(nil).DELTenantServiceMountRelationByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DElTenantServiceMountRelationByDepService mocks base method
|
|
|
|
func (m *MockTenantServiceMountRelationDao) DElTenantServiceMountRelationByDepService(serviceID, depServiceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DElTenantServiceMountRelationByDepService", serviceID, depServiceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DElTenantServiceMountRelationByDepService indicates an expected call of DElTenantServiceMountRelationByDepService
|
|
|
|
func (mr *MockTenantServiceMountRelationDaoMockRecorder) DElTenantServiceMountRelationByDepService(serviceID, depServiceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DElTenantServiceMountRelationByDepService", reflect.TypeOf((*MockTenantServiceMountRelationDao)(nil).DElTenantServiceMountRelationByDepService), serviceID, depServiceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceVolumeDao is a mock of TenantServiceVolumeDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServiceVolumeDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServiceVolumeDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceVolumeDaoMockRecorder is the mock recorder for MockTenantServiceVolumeDao
|
|
|
|
type MockTenantServiceVolumeDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServiceVolumeDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServiceVolumeDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServiceVolumeDao(ctrl *gomock.Controller) *MockTenantServiceVolumeDao {
|
|
|
|
mock := &MockTenantServiceVolumeDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServiceVolumeDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServiceVolumeDao) EXPECT() *MockTenantServiceVolumeDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServiceVolumeDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServiceVolumeDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServiceVolumeDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServiceVolumeDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServiceVolumeDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServiceVolumeDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel mocks base method
|
|
|
|
func (m *MockTenantServiceVolumeDao) DeleteModel(serviceID string, arg ...interface{}) error {
|
|
|
|
varargs := []interface{}{serviceID}
|
|
|
|
for _, a := range arg {
|
|
|
|
varargs = append(varargs, a)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
2019-08-25 22:19:27 +08:00
|
|
|
ret := m.ctrl.Call(m, "DeleteModel", varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel indicates an expected call of DeleteModel
|
|
|
|
func (mr *MockTenantServiceVolumeDaoMockRecorder) DeleteModel(serviceID interface{}, arg ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{serviceID}, arg...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModel", reflect.TypeOf((*MockTenantServiceVolumeDao)(nil).DeleteModel), varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceVolumesByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceVolumeDao) GetTenantServiceVolumesByServiceID(serviceID string) ([]*model.TenantServiceVolume, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServiceVolumesByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceVolume)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceVolumesByServiceID indicates an expected call of GetTenantServiceVolumesByServiceID
|
|
|
|
func (mr *MockTenantServiceVolumeDaoMockRecorder) GetTenantServiceVolumesByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServiceVolumesByServiceID", reflect.TypeOf((*MockTenantServiceVolumeDao)(nil).GetTenantServiceVolumesByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteTenantServiceVolumesByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceVolumeDao) DeleteTenantServiceVolumesByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteTenantServiceVolumesByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteTenantServiceVolumesByServiceID indicates an expected call of DeleteTenantServiceVolumesByServiceID
|
|
|
|
func (mr *MockTenantServiceVolumeDaoMockRecorder) DeleteTenantServiceVolumesByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTenantServiceVolumesByServiceID", reflect.TypeOf((*MockTenantServiceVolumeDao)(nil).DeleteTenantServiceVolumesByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteByServiceIDAndVolumePath mocks base method
|
|
|
|
func (m *MockTenantServiceVolumeDao) DeleteByServiceIDAndVolumePath(serviceID, volumePath string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteByServiceIDAndVolumePath", serviceID, volumePath)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteByServiceIDAndVolumePath indicates an expected call of DeleteByServiceIDAndVolumePath
|
|
|
|
func (mr *MockTenantServiceVolumeDaoMockRecorder) DeleteByServiceIDAndVolumePath(serviceID, volumePath interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByServiceIDAndVolumePath", reflect.TypeOf((*MockTenantServiceVolumeDao)(nil).DeleteByServiceIDAndVolumePath), serviceID, volumePath)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVolumeByServiceIDAndName mocks base method
|
|
|
|
func (m *MockTenantServiceVolumeDao) GetVolumeByServiceIDAndName(serviceID, name string) (*model.TenantServiceVolume, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetVolumeByServiceIDAndName", serviceID, name)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceVolume)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVolumeByServiceIDAndName indicates an expected call of GetVolumeByServiceIDAndName
|
|
|
|
func (mr *MockTenantServiceVolumeDaoMockRecorder) GetVolumeByServiceIDAndName(serviceID, name interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVolumeByServiceIDAndName", reflect.TypeOf((*MockTenantServiceVolumeDao)(nil).GetVolumeByServiceIDAndName), serviceID, name)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAllVolumes mocks base method
|
|
|
|
func (m *MockTenantServiceVolumeDao) GetAllVolumes() ([]*model.TenantServiceVolume, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetAllVolumes")
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceVolume)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAllVolumes indicates an expected call of GetAllVolumes
|
|
|
|
func (mr *MockTenantServiceVolumeDaoMockRecorder) GetAllVolumes() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllVolumes", reflect.TypeOf((*MockTenantServiceVolumeDao)(nil).GetAllVolumes))
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVolumeByID mocks base method
|
|
|
|
func (m *MockTenantServiceVolumeDao) GetVolumeByID(id int) (*model.TenantServiceVolume, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetVolumeByID", id)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceVolume)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVolumeByID indicates an expected call of GetVolumeByID
|
|
|
|
func (mr *MockTenantServiceVolumeDaoMockRecorder) GetVolumeByID(id interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVolumeByID", reflect.TypeOf((*MockTenantServiceVolumeDao)(nil).GetVolumeByID), id)
|
|
|
|
}
|
|
|
|
|
|
|
|
// DelShareableBySID mocks base method
|
|
|
|
func (m *MockTenantServiceVolumeDao) DelShareableBySID(sid string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelShareableBySID", sid)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// DelShareableBySID indicates an expected call of DelShareableBySID
|
|
|
|
func (mr *MockTenantServiceVolumeDaoMockRecorder) DelShareableBySID(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelShareableBySID", reflect.TypeOf((*MockTenantServiceVolumeDao)(nil).DelShareableBySID), sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceConfigFileDao is a mock of TenantServiceConfigFileDao interface
|
2019-02-15 17:20:08 +08:00
|
|
|
type MockTenantServiceConfigFileDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServiceConfigFileDaoMockRecorder
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceConfigFileDaoMockRecorder is the mock recorder for MockTenantServiceConfigFileDao
|
|
|
|
type MockTenantServiceConfigFileDaoMockRecorder struct {
|
2019-02-15 17:20:08 +08:00
|
|
|
mock *MockTenantServiceConfigFileDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServiceConfigFileDao creates a new mock instance
|
2019-02-15 17:20:08 +08:00
|
|
|
func NewMockTenantServiceConfigFileDao(ctrl *gomock.Controller) *MockTenantServiceConfigFileDao {
|
|
|
|
mock := &MockTenantServiceConfigFileDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServiceConfigFileDaoMockRecorder{mock}
|
2019-02-15 17:20:08 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServiceConfigFileDao) EXPECT() *MockTenantServiceConfigFileDaoMockRecorder {
|
|
|
|
return m.recorder
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServiceConfigFileDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServiceConfigFileDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServiceConfigFileDao)(nil).AddModel), arg0)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServiceConfigFileDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServiceConfigFileDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServiceConfigFileDao)(nil).UpdateModel), arg0)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetByVolumeName mocks base method
|
|
|
|
func (m *MockTenantServiceConfigFileDao) GetByVolumeName(sid, volumeName string) (*model.TenantServiceConfigFile, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetByVolumeName", sid, volumeName)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceConfigFile)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetByVolumeName indicates an expected call of GetByVolumeName
|
|
|
|
func (mr *MockTenantServiceConfigFileDaoMockRecorder) GetByVolumeName(sid, volumeName interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByVolumeName", reflect.TypeOf((*MockTenantServiceConfigFileDao)(nil).GetByVolumeName), sid, volumeName)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByVolumeID mocks base method
|
|
|
|
func (m *MockTenantServiceConfigFileDao) DelByVolumeID(sid, volumeName string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelByVolumeID", sid, volumeName)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByVolumeID indicates an expected call of DelByVolumeID
|
|
|
|
func (mr *MockTenantServiceConfigFileDaoMockRecorder) DelByVolumeID(sid, volumeName interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelByVolumeID", reflect.TypeOf((*MockTenantServiceConfigFileDao)(nil).DelByVolumeID), sid, volumeName)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceConfigFileDao) DelByServiceID(sid string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelByServiceID", sid)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByServiceID indicates an expected call of DelByServiceID
|
|
|
|
func (mr *MockTenantServiceConfigFileDaoMockRecorder) DelByServiceID(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelByServiceID", reflect.TypeOf((*MockTenantServiceConfigFileDao)(nil).DelByServiceID), sid)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceLBMappingPortDao is a mock of TenantServiceLBMappingPortDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServiceLBMappingPortDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServiceLBMappingPortDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceLBMappingPortDaoMockRecorder is the mock recorder for MockTenantServiceLBMappingPortDao
|
|
|
|
type MockTenantServiceLBMappingPortDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServiceLBMappingPortDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServiceLBMappingPortDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServiceLBMappingPortDao(ctrl *gomock.Controller) *MockTenantServiceLBMappingPortDao {
|
|
|
|
mock := &MockTenantServiceLBMappingPortDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServiceLBMappingPortDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) EXPECT() *MockTenantServiceLBMappingPortDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceLBMappingPort mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) GetTenantServiceLBMappingPort(serviceID string, containerPort int) (*model.TenantServiceLBMappingPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServiceLBMappingPort", serviceID, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceLBMappingPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceLBMappingPort indicates an expected call of GetTenantServiceLBMappingPort
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) GetTenantServiceLBMappingPort(serviceID, containerPort interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServiceLBMappingPort", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).GetTenantServiceLBMappingPort), serviceID, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLBMappingPortByServiceIDAndPort mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) GetLBMappingPortByServiceIDAndPort(serviceID string, port int) (*model.TenantServiceLBMappingPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetLBMappingPortByServiceIDAndPort", serviceID, port)
|
2018-12-18 16:58:13 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceLBMappingPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLBMappingPortByServiceIDAndPort indicates an expected call of GetLBMappingPortByServiceIDAndPort
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) GetLBMappingPortByServiceIDAndPort(serviceID, port interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLBMappingPortByServiceIDAndPort", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).GetLBMappingPortByServiceIDAndPort), serviceID, port)
|
2018-12-18 16:58:13 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceLBMappingPortByService mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) GetTenantServiceLBMappingPortByService(serviceID string) ([]*model.TenantServiceLBMappingPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServiceLBMappingPortByService", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceLBMappingPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceLBMappingPortByService indicates an expected call of GetTenantServiceLBMappingPortByService
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) GetTenantServiceLBMappingPortByService(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServiceLBMappingPortByService", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).GetTenantServiceLBMappingPortByService), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLBPortsASC mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) GetLBPortsASC() ([]*model.TenantServiceLBMappingPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetLBPortsASC")
|
2018-11-26 02:19:08 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceLBMappingPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLBPortsASC indicates an expected call of GetLBPortsASC
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) GetLBPortsASC() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLBPortsASC", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).GetLBPortsASC))
|
2018-11-26 02:19:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// CreateTenantServiceLBMappingPort mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) CreateTenantServiceLBMappingPort(serviceID string, containerPort int) (*model.TenantServiceLBMappingPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "CreateTenantServiceLBMappingPort", serviceID, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceLBMappingPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// CreateTenantServiceLBMappingPort indicates an expected call of CreateTenantServiceLBMappingPort
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) CreateTenantServiceLBMappingPort(serviceID, containerPort interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTenantServiceLBMappingPort", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).CreateTenantServiceLBMappingPort), serviceID, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELServiceLBMappingPortByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) DELServiceLBMappingPortByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DELServiceLBMappingPortByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELServiceLBMappingPortByServiceID indicates an expected call of DELServiceLBMappingPortByServiceID
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) DELServiceLBMappingPortByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DELServiceLBMappingPortByServiceID", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).DELServiceLBMappingPortByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELServiceLBMappingPortByServiceIDAndPort mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) DELServiceLBMappingPortByServiceIDAndPort(serviceID string, lbPort int) error {
|
|
|
|
ret := m.ctrl.Call(m, "DELServiceLBMappingPortByServiceIDAndPort", serviceID, lbPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELServiceLBMappingPortByServiceIDAndPort indicates an expected call of DELServiceLBMappingPortByServiceIDAndPort
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) DELServiceLBMappingPortByServiceIDAndPort(serviceID, lbPort interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DELServiceLBMappingPortByServiceIDAndPort", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).DELServiceLBMappingPortByServiceIDAndPort), serviceID, lbPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLBPortByTenantAndPort mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) GetLBPortByTenantAndPort(tenantID string, lbport int) (*model.TenantServiceLBMappingPort, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetLBPortByTenantAndPort", tenantID, lbport)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceLBMappingPort)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLBPortByTenantAndPort indicates an expected call of GetLBPortByTenantAndPort
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) GetLBPortByTenantAndPort(tenantID, lbport interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLBPortByTenantAndPort", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).GetLBPortByTenantAndPort), tenantID, lbport)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// PortExists mocks base method
|
|
|
|
func (m *MockTenantServiceLBMappingPortDao) PortExists(port int) bool {
|
|
|
|
ret := m.ctrl.Call(m, "PortExists", port)
|
2018-12-18 16:58:13 +08:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// PortExists indicates an expected call of PortExists
|
|
|
|
func (mr *MockTenantServiceLBMappingPortDaoMockRecorder) PortExists(port interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PortExists", reflect.TypeOf((*MockTenantServiceLBMappingPortDao)(nil).PortExists), port)
|
2018-12-18 16:58:13 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceLabelDao is a mock of TenantServiceLabelDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockTenantServiceLabelDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTenantServiceLabelDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTenantServiceLabelDaoMockRecorder is the mock recorder for MockTenantServiceLabelDao
|
|
|
|
type MockTenantServiceLabelDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockTenantServiceLabelDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTenantServiceLabelDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockTenantServiceLabelDao(ctrl *gomock.Controller) *MockTenantServiceLabelDao {
|
|
|
|
mock := &MockTenantServiceLabelDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTenantServiceLabelDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServiceLabelDao) EXPECT() *MockTenantServiceLabelDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) DeleteModel(serviceID string, arg ...interface{}) error {
|
|
|
|
varargs := []interface{}{serviceID}
|
|
|
|
for _, a := range arg {
|
|
|
|
varargs = append(varargs, a)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
2019-08-25 22:19:27 +08:00
|
|
|
ret := m.ctrl.Call(m, "DeleteModel", varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel indicates an expected call of DeleteModel
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) DeleteModel(serviceID interface{}, arg ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{serviceID}, arg...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModel", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).DeleteModel), varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceLabel mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) GetTenantServiceLabel(serviceID string) ([]*model.TenantServiceLable, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServiceLabel", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceLable)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceLabel indicates an expected call of GetTenantServiceLabel
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) GetTenantServiceLabel(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServiceLabel", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).GetTenantServiceLabel), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteLabelByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) DeleteLabelByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteLabelByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteLabelByServiceID indicates an expected call of DeleteLabelByServiceID
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) DeleteLabelByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLabelByServiceID", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).DeleteLabelByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceNodeSelectorLabel mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) GetTenantServiceNodeSelectorLabel(serviceID string) ([]*model.TenantServiceLable, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServiceNodeSelectorLabel", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceLable)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceNodeSelectorLabel indicates an expected call of GetTenantServiceNodeSelectorLabel
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) GetTenantServiceNodeSelectorLabel(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServiceNodeSelectorLabel", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).GetTenantServiceNodeSelectorLabel), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantNodeAffinityLabel mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) GetTenantNodeAffinityLabel(serviceID string) (*model.TenantServiceLable, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantNodeAffinityLabel", serviceID)
|
2018-12-18 16:58:13 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceLable)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantNodeAffinityLabel indicates an expected call of GetTenantNodeAffinityLabel
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) GetTenantNodeAffinityLabel(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantNodeAffinityLabel", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).GetTenantNodeAffinityLabel), serviceID)
|
2018-12-18 16:58:13 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceAffinityLabel mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) GetTenantServiceAffinityLabel(serviceID string) ([]*model.TenantServiceLable, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServiceAffinityLabel", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceLable)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceAffinityLabel indicates an expected call of GetTenantServiceAffinityLabel
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) GetTenantServiceAffinityLabel(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServiceAffinityLabel", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).GetTenantServiceAffinityLabel), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceTypeLabel mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) GetTenantServiceTypeLabel(serviceID string) (*model.TenantServiceLable, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTenantServiceTypeLabel", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceLable)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTenantServiceTypeLabel indicates an expected call of GetTenantServiceTypeLabel
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) GetTenantServiceTypeLabel(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenantServiceTypeLabel", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).GetTenantServiceTypeLabel), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelTenantServiceLabelsByLabelValuesAndServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) DelTenantServiceLabelsByLabelValuesAndServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelTenantServiceLabelsByLabelValuesAndServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelTenantServiceLabelsByLabelValuesAndServiceID indicates an expected call of DelTenantServiceLabelsByLabelValuesAndServiceID
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) DelTenantServiceLabelsByLabelValuesAndServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelTenantServiceLabelsByLabelValuesAndServiceID", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).DelTenantServiceLabelsByLabelValuesAndServiceID), serviceID)
|
2018-12-18 16:58:13 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelTenantServiceLabelsByServiceIDKey mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) DelTenantServiceLabelsByServiceIDKey(serviceID, labelKey string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelTenantServiceLabelsByServiceIDKey", serviceID, labelKey)
|
2018-12-18 16:58:13 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelTenantServiceLabelsByServiceIDKey indicates an expected call of DelTenantServiceLabelsByServiceIDKey
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) DelTenantServiceLabelsByServiceIDKey(serviceID, labelKey interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelTenantServiceLabelsByServiceIDKey", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).DelTenantServiceLabelsByServiceIDKey), serviceID, labelKey)
|
2018-12-18 16:58:13 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelTenantServiceLabelsByServiceIDKeyValue mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) DelTenantServiceLabelsByServiceIDKeyValue(serviceID, labelKey, labelValue string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelTenantServiceLabelsByServiceIDKeyValue", serviceID, labelKey, labelValue)
|
2018-12-18 16:58:13 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelTenantServiceLabelsByServiceIDKeyValue indicates an expected call of DelTenantServiceLabelsByServiceIDKeyValue
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) DelTenantServiceLabelsByServiceIDKeyValue(serviceID, labelKey, labelValue interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelTenantServiceLabelsByServiceIDKeyValue", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).DelTenantServiceLabelsByServiceIDKeyValue), serviceID, labelKey, labelValue)
|
2018-12-18 16:58:13 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLabelByNodeSelectorKey mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) GetLabelByNodeSelectorKey(serviceID, labelValue string) (*model.TenantServiceLable, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetLabelByNodeSelectorKey", serviceID, labelValue)
|
2018-12-18 16:58:13 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceLable)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLabelByNodeSelectorKey indicates an expected call of GetLabelByNodeSelectorKey
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) GetLabelByNodeSelectorKey(serviceID, labelValue interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLabelByNodeSelectorKey", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).GetLabelByNodeSelectorKey), serviceID, labelValue)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2020-02-25 17:25:26 +08:00
|
|
|
// GetPrivilegedLabel mocks base method
|
|
|
|
func (m *MockTenantServiceLabelDao) GetPrivilegedLabel(serviceID string) (*model.TenantServiceLable, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPrivilegedLabel", serviceID)
|
|
|
|
ret0, _ := ret[0].(*model.TenantServiceLable)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetPrivilegedLabel indicates an expected call of GetPrivilegedLabel
|
|
|
|
func (mr *MockTenantServiceLabelDaoMockRecorder) GetPrivilegedLabel(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPrivilegedLabel", reflect.TypeOf((*MockTenantServiceLabelDao)(nil).GetPrivilegedLabel), serviceID)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockLocalSchedulerDao is a mock of LocalSchedulerDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockLocalSchedulerDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockLocalSchedulerDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockLocalSchedulerDaoMockRecorder is the mock recorder for MockLocalSchedulerDao
|
|
|
|
type MockLocalSchedulerDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockLocalSchedulerDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockLocalSchedulerDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockLocalSchedulerDao(ctrl *gomock.Controller) *MockLocalSchedulerDao {
|
|
|
|
mock := &MockLocalSchedulerDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockLocalSchedulerDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockLocalSchedulerDao) EXPECT() *MockLocalSchedulerDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockLocalSchedulerDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockLocalSchedulerDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockLocalSchedulerDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockLocalSchedulerDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockLocalSchedulerDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockLocalSchedulerDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLocalScheduler mocks base method
|
|
|
|
func (m *MockLocalSchedulerDao) GetLocalScheduler(serviceID string) ([]*model.LocalScheduler, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetLocalScheduler", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.LocalScheduler)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetLocalScheduler indicates an expected call of GetLocalScheduler
|
|
|
|
func (mr *MockLocalSchedulerDaoMockRecorder) GetLocalScheduler(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLocalScheduler", reflect.TypeOf((*MockLocalSchedulerDao)(nil).GetLocalScheduler), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockServiceProbeDao is a mock of ServiceProbeDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockServiceProbeDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockServiceProbeDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockServiceProbeDaoMockRecorder is the mock recorder for MockServiceProbeDao
|
|
|
|
type MockServiceProbeDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockServiceProbeDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockServiceProbeDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockServiceProbeDao(ctrl *gomock.Controller) *MockServiceProbeDao {
|
|
|
|
mock := &MockServiceProbeDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockServiceProbeDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockServiceProbeDao) EXPECT() *MockServiceProbeDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockServiceProbeDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockServiceProbeDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockServiceProbeDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockServiceProbeDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockServiceProbeDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockServiceProbeDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel mocks base method
|
|
|
|
func (m *MockServiceProbeDao) DeleteModel(serviceID string, arg ...interface{}) error {
|
|
|
|
varargs := []interface{}{serviceID}
|
|
|
|
for _, a := range arg {
|
|
|
|
varargs = append(varargs, a)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
2019-08-25 22:19:27 +08:00
|
|
|
ret := m.ctrl.Call(m, "DeleteModel", varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteModel indicates an expected call of DeleteModel
|
|
|
|
func (mr *MockServiceProbeDaoMockRecorder) DeleteModel(serviceID interface{}, arg ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{serviceID}, arg...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModel", reflect.TypeOf((*MockServiceProbeDao)(nil).DeleteModel), varargs...)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceProbes mocks base method
|
|
|
|
func (m *MockServiceProbeDao) GetServiceProbes(serviceID string) ([]*model.TenantServiceProbe, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceProbes", serviceID)
|
2018-11-22 14:33:29 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceProbe)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceProbes indicates an expected call of GetServiceProbes
|
|
|
|
func (mr *MockServiceProbeDaoMockRecorder) GetServiceProbes(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceProbes", reflect.TypeOf((*MockServiceProbeDao)(nil).GetServiceProbes), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceUsedProbe mocks base method
|
|
|
|
func (m *MockServiceProbeDao) GetServiceUsedProbe(serviceID, mode string) (*model.TenantServiceProbe, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceUsedProbe", serviceID, mode)
|
2018-11-22 14:33:29 +08:00
|
|
|
ret0, _ := ret[0].(*model.TenantServiceProbe)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceUsedProbe indicates an expected call of GetServiceUsedProbe
|
|
|
|
func (mr *MockServiceProbeDaoMockRecorder) GetServiceUsedProbe(serviceID, mode interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceUsedProbe", reflect.TypeOf((*MockServiceProbeDao)(nil).GetServiceUsedProbe), serviceID, mode)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELServiceProbesByServiceID mocks base method
|
|
|
|
func (m *MockServiceProbeDao) DELServiceProbesByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DELServiceProbesByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DELServiceProbesByServiceID indicates an expected call of DELServiceProbesByServiceID
|
|
|
|
func (mr *MockServiceProbeDaoMockRecorder) DELServiceProbesByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DELServiceProbesByServiceID", reflect.TypeOf((*MockServiceProbeDao)(nil).DELServiceProbesByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByServiceID mocks base method
|
|
|
|
func (m *MockServiceProbeDao) DelByServiceID(sid string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelByServiceID", sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByServiceID indicates an expected call of DelByServiceID
|
|
|
|
func (mr *MockServiceProbeDaoMockRecorder) DelByServiceID(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelByServiceID", reflect.TypeOf((*MockServiceProbeDao)(nil).DelByServiceID), sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockCodeCheckResultDao is a mock of CodeCheckResultDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockCodeCheckResultDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockCodeCheckResultDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockCodeCheckResultDaoMockRecorder is the mock recorder for MockCodeCheckResultDao
|
|
|
|
type MockCodeCheckResultDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockCodeCheckResultDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockCodeCheckResultDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockCodeCheckResultDao(ctrl *gomock.Controller) *MockCodeCheckResultDao {
|
|
|
|
mock := &MockCodeCheckResultDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockCodeCheckResultDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockCodeCheckResultDao) EXPECT() *MockCodeCheckResultDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockCodeCheckResultDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockCodeCheckResultDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockCodeCheckResultDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockCodeCheckResultDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockCodeCheckResultDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockCodeCheckResultDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetCodeCheckResult mocks base method
|
|
|
|
func (m *MockCodeCheckResultDao) GetCodeCheckResult(serviceID string) (*model.CodeCheckResult, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetCodeCheckResult", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.CodeCheckResult)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetCodeCheckResult indicates an expected call of GetCodeCheckResult
|
|
|
|
func (mr *MockCodeCheckResultDaoMockRecorder) GetCodeCheckResult(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCodeCheckResult", reflect.TypeOf((*MockCodeCheckResultDao)(nil).GetCodeCheckResult), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-10-29 18:36:15 +08:00
|
|
|
// DeleteByServiceID mocks base method
|
|
|
|
func (m *MockCodeCheckResultDao) DeleteByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteByServiceID", serviceID)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteByServiceID indicates an expected call of DeleteByServiceID
|
|
|
|
func (mr *MockCodeCheckResultDaoMockRecorder) DeleteByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByServiceID", reflect.TypeOf((*MockCodeCheckResultDao)(nil).DeleteByServiceID), serviceID)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockEventDao is a mock of EventDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockEventDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockEventDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockEventDaoMockRecorder is the mock recorder for MockEventDao
|
|
|
|
type MockEventDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockEventDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockEventDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockEventDao(ctrl *gomock.Controller) *MockEventDao {
|
|
|
|
mock := &MockEventDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockEventDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockEventDao) EXPECT() *MockEventDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockEventDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockEventDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockEventDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockEventDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockEventDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockEventDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetEventByEventID mocks base method
|
|
|
|
func (m *MockEventDao) GetEventByEventID(eventID string) (*model.ServiceEvent, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetEventByEventID", eventID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.ServiceEvent)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetEventByEventID indicates an expected call of GetEventByEventID
|
|
|
|
func (mr *MockEventDaoMockRecorder) GetEventByEventID(eventID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventByEventID", reflect.TypeOf((*MockEventDao)(nil).GetEventByEventID), eventID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetEventByEventIDs mocks base method
|
|
|
|
func (m *MockEventDao) GetEventByEventIDs(eventIDs []string) ([]*model.ServiceEvent, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetEventByEventIDs", eventIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.ServiceEvent)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetEventByEventIDs indicates an expected call of GetEventByEventIDs
|
|
|
|
func (mr *MockEventDaoMockRecorder) GetEventByEventIDs(eventIDs interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventByEventIDs", reflect.TypeOf((*MockEventDao)(nil).GetEventByEventIDs), eventIDs)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetEventByServiceID mocks base method
|
|
|
|
func (m *MockEventDao) GetEventByServiceID(serviceID string) ([]*model.ServiceEvent, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetEventByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.ServiceEvent)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetEventByServiceID indicates an expected call of GetEventByServiceID
|
|
|
|
func (mr *MockEventDaoMockRecorder) GetEventByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventByServiceID", reflect.TypeOf((*MockEventDao)(nil).GetEventByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelEventByServiceID mocks base method
|
|
|
|
func (m *MockEventDao) DelEventByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelEventByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelEventByServiceID indicates an expected call of DelEventByServiceID
|
|
|
|
func (mr *MockEventDaoMockRecorder) DelEventByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelEventByServiceID", reflect.TypeOf((*MockEventDao)(nil).DelEventByServiceID), serviceID)
|
|
|
|
}
|
|
|
|
|
2019-10-30 10:23:28 +08:00
|
|
|
// ListByTargetID mocks base method
|
|
|
|
func (m *MockEventDao) ListByTargetID(targetID string) ([]*model.ServiceEvent, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByTargetID", targetID)
|
|
|
|
ret0, _ := ret[0].([]*model.ServiceEvent)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByTargetID indicates an expected call of ListByTargetID
|
|
|
|
func (mr *MockEventDaoMockRecorder) ListByTargetID(targetID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByTargetID", reflect.TypeOf((*MockEventDao)(nil).ListByTargetID), targetID)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetEventsByTarget mocks base method
|
|
|
|
func (m *MockEventDao) GetEventsByTarget(target, targetID string, offset, liimt int) ([]*model.ServiceEvent, int, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetEventsByTarget", target, targetID, offset, liimt)
|
|
|
|
ret0, _ := ret[0].([]*model.ServiceEvent)
|
|
|
|
ret1, _ := ret[1].(int)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetEventsByTarget indicates an expected call of GetEventsByTarget
|
|
|
|
func (mr *MockEventDaoMockRecorder) GetEventsByTarget(target, targetID, offset, liimt interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventsByTarget", reflect.TypeOf((*MockEventDao)(nil).GetEventsByTarget), target, targetID, offset, liimt)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetEventsByTenantID mocks base method
|
|
|
|
func (m *MockEventDao) GetEventsByTenantID(tenantID string, offset, limit int) ([]*model.ServiceEvent, int, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetEventsByTenantID", tenantID, offset, limit)
|
|
|
|
ret0, _ := ret[0].([]*model.ServiceEvent)
|
|
|
|
ret1, _ := ret[1].(int)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetEventsByTenantID indicates an expected call of GetEventsByTenantID
|
|
|
|
func (mr *MockEventDaoMockRecorder) GetEventsByTenantID(tenantID, offset, limit interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventsByTenantID", reflect.TypeOf((*MockEventDao)(nil).GetEventsByTenantID), tenantID, offset, limit)
|
|
|
|
}
|
|
|
|
|
2019-08-29 14:15:46 +08:00
|
|
|
// GetLastASyncEvent mocks base method
|
|
|
|
func (m *MockEventDao) GetLastASyncEvent(target, targetID string) (*model.ServiceEvent, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetLastASyncEvent", target, targetID)
|
2019-08-25 22:19:27 +08:00
|
|
|
ret0, _ := ret[0].(*model.ServiceEvent)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-29 14:15:46 +08:00
|
|
|
// GetLastASyncEvent indicates an expected call of GetLastASyncEvent
|
|
|
|
func (mr *MockEventDaoMockRecorder) GetLastASyncEvent(target, targetID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastASyncEvent", reflect.TypeOf((*MockEventDao)(nil).GetLastASyncEvent), target, targetID)
|
2019-08-25 22:19:27 +08:00
|
|
|
}
|
|
|
|
|
2019-08-29 14:15:46 +08:00
|
|
|
// UnfinishedEvents mocks base method
|
|
|
|
func (m *MockEventDao) UnfinishedEvents(target, targetID string, optTypes ...string) ([]*model.ServiceEvent, error) {
|
|
|
|
varargs := []interface{}{target, targetID}
|
2019-08-25 22:19:27 +08:00
|
|
|
for _, a := range optTypes {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
2019-08-29 14:15:46 +08:00
|
|
|
ret := m.ctrl.Call(m, "UnfinishedEvents", varargs...)
|
|
|
|
ret0, _ := ret[0].([]*model.ServiceEvent)
|
2019-08-25 22:19:27 +08:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-29 14:15:46 +08:00
|
|
|
// UnfinishedEvents indicates an expected call of UnfinishedEvents
|
|
|
|
func (mr *MockEventDaoMockRecorder) UnfinishedEvents(target, targetID interface{}, optTypes ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{target, targetID}, optTypes...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnfinishedEvents", reflect.TypeOf((*MockEventDao)(nil).UnfinishedEvents), varargs...)
|
2019-08-25 22:19:27 +08:00
|
|
|
}
|
|
|
|
|
2019-09-18 17:56:52 +08:00
|
|
|
// LatestFailurePodEvent mocks base method
|
|
|
|
func (m *MockEventDao) LatestFailurePodEvent(podName string) (*model.ServiceEvent, error) {
|
|
|
|
ret := m.ctrl.Call(m, "LatestFailurePodEvent", podName)
|
2019-08-25 22:19:27 +08:00
|
|
|
ret0, _ := ret[0].(*model.ServiceEvent)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-18 17:56:52 +08:00
|
|
|
// LatestFailurePodEvent indicates an expected call of LatestFailurePodEvent
|
|
|
|
func (mr *MockEventDaoMockRecorder) LatestFailurePodEvent(podName interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestFailurePodEvent", reflect.TypeOf((*MockEventDao)(nil).LatestFailurePodEvent), podName)
|
2019-08-25 22:19:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// MockVersionInfoDao is a mock of VersionInfoDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockVersionInfoDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockVersionInfoDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockVersionInfoDaoMockRecorder is the mock recorder for MockVersionInfoDao
|
|
|
|
type MockVersionInfoDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockVersionInfoDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockVersionInfoDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockVersionInfoDao(ctrl *gomock.Controller) *MockVersionInfoDao {
|
|
|
|
mock := &MockVersionInfoDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockVersionInfoDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockVersionInfoDao) EXPECT() *MockVersionInfoDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockVersionInfoDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockVersionInfoDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockVersionInfoDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockVersionInfoDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-12-12 17:40:40 +08:00
|
|
|
// ListSuccessfulOnes mocks base method
|
|
|
|
func (m *MockVersionInfoDao) ListSuccessfulOnes() ([]*model.VersionInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListSuccessfulOnes")
|
|
|
|
ret0, _ := ret[0].([]*model.VersionInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListSuccessfulOnes indicates an expected call of ListSuccessfulOnes
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) ListSuccessfulOnes() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSuccessfulOnes", reflect.TypeOf((*MockVersionInfoDao)(nil).ListSuccessfulOnes))
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionByEventID mocks base method
|
|
|
|
func (m *MockVersionInfoDao) GetVersionByEventID(eventID string) (*model.VersionInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetVersionByEventID", eventID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.VersionInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionByEventID indicates an expected call of GetVersionByEventID
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) GetVersionByEventID(eventID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVersionByEventID", reflect.TypeOf((*MockVersionInfoDao)(nil).GetVersionByEventID), eventID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionByDeployVersion mocks base method
|
|
|
|
func (m *MockVersionInfoDao) GetVersionByDeployVersion(version, serviceID string) (*model.VersionInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetVersionByDeployVersion", version, serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.VersionInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionByDeployVersion indicates an expected call of GetVersionByDeployVersion
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) GetVersionByDeployVersion(version, serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVersionByDeployVersion", reflect.TypeOf((*MockVersionInfoDao)(nil).GetVersionByDeployVersion), version, serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionByServiceID mocks base method
|
|
|
|
func (m *MockVersionInfoDao) GetVersionByServiceID(serviceID string) ([]*model.VersionInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetVersionByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.VersionInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionByServiceID indicates an expected call of GetVersionByServiceID
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) GetVersionByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVersionByServiceID", reflect.TypeOf((*MockVersionInfoDao)(nil).GetVersionByServiceID), serviceID)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetLatestScsVersion mocks base method
|
|
|
|
func (m *MockVersionInfoDao) GetLatestScsVersion(sid string) (*model.VersionInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetLatestScsVersion", sid)
|
|
|
|
ret0, _ := ret[0].(*model.VersionInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetLatestScsVersion indicates an expected call of GetLatestScsVersion
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) GetLatestScsVersion(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestScsVersion", reflect.TypeOf((*MockVersionInfoDao)(nil).GetLatestScsVersion), sid)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAllVersionByServiceID mocks base method
|
|
|
|
func (m *MockVersionInfoDao) GetAllVersionByServiceID(serviceID string) ([]*model.VersionInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetAllVersionByServiceID", serviceID)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].([]*model.VersionInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAllVersionByServiceID indicates an expected call of GetAllVersionByServiceID
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) GetAllVersionByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllVersionByServiceID", reflect.TypeOf((*MockVersionInfoDao)(nil).GetAllVersionByServiceID), serviceID)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteVersionByEventID mocks base method
|
|
|
|
func (m *MockVersionInfoDao) DeleteVersionByEventID(eventID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteVersionByEventID", eventID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteVersionByEventID indicates an expected call of DeleteVersionByEventID
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) DeleteVersionByEventID(eventID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVersionByEventID", reflect.TypeOf((*MockVersionInfoDao)(nil).DeleteVersionByEventID), eventID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteVersionByServiceID mocks base method
|
|
|
|
func (m *MockVersionInfoDao) DeleteVersionByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteVersionByServiceID", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteVersionByServiceID indicates an expected call of DeleteVersionByServiceID
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) DeleteVersionByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVersionByServiceID", reflect.TypeOf((*MockVersionInfoDao)(nil).DeleteVersionByServiceID), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionInfo mocks base method
|
|
|
|
func (m *MockVersionInfoDao) GetVersionInfo(timePoint time.Time, serviceIDList []string) ([]*model.VersionInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetVersionInfo", timePoint, serviceIDList)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.VersionInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetVersionInfo indicates an expected call of GetVersionInfo
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) GetVersionInfo(timePoint, serviceIDList interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVersionInfo", reflect.TypeOf((*MockVersionInfoDao)(nil).GetVersionInfo), timePoint, serviceIDList)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteVersionInfo mocks base method
|
|
|
|
func (m *MockVersionInfoDao) DeleteVersionInfo(obj *model.VersionInfo) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteVersionInfo", obj)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteVersionInfo indicates an expected call of DeleteVersionInfo
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) DeleteVersionInfo(obj interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVersionInfo", reflect.TypeOf((*MockVersionInfoDao)(nil).DeleteVersionInfo), obj)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteFailureVersionInfo mocks base method
|
|
|
|
func (m *MockVersionInfoDao) DeleteFailureVersionInfo(timePoint time.Time, status string, serviceIDList []string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteFailureVersionInfo", timePoint, status, serviceIDList)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteFailureVersionInfo indicates an expected call of DeleteFailureVersionInfo
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) DeleteFailureVersionInfo(timePoint, status, serviceIDList interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFailureVersionInfo", reflect.TypeOf((*MockVersionInfoDao)(nil).DeleteFailureVersionInfo), timePoint, status, serviceIDList)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// SearchVersionInfo mocks base method
|
|
|
|
func (m *MockVersionInfoDao) SearchVersionInfo() ([]*model.VersionInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "SearchVersionInfo")
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.VersionInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// SearchVersionInfo indicates an expected call of SearchVersionInfo
|
|
|
|
func (mr *MockVersionInfoDaoMockRecorder) SearchVersionInfo() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchVersionInfo", reflect.TypeOf((*MockVersionInfoDao)(nil).SearchVersionInfo))
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockRegionUserInfoDao is a mock of RegionUserInfoDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockRegionUserInfoDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockRegionUserInfoDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockRegionUserInfoDaoMockRecorder is the mock recorder for MockRegionUserInfoDao
|
|
|
|
type MockRegionUserInfoDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockRegionUserInfoDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockRegionUserInfoDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockRegionUserInfoDao(ctrl *gomock.Controller) *MockRegionUserInfoDao {
|
|
|
|
mock := &MockRegionUserInfoDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockRegionUserInfoDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockRegionUserInfoDao) EXPECT() *MockRegionUserInfoDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockRegionUserInfoDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockRegionUserInfoDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockRegionUserInfoDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockRegionUserInfoDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockRegionUserInfoDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockRegionUserInfoDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetALLTokenInValidityPeriod mocks base method
|
|
|
|
func (m *MockRegionUserInfoDao) GetALLTokenInValidityPeriod() ([]*model.RegionUserInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetALLTokenInValidityPeriod")
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.RegionUserInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetALLTokenInValidityPeriod indicates an expected call of GetALLTokenInValidityPeriod
|
|
|
|
func (mr *MockRegionUserInfoDaoMockRecorder) GetALLTokenInValidityPeriod() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetALLTokenInValidityPeriod", reflect.TypeOf((*MockRegionUserInfoDao)(nil).GetALLTokenInValidityPeriod))
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTokenByEid mocks base method
|
|
|
|
func (m *MockRegionUserInfoDao) GetTokenByEid(eid string) (*model.RegionUserInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTokenByEid", eid)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.RegionUserInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTokenByEid indicates an expected call of GetTokenByEid
|
|
|
|
func (mr *MockRegionUserInfoDaoMockRecorder) GetTokenByEid(eid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTokenByEid", reflect.TypeOf((*MockRegionUserInfoDao)(nil).GetTokenByEid), eid)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTokenByTokenID mocks base method
|
|
|
|
func (m *MockRegionUserInfoDao) GetTokenByTokenID(token string) (*model.RegionUserInfo, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTokenByTokenID", token)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.RegionUserInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTokenByTokenID indicates an expected call of GetTokenByTokenID
|
|
|
|
func (mr *MockRegionUserInfoDaoMockRecorder) GetTokenByTokenID(token interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTokenByTokenID", reflect.TypeOf((*MockRegionUserInfoDao)(nil).GetTokenByTokenID), token)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockRegionAPIClassDao is a mock of RegionAPIClassDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockRegionAPIClassDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockRegionAPIClassDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockRegionAPIClassDaoMockRecorder is the mock recorder for MockRegionAPIClassDao
|
|
|
|
type MockRegionAPIClassDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockRegionAPIClassDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockRegionAPIClassDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockRegionAPIClassDao(ctrl *gomock.Controller) *MockRegionAPIClassDao {
|
|
|
|
mock := &MockRegionAPIClassDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockRegionAPIClassDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockRegionAPIClassDao) EXPECT() *MockRegionAPIClassDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockRegionAPIClassDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockRegionAPIClassDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockRegionAPIClassDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockRegionAPIClassDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockRegionAPIClassDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockRegionAPIClassDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPrefixesByClass mocks base method
|
|
|
|
func (m *MockRegionAPIClassDao) GetPrefixesByClass(apiClass string) ([]*model.RegionAPIClass, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetPrefixesByClass", apiClass)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.RegionAPIClass)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetPrefixesByClass indicates an expected call of GetPrefixesByClass
|
|
|
|
func (mr *MockRegionAPIClassDaoMockRecorder) GetPrefixesByClass(apiClass interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPrefixesByClass", reflect.TypeOf((*MockRegionAPIClassDao)(nil).GetPrefixesByClass), apiClass)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeletePrefixInClass mocks base method
|
|
|
|
func (m *MockRegionAPIClassDao) DeletePrefixInClass(apiClass, prefix string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeletePrefixInClass", apiClass, prefix)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeletePrefixInClass indicates an expected call of DeletePrefixInClass
|
|
|
|
func (mr *MockRegionAPIClassDaoMockRecorder) DeletePrefixInClass(apiClass, prefix interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePrefixInClass", reflect.TypeOf((*MockRegionAPIClassDao)(nil).DeletePrefixInClass), apiClass, prefix)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockRegionProcotolsDao is a mock of RegionProcotolsDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockRegionProcotolsDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockRegionProcotolsDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockRegionProcotolsDaoMockRecorder is the mock recorder for MockRegionProcotolsDao
|
|
|
|
type MockRegionProcotolsDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockRegionProcotolsDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockRegionProcotolsDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockRegionProcotolsDao(ctrl *gomock.Controller) *MockRegionProcotolsDao {
|
|
|
|
mock := &MockRegionProcotolsDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockRegionProcotolsDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockRegionProcotolsDao) EXPECT() *MockRegionProcotolsDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockRegionProcotolsDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockRegionProcotolsDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockRegionProcotolsDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockRegionProcotolsDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockRegionProcotolsDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockRegionProcotolsDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAllSupportProtocol mocks base method
|
|
|
|
func (m *MockRegionProcotolsDao) GetAllSupportProtocol(version string) ([]*model.RegionProcotols, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetAllSupportProtocol", version)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.RegionProcotols)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAllSupportProtocol indicates an expected call of GetAllSupportProtocol
|
|
|
|
func (mr *MockRegionProcotolsDaoMockRecorder) GetAllSupportProtocol(version interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllSupportProtocol", reflect.TypeOf((*MockRegionProcotolsDao)(nil).GetAllSupportProtocol), version)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetProtocolGroupByProtocolChild mocks base method
|
|
|
|
func (m *MockRegionProcotolsDao) GetProtocolGroupByProtocolChild(version, protocolChild string) (*model.RegionProcotols, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetProtocolGroupByProtocolChild", version, protocolChild)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.RegionProcotols)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetProtocolGroupByProtocolChild indicates an expected call of GetProtocolGroupByProtocolChild
|
|
|
|
func (mr *MockRegionProcotolsDaoMockRecorder) GetProtocolGroupByProtocolChild(version, protocolChild interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProtocolGroupByProtocolChild", reflect.TypeOf((*MockRegionProcotolsDao)(nil).GetProtocolGroupByProtocolChild), version, protocolChild)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockNotificationEventDao is a mock of NotificationEventDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockNotificationEventDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockNotificationEventDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockNotificationEventDaoMockRecorder is the mock recorder for MockNotificationEventDao
|
|
|
|
type MockNotificationEventDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockNotificationEventDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockNotificationEventDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockNotificationEventDao(ctrl *gomock.Controller) *MockNotificationEventDao {
|
|
|
|
mock := &MockNotificationEventDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockNotificationEventDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockNotificationEventDao) EXPECT() *MockNotificationEventDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockNotificationEventDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockNotificationEventDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockNotificationEventDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockNotificationEventDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockNotificationEventDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockNotificationEventDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetNotificationEventByHash mocks base method
|
|
|
|
func (m *MockNotificationEventDao) GetNotificationEventByHash(hash string) (*model.NotificationEvent, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetNotificationEventByHash", hash)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.NotificationEvent)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetNotificationEventByHash indicates an expected call of GetNotificationEventByHash
|
|
|
|
func (mr *MockNotificationEventDaoMockRecorder) GetNotificationEventByHash(hash interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNotificationEventByHash", reflect.TypeOf((*MockNotificationEventDao)(nil).GetNotificationEventByHash), hash)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetNotificationEventByKind mocks base method
|
|
|
|
func (m *MockNotificationEventDao) GetNotificationEventByKind(kind, kindID string) ([]*model.NotificationEvent, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetNotificationEventByKind", kind, kindID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.NotificationEvent)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetNotificationEventByKind indicates an expected call of GetNotificationEventByKind
|
|
|
|
func (mr *MockNotificationEventDaoMockRecorder) GetNotificationEventByKind(kind, kindID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNotificationEventByKind", reflect.TypeOf((*MockNotificationEventDao)(nil).GetNotificationEventByKind), kind, kindID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetNotificationEventByTime mocks base method
|
|
|
|
func (m *MockNotificationEventDao) GetNotificationEventByTime(start, end time.Time) ([]*model.NotificationEvent, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetNotificationEventByTime", start, end)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.NotificationEvent)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetNotificationEventByTime indicates an expected call of GetNotificationEventByTime
|
|
|
|
func (mr *MockNotificationEventDaoMockRecorder) GetNotificationEventByTime(start, end interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNotificationEventByTime", reflect.TypeOf((*MockNotificationEventDao)(nil).GetNotificationEventByTime), start, end)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetNotificationEventNotHandle mocks base method
|
|
|
|
func (m *MockNotificationEventDao) GetNotificationEventNotHandle() ([]*model.NotificationEvent, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetNotificationEventNotHandle")
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.NotificationEvent)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetNotificationEventNotHandle indicates an expected call of GetNotificationEventNotHandle
|
|
|
|
func (mr *MockNotificationEventDaoMockRecorder) GetNotificationEventNotHandle() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNotificationEventNotHandle", reflect.TypeOf((*MockNotificationEventDao)(nil).GetNotificationEventNotHandle))
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockAppBackupDao is a mock of AppBackupDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockAppBackupDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockAppBackupDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockAppBackupDaoMockRecorder is the mock recorder for MockAppBackupDao
|
|
|
|
type MockAppBackupDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockAppBackupDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockAppBackupDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockAppBackupDao(ctrl *gomock.Controller) *MockAppBackupDao {
|
|
|
|
mock := &MockAppBackupDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockAppBackupDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockAppBackupDao) EXPECT() *MockAppBackupDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockAppBackupDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockAppBackupDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockAppBackupDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockAppBackupDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockAppBackupDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockAppBackupDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// CheckHistory mocks base method
|
|
|
|
func (m *MockAppBackupDao) CheckHistory(groupID, version string) bool {
|
|
|
|
ret := m.ctrl.Call(m, "CheckHistory", groupID, version)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// CheckHistory indicates an expected call of CheckHistory
|
|
|
|
func (mr *MockAppBackupDaoMockRecorder) CheckHistory(groupID, version interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckHistory", reflect.TypeOf((*MockAppBackupDao)(nil).CheckHistory), groupID, version)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAppBackups mocks base method
|
|
|
|
func (m *MockAppBackupDao) GetAppBackups(groupID string) ([]*model.AppBackup, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetAppBackups", groupID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.AppBackup)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAppBackups indicates an expected call of GetAppBackups
|
|
|
|
func (mr *MockAppBackupDaoMockRecorder) GetAppBackups(groupID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAppBackups", reflect.TypeOf((*MockAppBackupDao)(nil).GetAppBackups), groupID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteAppBackup mocks base method
|
|
|
|
func (m *MockAppBackupDao) DeleteAppBackup(backupID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteAppBackup", backupID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteAppBackup indicates an expected call of DeleteAppBackup
|
|
|
|
func (mr *MockAppBackupDaoMockRecorder) DeleteAppBackup(backupID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAppBackup", reflect.TypeOf((*MockAppBackupDao)(nil).DeleteAppBackup), backupID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAppBackup mocks base method
|
|
|
|
func (m *MockAppBackupDao) GetAppBackup(backupID string) (*model.AppBackup, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetAppBackup", backupID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.AppBackup)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetAppBackup indicates an expected call of GetAppBackup
|
|
|
|
func (mr *MockAppBackupDaoMockRecorder) GetAppBackup(backupID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAppBackup", reflect.TypeOf((*MockAppBackupDao)(nil).GetAppBackup), backupID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDeleteAppBackup mocks base method
|
|
|
|
func (m *MockAppBackupDao) GetDeleteAppBackup(backupID string) (*model.AppBackup, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetDeleteAppBackup", backupID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.AppBackup)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDeleteAppBackup indicates an expected call of GetDeleteAppBackup
|
|
|
|
func (mr *MockAppBackupDaoMockRecorder) GetDeleteAppBackup(backupID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeleteAppBackup", reflect.TypeOf((*MockAppBackupDao)(nil).GetDeleteAppBackup), backupID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDeleteAppBackups mocks base method
|
|
|
|
func (m *MockAppBackupDao) GetDeleteAppBackups() ([]*model.AppBackup, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetDeleteAppBackups")
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.AppBackup)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetDeleteAppBackups indicates an expected call of GetDeleteAppBackups
|
|
|
|
func (mr *MockAppBackupDaoMockRecorder) GetDeleteAppBackups() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeleteAppBackups", reflect.TypeOf((*MockAppBackupDao)(nil).GetDeleteAppBackups))
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockServiceSourceDao is a mock of ServiceSourceDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockServiceSourceDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockServiceSourceDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockServiceSourceDaoMockRecorder is the mock recorder for MockServiceSourceDao
|
|
|
|
type MockServiceSourceDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockServiceSourceDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockServiceSourceDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockServiceSourceDao(ctrl *gomock.Controller) *MockServiceSourceDao {
|
|
|
|
mock := &MockServiceSourceDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockServiceSourceDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockServiceSourceDao) EXPECT() *MockServiceSourceDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockServiceSourceDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockServiceSourceDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockServiceSourceDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockServiceSourceDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockServiceSourceDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockServiceSourceDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceSource mocks base method
|
|
|
|
func (m *MockServiceSourceDao) GetServiceSource(serviceID string) ([]*model.ServiceSourceConfig, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetServiceSource", serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].([]*model.ServiceSourceConfig)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetServiceSource indicates an expected call of GetServiceSource
|
|
|
|
func (mr *MockServiceSourceDaoMockRecorder) GetServiceSource(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceSource", reflect.TypeOf((*MockServiceSourceDao)(nil).GetServiceSource), serviceID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockCertificateDao is a mock of CertificateDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockCertificateDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockCertificateDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockCertificateDaoMockRecorder is the mock recorder for MockCertificateDao
|
|
|
|
type MockCertificateDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockCertificateDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockCertificateDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockCertificateDao(ctrl *gomock.Controller) *MockCertificateDao {
|
|
|
|
mock := &MockCertificateDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockCertificateDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockCertificateDao) EXPECT() *MockCertificateDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockCertificateDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockCertificateDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockCertificateDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockCertificateDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockCertificateDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockCertificateDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddOrUpdate mocks base method
|
|
|
|
func (m *MockCertificateDao) AddOrUpdate(mo model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddOrUpdate", mo)
|
2018-12-18 16:58:13 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddOrUpdate indicates an expected call of AddOrUpdate
|
|
|
|
func (mr *MockCertificateDaoMockRecorder) AddOrUpdate(mo interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddOrUpdate", reflect.TypeOf((*MockCertificateDao)(nil).AddOrUpdate), mo)
|
2018-12-18 16:58:13 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetCertificateByID mocks base method
|
|
|
|
func (m *MockCertificateDao) GetCertificateByID(certificateID string) (*model.Certificate, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetCertificateByID", certificateID)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(*model.Certificate)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetCertificateByID indicates an expected call of GetCertificateByID
|
|
|
|
func (mr *MockCertificateDaoMockRecorder) GetCertificateByID(certificateID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCertificateByID", reflect.TypeOf((*MockCertificateDao)(nil).GetCertificateByID), certificateID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteCertificateByID mocks base method
|
|
|
|
func (m *MockCertificateDao) DeleteCertificateByID(certificateID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteCertificateByID", certificateID)
|
2018-11-21 18:35:04 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteCertificateByID indicates an expected call of DeleteCertificateByID
|
|
|
|
func (mr *MockCertificateDaoMockRecorder) DeleteCertificateByID(certificateID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCertificateByID", reflect.TypeOf((*MockCertificateDao)(nil).DeleteCertificateByID), certificateID)
|
2018-11-21 18:35:04 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockRuleExtensionDao is a mock of RuleExtensionDao interface
|
2018-11-19 14:09:14 +08:00
|
|
|
type MockRuleExtensionDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockRuleExtensionDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockRuleExtensionDaoMockRecorder is the mock recorder for MockRuleExtensionDao
|
|
|
|
type MockRuleExtensionDaoMockRecorder struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
mock *MockRuleExtensionDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockRuleExtensionDao creates a new mock instance
|
2018-11-19 14:09:14 +08:00
|
|
|
func NewMockRuleExtensionDao(ctrl *gomock.Controller) *MockRuleExtensionDao {
|
|
|
|
mock := &MockRuleExtensionDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockRuleExtensionDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockRuleExtensionDao) EXPECT() *MockRuleExtensionDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockRuleExtensionDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockRuleExtensionDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockRuleExtensionDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockRuleExtensionDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockRuleExtensionDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockRuleExtensionDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetRuleExtensionByRuleID mocks base method
|
|
|
|
func (m *MockRuleExtensionDao) GetRuleExtensionByRuleID(ruleID string) ([]*model.RuleExtension, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetRuleExtensionByRuleID", ruleID)
|
2018-11-19 15:17:44 +08:00
|
|
|
ret0, _ := ret[0].([]*model.RuleExtension)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetRuleExtensionByRuleID indicates an expected call of GetRuleExtensionByRuleID
|
|
|
|
func (mr *MockRuleExtensionDaoMockRecorder) GetRuleExtensionByRuleID(ruleID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRuleExtensionByRuleID", reflect.TypeOf((*MockRuleExtensionDao)(nil).GetRuleExtensionByRuleID), ruleID)
|
2018-11-21 18:35:04 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteRuleExtensionByRuleID mocks base method
|
|
|
|
func (m *MockRuleExtensionDao) DeleteRuleExtensionByRuleID(ruleID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteRuleExtensionByRuleID", ruleID)
|
2018-11-21 18:35:04 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteRuleExtensionByRuleID indicates an expected call of DeleteRuleExtensionByRuleID
|
|
|
|
func (mr *MockRuleExtensionDaoMockRecorder) DeleteRuleExtensionByRuleID(ruleID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRuleExtensionByRuleID", reflect.TypeOf((*MockRuleExtensionDao)(nil).DeleteRuleExtensionByRuleID), ruleID)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockHTTPRuleDao is a mock of HTTPRuleDao interface
|
2018-12-18 16:58:13 +08:00
|
|
|
type MockHTTPRuleDao struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockHTTPRuleDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockHTTPRuleDaoMockRecorder is the mock recorder for MockHTTPRuleDao
|
|
|
|
type MockHTTPRuleDaoMockRecorder struct {
|
2018-12-18 16:58:13 +08:00
|
|
|
mock *MockHTTPRuleDao
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockHTTPRuleDao creates a new mock instance
|
2018-12-18 16:58:13 +08:00
|
|
|
func NewMockHTTPRuleDao(ctrl *gomock.Controller) *MockHTTPRuleDao {
|
|
|
|
mock := &MockHTTPRuleDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockHTTPRuleDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockHTTPRuleDao) EXPECT() *MockHTTPRuleDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockHTTPRuleDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockHTTPRuleDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockHTTPRuleDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockHTTPRuleDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockHTTPRuleDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockHTTPRuleDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetHTTPRuleByID mocks base method
|
|
|
|
func (m *MockHTTPRuleDao) GetHTTPRuleByID(id string) (*model.HTTPRule, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetHTTPRuleByID", id)
|
2018-11-23 20:39:34 +08:00
|
|
|
ret0, _ := ret[0].(*model.HTTPRule)
|
2018-11-22 09:34:00 +08:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetHTTPRuleByID indicates an expected call of GetHTTPRuleByID
|
|
|
|
func (mr *MockHTTPRuleDaoMockRecorder) GetHTTPRuleByID(id interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHTTPRuleByID", reflect.TypeOf((*MockHTTPRuleDao)(nil).GetHTTPRuleByID), id)
|
2018-11-22 09:34:00 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetHTTPRuleByServiceIDAndContainerPort mocks base method
|
|
|
|
func (m *MockHTTPRuleDao) GetHTTPRuleByServiceIDAndContainerPort(serviceID string, containerPort int) ([]*model.HTTPRule, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetHTTPRuleByServiceIDAndContainerPort", serviceID, containerPort)
|
2018-12-18 16:58:13 +08:00
|
|
|
ret0, _ := ret[0].([]*model.HTTPRule)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetHTTPRuleByServiceIDAndContainerPort indicates an expected call of GetHTTPRuleByServiceIDAndContainerPort
|
|
|
|
func (mr *MockHTTPRuleDaoMockRecorder) GetHTTPRuleByServiceIDAndContainerPort(serviceID, containerPort interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHTTPRuleByServiceIDAndContainerPort", reflect.TypeOf((*MockHTTPRuleDao)(nil).GetHTTPRuleByServiceIDAndContainerPort), serviceID, containerPort)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteHTTPRuleByID mocks base method
|
|
|
|
func (m *MockHTTPRuleDao) DeleteHTTPRuleByID(id string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteHTTPRuleByID", id)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteHTTPRuleByID indicates an expected call of DeleteHTTPRuleByID
|
|
|
|
func (mr *MockHTTPRuleDaoMockRecorder) DeleteHTTPRuleByID(id interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHTTPRuleByID", reflect.TypeOf((*MockHTTPRuleDao)(nil).DeleteHTTPRuleByID), id)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteHTTPRuleByServiceID mocks base method
|
|
|
|
func (m *MockHTTPRuleDao) DeleteHTTPRuleByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteHTTPRuleByServiceID", serviceID)
|
2018-11-22 09:34:00 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteHTTPRuleByServiceID indicates an expected call of DeleteHTTPRuleByServiceID
|
|
|
|
func (mr *MockHTTPRuleDaoMockRecorder) DeleteHTTPRuleByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHTTPRuleByServiceID", reflect.TypeOf((*MockHTTPRuleDao)(nil).DeleteHTTPRuleByServiceID), serviceID)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListByServiceID mocks base method
|
|
|
|
func (m *MockHTTPRuleDao) ListByServiceID(serviceID string) ([]*model.HTTPRule, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByServiceID", serviceID)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].([]*model.HTTPRule)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListByServiceID indicates an expected call of ListByServiceID
|
|
|
|
func (mr *MockHTTPRuleDaoMockRecorder) ListByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByServiceID", reflect.TypeOf((*MockHTTPRuleDao)(nil).ListByServiceID), serviceID)
|
2018-11-22 09:34:00 +08:00
|
|
|
}
|
|
|
|
|
2019-12-10 17:56:47 +08:00
|
|
|
// ListByCertID mocks base method
|
|
|
|
func (m *MockHTTPRuleDao) ListByCertID(certID string) ([]*model.HTTPRule, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByCertID", certID)
|
|
|
|
ret0, _ := ret[0].([]*model.HTTPRule)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByCertID indicates an expected call of ListByCertID
|
|
|
|
func (mr *MockHTTPRuleDaoMockRecorder) ListByCertID(certID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByCertID", reflect.TypeOf((*MockHTTPRuleDao)(nil).ListByCertID), certID)
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTCPRuleDao is a mock of TCPRuleDao interface
|
2018-12-18 16:58:13 +08:00
|
|
|
type MockTCPRuleDao struct {
|
2018-11-19 14:09:14 +08:00
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockTCPRuleDaoMockRecorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockTCPRuleDaoMockRecorder is the mock recorder for MockTCPRuleDao
|
|
|
|
type MockTCPRuleDaoMockRecorder struct {
|
2018-12-18 16:58:13 +08:00
|
|
|
mock *MockTCPRuleDao
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockTCPRuleDao creates a new mock instance
|
2018-12-18 16:58:13 +08:00
|
|
|
func NewMockTCPRuleDao(ctrl *gomock.Controller) *MockTCPRuleDao {
|
|
|
|
mock := &MockTCPRuleDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockTCPRuleDaoMockRecorder{mock}
|
2018-11-19 14:09:14 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTCPRuleDao) EXPECT() *MockTCPRuleDaoMockRecorder {
|
|
|
|
return m.recorder
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTCPRuleDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTCPRuleDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTCPRuleDao)(nil).AddModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTCPRuleDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTCPRuleDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTCPRuleDao)(nil).UpdateModel), arg0)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTCPRuleByServiceIDAndContainerPort mocks base method
|
|
|
|
func (m *MockTCPRuleDao) GetTCPRuleByServiceIDAndContainerPort(serviceID string, containerPort int) ([]*model.TCPRule, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTCPRuleByServiceIDAndContainerPort", serviceID, containerPort)
|
2018-12-18 16:58:13 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TCPRule)
|
2018-11-19 14:09:14 +08:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTCPRuleByServiceIDAndContainerPort indicates an expected call of GetTCPRuleByServiceIDAndContainerPort
|
|
|
|
func (mr *MockTCPRuleDaoMockRecorder) GetTCPRuleByServiceIDAndContainerPort(serviceID, containerPort interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTCPRuleByServiceIDAndContainerPort", reflect.TypeOf((*MockTCPRuleDao)(nil).GetTCPRuleByServiceIDAndContainerPort), serviceID, containerPort)
|
2018-11-19 14:09:14 +08:00
|
|
|
}
|
2018-11-22 09:34:00 +08:00
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTCPRuleByID mocks base method
|
|
|
|
func (m *MockTCPRuleDao) GetTCPRuleByID(id string) (*model.TCPRule, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTCPRuleByID", id)
|
2018-11-23 20:39:34 +08:00
|
|
|
ret0, _ := ret[0].(*model.TCPRule)
|
2018-11-22 14:33:29 +08:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTCPRuleByID indicates an expected call of GetTCPRuleByID
|
|
|
|
func (mr *MockTCPRuleDaoMockRecorder) GetTCPRuleByID(id interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTCPRuleByID", reflect.TypeOf((*MockTCPRuleDao)(nil).GetTCPRuleByID), id)
|
2018-11-22 14:33:29 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTCPRuleByServiceID mocks base method
|
|
|
|
func (m *MockTCPRuleDao) GetTCPRuleByServiceID(sid string) ([]*model.TCPRule, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetTCPRuleByServiceID", sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TCPRule)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetTCPRuleByServiceID indicates an expected call of GetTCPRuleByServiceID
|
|
|
|
func (mr *MockTCPRuleDaoMockRecorder) GetTCPRuleByServiceID(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTCPRuleByServiceID", reflect.TypeOf((*MockTCPRuleDao)(nil).GetTCPRuleByServiceID), sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteByID mocks base method
|
|
|
|
func (m *MockTCPRuleDao) DeleteByID(uuid string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteByID", uuid)
|
2018-11-22 09:34:00 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteByID indicates an expected call of DeleteByID
|
|
|
|
func (mr *MockTCPRuleDaoMockRecorder) DeleteByID(uuid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByID", reflect.TypeOf((*MockTCPRuleDao)(nil).DeleteByID), uuid)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteTCPRuleByServiceID mocks base method
|
|
|
|
func (m *MockTCPRuleDao) DeleteTCPRuleByServiceID(serviceID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteTCPRuleByServiceID", serviceID)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteTCPRuleByServiceID indicates an expected call of DeleteTCPRuleByServiceID
|
|
|
|
func (mr *MockTCPRuleDaoMockRecorder) DeleteTCPRuleByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTCPRuleByServiceID", reflect.TypeOf((*MockTCPRuleDao)(nil).DeleteTCPRuleByServiceID), serviceID)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListByServiceID mocks base method
|
|
|
|
func (m *MockTCPRuleDao) ListByServiceID(serviceID string) ([]*model.TCPRule, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByServiceID", serviceID)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret0, _ := ret[0].([]*model.TCPRule)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListByServiceID indicates an expected call of ListByServiceID
|
|
|
|
func (mr *MockTCPRuleDaoMockRecorder) ListByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByServiceID", reflect.TypeOf((*MockTCPRuleDao)(nil).ListByServiceID), serviceID)
|
2018-11-22 09:34:00 +08:00
|
|
|
}
|
2018-12-18 16:58:13 +08:00
|
|
|
|
2019-09-18 17:56:52 +08:00
|
|
|
// GetUsedPortsByIP mocks base method
|
|
|
|
func (m *MockTCPRuleDao) GetUsedPortsByIP(ip string) ([]*model.TCPRule, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetUsedPortsByIP", ip)
|
|
|
|
ret0, _ := ret[0].([]*model.TCPRule)
|
2019-02-15 17:20:08 +08:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-18 17:56:52 +08:00
|
|
|
// GetUsedPortsByIP indicates an expected call of GetUsedPortsByIP
|
|
|
|
func (mr *MockTCPRuleDaoMockRecorder) GetUsedPortsByIP(ip interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsedPortsByIP", reflect.TypeOf((*MockTCPRuleDao)(nil).GetUsedPortsByIP), ip)
|
2019-02-15 17:20:08 +08:00
|
|
|
}
|
2019-02-28 11:50:54 +08:00
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockEndpointsDao is a mock of EndpointsDao interface
|
2019-02-28 11:50:54 +08:00
|
|
|
type MockEndpointsDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockEndpointsDaoMockRecorder
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockEndpointsDaoMockRecorder is the mock recorder for MockEndpointsDao
|
|
|
|
type MockEndpointsDaoMockRecorder struct {
|
2019-02-28 11:50:54 +08:00
|
|
|
mock *MockEndpointsDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockEndpointsDao creates a new mock instance
|
2019-02-28 11:50:54 +08:00
|
|
|
func NewMockEndpointsDao(ctrl *gomock.Controller) *MockEndpointsDao {
|
|
|
|
mock := &MockEndpointsDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockEndpointsDaoMockRecorder{mock}
|
2019-02-28 11:50:54 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockEndpointsDao) EXPECT() *MockEndpointsDaoMockRecorder {
|
|
|
|
return m.recorder
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockEndpointsDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockEndpointsDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockEndpointsDao)(nil).AddModel), arg0)
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockEndpointsDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockEndpointsDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockEndpointsDao)(nil).UpdateModel), arg0)
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetByUUID mocks base method
|
|
|
|
func (m *MockEndpointsDao) GetByUUID(uuid string) (*model.Endpoint, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetByUUID", uuid)
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].(*model.Endpoint)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetByUUID indicates an expected call of GetByUUID
|
|
|
|
func (mr *MockEndpointsDaoMockRecorder) GetByUUID(uuid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByUUID", reflect.TypeOf((*MockEndpointsDao)(nil).GetByUUID), uuid)
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByUUID mocks base method
|
|
|
|
func (m *MockEndpointsDao) DelByUUID(uuid string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DelByUUID", uuid)
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DelByUUID indicates an expected call of DelByUUID
|
|
|
|
func (mr *MockEndpointsDaoMockRecorder) DelByUUID(uuid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelByUUID", reflect.TypeOf((*MockEndpointsDao)(nil).DelByUUID), uuid)
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// List mocks base method
|
|
|
|
func (m *MockEndpointsDao) List(sid string) ([]*model.Endpoint, error) {
|
|
|
|
ret := m.ctrl.Call(m, "List", sid)
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].([]*model.Endpoint)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// List indicates an expected call of List
|
|
|
|
func (mr *MockEndpointsDaoMockRecorder) List(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockEndpointsDao)(nil).List), sid)
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListIsOnline mocks base method
|
|
|
|
func (m *MockEndpointsDao) ListIsOnline(sid string) ([]*model.Endpoint, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListIsOnline", sid)
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].([]*model.Endpoint)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListIsOnline indicates an expected call of ListIsOnline
|
|
|
|
func (mr *MockEndpointsDaoMockRecorder) ListIsOnline(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIsOnline", reflect.TypeOf((*MockEndpointsDao)(nil).ListIsOnline), sid)
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteByServiceID mocks base method
|
|
|
|
func (m *MockEndpointsDao) DeleteByServiceID(sid string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteByServiceID", sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteByServiceID indicates an expected call of DeleteByServiceID
|
|
|
|
func (mr *MockEndpointsDaoMockRecorder) DeleteByServiceID(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByServiceID", reflect.TypeOf((*MockEndpointsDao)(nil).DeleteByServiceID), sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockThirdPartySvcDiscoveryCfgDao is a mock of ThirdPartySvcDiscoveryCfgDao interface
|
2019-02-28 11:50:54 +08:00
|
|
|
type MockThirdPartySvcDiscoveryCfgDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockThirdPartySvcDiscoveryCfgDaoMockRecorder
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockThirdPartySvcDiscoveryCfgDaoMockRecorder is the mock recorder for MockThirdPartySvcDiscoveryCfgDao
|
|
|
|
type MockThirdPartySvcDiscoveryCfgDaoMockRecorder struct {
|
2019-02-28 11:50:54 +08:00
|
|
|
mock *MockThirdPartySvcDiscoveryCfgDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockThirdPartySvcDiscoveryCfgDao creates a new mock instance
|
2019-02-28 11:50:54 +08:00
|
|
|
func NewMockThirdPartySvcDiscoveryCfgDao(ctrl *gomock.Controller) *MockThirdPartySvcDiscoveryCfgDao {
|
|
|
|
mock := &MockThirdPartySvcDiscoveryCfgDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockThirdPartySvcDiscoveryCfgDaoMockRecorder{mock}
|
2019-02-28 11:50:54 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockThirdPartySvcDiscoveryCfgDao) EXPECT() *MockThirdPartySvcDiscoveryCfgDaoMockRecorder {
|
|
|
|
return m.recorder
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockThirdPartySvcDiscoveryCfgDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockThirdPartySvcDiscoveryCfgDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockThirdPartySvcDiscoveryCfgDao)(nil).AddModel), arg0)
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockThirdPartySvcDiscoveryCfgDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockThirdPartySvcDiscoveryCfgDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockThirdPartySvcDiscoveryCfgDao)(nil).UpdateModel), arg0)
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetByServiceID mocks base method
|
|
|
|
func (m *MockThirdPartySvcDiscoveryCfgDao) GetByServiceID(sid string) (*model.ThirdPartySvcDiscoveryCfg, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetByServiceID", sid)
|
2019-02-28 11:50:54 +08:00
|
|
|
ret0, _ := ret[0].(*model.ThirdPartySvcDiscoveryCfg)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// GetByServiceID indicates an expected call of GetByServiceID
|
|
|
|
func (mr *MockThirdPartySvcDiscoveryCfgDaoMockRecorder) GetByServiceID(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByServiceID", reflect.TypeOf((*MockThirdPartySvcDiscoveryCfgDao)(nil).GetByServiceID), sid)
|
2019-02-28 11:50:54 +08:00
|
|
|
}
|
2019-05-15 18:42:49 +08:00
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteByServiceID mocks base method
|
|
|
|
func (m *MockThirdPartySvcDiscoveryCfgDao) DeleteByServiceID(sid string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteByServiceID", sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteByServiceID indicates an expected call of DeleteByServiceID
|
|
|
|
func (mr *MockThirdPartySvcDiscoveryCfgDaoMockRecorder) DeleteByServiceID(sid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByServiceID", reflect.TypeOf((*MockThirdPartySvcDiscoveryCfgDao)(nil).DeleteByServiceID), sid)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockGwRuleConfigDao is a mock of GwRuleConfigDao interface
|
2019-05-15 18:42:49 +08:00
|
|
|
type MockGwRuleConfigDao struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-08-25 22:19:27 +08:00
|
|
|
recorder *MockGwRuleConfigDaoMockRecorder
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// MockGwRuleConfigDaoMockRecorder is the mock recorder for MockGwRuleConfigDao
|
|
|
|
type MockGwRuleConfigDaoMockRecorder struct {
|
2019-05-15 18:42:49 +08:00
|
|
|
mock *MockGwRuleConfigDao
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// NewMockGwRuleConfigDao creates a new mock instance
|
2019-05-15 18:42:49 +08:00
|
|
|
func NewMockGwRuleConfigDao(ctrl *gomock.Controller) *MockGwRuleConfigDao {
|
|
|
|
mock := &MockGwRuleConfigDao{ctrl: ctrl}
|
2019-08-25 22:19:27 +08:00
|
|
|
mock.recorder = &MockGwRuleConfigDaoMockRecorder{mock}
|
2019-05-15 18:42:49 +08:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockGwRuleConfigDao) EXPECT() *MockGwRuleConfigDaoMockRecorder {
|
|
|
|
return m.recorder
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockGwRuleConfigDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockGwRuleConfigDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockGwRuleConfigDao)(nil).AddModel), arg0)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockGwRuleConfigDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockGwRuleConfigDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockGwRuleConfigDao)(nil).UpdateModel), arg0)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteByRuleID mocks base method
|
|
|
|
func (m *MockGwRuleConfigDao) DeleteByRuleID(rid string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteByRuleID", rid)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// DeleteByRuleID indicates an expected call of DeleteByRuleID
|
|
|
|
func (mr *MockGwRuleConfigDaoMockRecorder) DeleteByRuleID(rid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByRuleID", reflect.TypeOf((*MockGwRuleConfigDao)(nil).DeleteByRuleID), rid)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListByRuleID mocks base method
|
|
|
|
func (m *MockGwRuleConfigDao) ListByRuleID(rid string) ([]*model.GwRuleConfig, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByRuleID", rid)
|
2019-05-15 18:42:49 +08:00
|
|
|
ret0, _ := ret[0].([]*model.GwRuleConfig)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-08-25 22:19:27 +08:00
|
|
|
// ListByRuleID indicates an expected call of ListByRuleID
|
|
|
|
func (mr *MockGwRuleConfigDaoMockRecorder) ListByRuleID(rid interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByRuleID", reflect.TypeOf((*MockGwRuleConfigDao)(nil).ListByRuleID), rid)
|
2019-05-15 18:42:49 +08:00
|
|
|
}
|
2019-11-13 17:00:02 +08:00
|
|
|
|
|
|
|
// MockTenantServceAutoscalerRulesDao is a mock of TenantServceAutoscalerRulesDao interface
|
|
|
|
type MockTenantServceAutoscalerRulesDao struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockTenantServceAutoscalerRulesDaoMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockTenantServceAutoscalerRulesDaoMockRecorder is the mock recorder for MockTenantServceAutoscalerRulesDao
|
|
|
|
type MockTenantServceAutoscalerRulesDaoMockRecorder struct {
|
|
|
|
mock *MockTenantServceAutoscalerRulesDao
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockTenantServceAutoscalerRulesDao creates a new mock instance
|
|
|
|
func NewMockTenantServceAutoscalerRulesDao(ctrl *gomock.Controller) *MockTenantServceAutoscalerRulesDao {
|
|
|
|
mock := &MockTenantServceAutoscalerRulesDao{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockTenantServceAutoscalerRulesDaoMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServceAutoscalerRulesDao) EXPECT() *MockTenantServceAutoscalerRulesDaoMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServceAutoscalerRulesDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServceAutoscalerRulesDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServceAutoscalerRulesDao)(nil).AddModel), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServceAutoscalerRulesDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServceAutoscalerRulesDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServceAutoscalerRulesDao)(nil).UpdateModel), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetByRuleID mocks base method
|
|
|
|
func (m *MockTenantServceAutoscalerRulesDao) GetByRuleID(ruleID string) (*model.TenantServiceAutoscalerRules, error) {
|
|
|
|
ret := m.ctrl.Call(m, "GetByRuleID", ruleID)
|
|
|
|
ret0, _ := ret[0].(*model.TenantServiceAutoscalerRules)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetByRuleID indicates an expected call of GetByRuleID
|
|
|
|
func (mr *MockTenantServceAutoscalerRulesDaoMockRecorder) GetByRuleID(ruleID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByRuleID", reflect.TypeOf((*MockTenantServceAutoscalerRulesDao)(nil).GetByRuleID), ruleID)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByServiceID mocks base method
|
|
|
|
func (m *MockTenantServceAutoscalerRulesDao) ListByServiceID(serviceID string) ([]*model.TenantServiceAutoscalerRules, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByServiceID", serviceID)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceAutoscalerRules)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByServiceID indicates an expected call of ListByServiceID
|
|
|
|
func (mr *MockTenantServceAutoscalerRulesDaoMockRecorder) ListByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByServiceID", reflect.TypeOf((*MockTenantServceAutoscalerRulesDao)(nil).ListByServiceID), serviceID)
|
|
|
|
}
|
|
|
|
|
2019-11-18 15:34:24 +08:00
|
|
|
// ListEnableOnesByServiceID mocks base method
|
|
|
|
func (m *MockTenantServceAutoscalerRulesDao) ListEnableOnesByServiceID(serviceID string) ([]*model.TenantServiceAutoscalerRules, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListEnableOnesByServiceID", serviceID)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceAutoscalerRules)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListEnableOnesByServiceID indicates an expected call of ListEnableOnesByServiceID
|
|
|
|
func (mr *MockTenantServceAutoscalerRulesDaoMockRecorder) ListEnableOnesByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEnableOnesByServiceID", reflect.TypeOf((*MockTenantServceAutoscalerRulesDao)(nil).ListEnableOnesByServiceID), serviceID)
|
|
|
|
}
|
|
|
|
|
2019-11-13 17:00:02 +08:00
|
|
|
// MockTenantServceAutoscalerRuleMetricsDao is a mock of TenantServceAutoscalerRuleMetricsDao interface
|
|
|
|
type MockTenantServceAutoscalerRuleMetricsDao struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockTenantServceAutoscalerRuleMetricsDaoMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockTenantServceAutoscalerRuleMetricsDaoMockRecorder is the mock recorder for MockTenantServceAutoscalerRuleMetricsDao
|
|
|
|
type MockTenantServceAutoscalerRuleMetricsDaoMockRecorder struct {
|
|
|
|
mock *MockTenantServceAutoscalerRuleMetricsDao
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockTenantServceAutoscalerRuleMetricsDao creates a new mock instance
|
|
|
|
func NewMockTenantServceAutoscalerRuleMetricsDao(ctrl *gomock.Controller) *MockTenantServceAutoscalerRuleMetricsDao {
|
|
|
|
mock := &MockTenantServceAutoscalerRuleMetricsDao{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockTenantServceAutoscalerRuleMetricsDaoMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServceAutoscalerRuleMetricsDao) EXPECT() *MockTenantServceAutoscalerRuleMetricsDaoMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServceAutoscalerRuleMetricsDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServceAutoscalerRuleMetricsDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServceAutoscalerRuleMetricsDao)(nil).AddModel), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServceAutoscalerRuleMetricsDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServceAutoscalerRuleMetricsDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServceAutoscalerRuleMetricsDao)(nil).UpdateModel), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateOrCreate mocks base method
|
|
|
|
func (m *MockTenantServceAutoscalerRuleMetricsDao) UpdateOrCreate(metric *model.TenantServiceAutoscalerRuleMetrics) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateOrCreate", metric)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateOrCreate indicates an expected call of UpdateOrCreate
|
|
|
|
func (mr *MockTenantServceAutoscalerRuleMetricsDaoMockRecorder) UpdateOrCreate(metric interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrCreate", reflect.TypeOf((*MockTenantServceAutoscalerRuleMetricsDao)(nil).UpdateOrCreate), metric)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByRuleID mocks base method
|
|
|
|
func (m *MockTenantServceAutoscalerRuleMetricsDao) ListByRuleID(ruleID string) ([]*model.TenantServiceAutoscalerRuleMetrics, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByRuleID", ruleID)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceAutoscalerRuleMetrics)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByRuleID indicates an expected call of ListByRuleID
|
|
|
|
func (mr *MockTenantServceAutoscalerRuleMetricsDaoMockRecorder) ListByRuleID(ruleID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByRuleID", reflect.TypeOf((*MockTenantServceAutoscalerRuleMetricsDao)(nil).ListByRuleID), ruleID)
|
|
|
|
}
|
2019-11-18 15:34:24 +08:00
|
|
|
|
2019-12-12 17:40:40 +08:00
|
|
|
// DeleteByRuleID mocks base method
|
|
|
|
func (m *MockTenantServceAutoscalerRuleMetricsDao) DeleteByRuleID(ruldID string) error {
|
|
|
|
ret := m.ctrl.Call(m, "DeleteByRuleID", ruldID)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteByRuleID indicates an expected call of DeleteByRuleID
|
|
|
|
func (mr *MockTenantServceAutoscalerRuleMetricsDaoMockRecorder) DeleteByRuleID(ruldID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByRuleID", reflect.TypeOf((*MockTenantServceAutoscalerRuleMetricsDao)(nil).DeleteByRuleID), ruldID)
|
|
|
|
}
|
|
|
|
|
2019-11-18 15:34:24 +08:00
|
|
|
// MockTenantServiceScalingRecordsDao is a mock of TenantServiceScalingRecordsDao interface
|
|
|
|
type MockTenantServiceScalingRecordsDao struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockTenantServiceScalingRecordsDaoMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockTenantServiceScalingRecordsDaoMockRecorder is the mock recorder for MockTenantServiceScalingRecordsDao
|
|
|
|
type MockTenantServiceScalingRecordsDaoMockRecorder struct {
|
|
|
|
mock *MockTenantServiceScalingRecordsDao
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockTenantServiceScalingRecordsDao creates a new mock instance
|
|
|
|
func NewMockTenantServiceScalingRecordsDao(ctrl *gomock.Controller) *MockTenantServiceScalingRecordsDao {
|
|
|
|
mock := &MockTenantServiceScalingRecordsDao{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockTenantServiceScalingRecordsDaoMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockTenantServiceScalingRecordsDao) EXPECT() *MockTenantServiceScalingRecordsDaoMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2019-12-12 17:40:40 +08:00
|
|
|
// AddModel mocks base method
|
|
|
|
func (m *MockTenantServiceScalingRecordsDao) AddModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "AddModel", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddModel indicates an expected call of AddModel
|
|
|
|
func (mr *MockTenantServiceScalingRecordsDaoMockRecorder) AddModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddModel", reflect.TypeOf((*MockTenantServiceScalingRecordsDao)(nil).AddModel), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateModel mocks base method
|
|
|
|
func (m *MockTenantServiceScalingRecordsDao) UpdateModel(arg0 model.Interface) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateModel", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateModel indicates an expected call of UpdateModel
|
|
|
|
func (mr *MockTenantServiceScalingRecordsDaoMockRecorder) UpdateModel(arg0 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModel", reflect.TypeOf((*MockTenantServiceScalingRecordsDao)(nil).UpdateModel), arg0)
|
|
|
|
}
|
|
|
|
|
2019-11-18 15:34:24 +08:00
|
|
|
// UpdateOrCreate mocks base method
|
|
|
|
func (m *MockTenantServiceScalingRecordsDao) UpdateOrCreate(new *model.TenantServiceScalingRecords) error {
|
|
|
|
ret := m.ctrl.Call(m, "UpdateOrCreate", new)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateOrCreate indicates an expected call of UpdateOrCreate
|
|
|
|
func (mr *MockTenantServiceScalingRecordsDaoMockRecorder) UpdateOrCreate(new interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrCreate", reflect.TypeOf((*MockTenantServiceScalingRecordsDao)(nil).UpdateOrCreate), new)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceScalingRecordsDao) ListByServiceID(serviceID string, offset, limit int) ([]*model.TenantServiceScalingRecords, error) {
|
|
|
|
ret := m.ctrl.Call(m, "ListByServiceID", serviceID, offset, limit)
|
|
|
|
ret0, _ := ret[0].([]*model.TenantServiceScalingRecords)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByServiceID indicates an expected call of ListByServiceID
|
|
|
|
func (mr *MockTenantServiceScalingRecordsDaoMockRecorder) ListByServiceID(serviceID, offset, limit interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByServiceID", reflect.TypeOf((*MockTenantServiceScalingRecordsDao)(nil).ListByServiceID), serviceID, offset, limit)
|
|
|
|
}
|
|
|
|
|
|
|
|
// CountByServiceID mocks base method
|
|
|
|
func (m *MockTenantServiceScalingRecordsDao) CountByServiceID(serviceID string) (int, error) {
|
|
|
|
ret := m.ctrl.Call(m, "CountByServiceID", serviceID)
|
|
|
|
ret0, _ := ret[0].(int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// CountByServiceID indicates an expected call of CountByServiceID
|
|
|
|
func (mr *MockTenantServiceScalingRecordsDaoMockRecorder) CountByServiceID(serviceID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CountByServiceID", reflect.TypeOf((*MockTenantServiceScalingRecordsDao)(nil).CountByServiceID), serviceID)
|
|
|
|
}
|