db

package
v5.0.1-release+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2019 License: LGPL-3.0 Imports: 7 Imported by: 126

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseManager

func CloseManager() error

CloseManager 关闭

func CreateManager

func CreateManager(config config.Config) (err error)

CreateManager 创建manager

Types

type Manager

type Manager interface {
	CloseManager() error
	Begin() *gorm.DB
	LicenseDao() dao.LicenseDao
	AppDao() dao.AppDao
	TenantDao() dao.TenantDao
	TenantDaoTransactions(db *gorm.DB) dao.TenantDao
	TenantServiceDao() dao.TenantServiceDao
	TenantServiceDeleteDao() dao.TenantServiceDeleteDao
	TenantServiceDaoTransactions(db *gorm.DB) dao.TenantServiceDao
	TenantServiceDeleteDaoTransactions(db *gorm.DB) dao.TenantServiceDeleteDao
	TenantServicesPortDao() dao.TenantServicesPortDao
	TenantServicesPortDaoTransactions(*gorm.DB) dao.TenantServicesPortDao
	TenantServiceRelationDao() dao.TenantServiceRelationDao
	TenantServiceRelationDaoTransactions(*gorm.DB) dao.TenantServiceRelationDao
	TenantServiceEnvVarDao() dao.TenantServiceEnvVarDao
	TenantServiceEnvVarDaoTransactions(*gorm.DB) dao.TenantServiceEnvVarDao
	TenantServiceMountRelationDao() dao.TenantServiceMountRelationDao
	TenantServiceMountRelationDaoTransactions(db *gorm.DB) dao.TenantServiceMountRelationDao
	TenantServiceVolumeDao() dao.TenantServiceVolumeDao
	TenantServiceVolumeDaoTransactions(*gorm.DB) dao.TenantServiceVolumeDao
	TenantServiceConfigFileDao() dao.TenantServiceConfigFileDao
	TenantServiceConfigFileDaoTransactions(*gorm.DB) dao.TenantServiceConfigFileDao
	ServiceProbeDao() dao.ServiceProbeDao
	ServiceProbeDaoTransactions(*gorm.DB) dao.ServiceProbeDao
	TenantServiceLBMappingPortDao() dao.TenantServiceLBMappingPortDao
	TenantServiceLBMappingPortDaoTransactions(*gorm.DB) dao.TenantServiceLBMappingPortDao
	TenantServiceLabelDao() dao.TenantServiceLabelDao
	TenantServiceLabelDaoTransactions(db *gorm.DB) dao.TenantServiceLabelDao
	LocalSchedulerDao() dao.LocalSchedulerDao
	TenantPluginDaoTransactions(db *gorm.DB) dao.TenantPluginDao
	TenantPluginDao() dao.TenantPluginDao
	TenantPluginDefaultENVDaoTransactions(db *gorm.DB) dao.TenantPluginDefaultENVDao
	TenantPluginDefaultENVDao() dao.TenantPluginDefaultENVDao
	TenantPluginBuildVersionDao() dao.TenantPluginBuildVersionDao
	TenantPluginBuildVersionDaoTransactions(db *gorm.DB) dao.TenantPluginBuildVersionDao
	TenantPluginVersionENVDao() dao.TenantPluginVersionEnvDao
	TenantPluginVersionENVDaoTransactions(db *gorm.DB) dao.TenantPluginVersionEnvDao
	TenantServicePluginRelationDao() dao.TenantServicePluginRelationDao
	TenantServicePluginRelationDaoTransactions(db *gorm.DB) dao.TenantServicePluginRelationDao
	TenantServicesStreamPluginPortDao() dao.TenantServicesStreamPluginPortDao
	TenantServicesStreamPluginPortDaoTransactions(db *gorm.DB) dao.TenantServicesStreamPluginPortDao

	CodeCheckResultDao() dao.CodeCheckResultDao
	CodeCheckResultDaoTransactions(db *gorm.DB) dao.CodeCheckResultDao

	ServiceEventDao() dao.EventDao
	ServiceEventDaoTransactions(db *gorm.DB) dao.EventDao

	VersionInfoDao() dao.VersionInfoDao
	VersionInfoDaoTransactions(db *gorm.DB) dao.VersionInfoDao

	RegionUserInfoDao() dao.RegionUserInfoDao
	RegionUserInfoDaoTransactions(db *gorm.DB) dao.RegionUserInfoDao

	RegionAPIClassDao() dao.RegionAPIClassDao
	RegionAPIClassDaoTransactions(db *gorm.DB) dao.RegionAPIClassDao

	RegionProcotolsDao() dao.RegionProcotolsDao
	RegionProcotolsDaoTransactions(db *gorm.DB) dao.RegionProcotolsDao

	NotificationEventDao() dao.NotificationEventDao
	AppBackupDao() dao.AppBackupDao
	ServiceSourceDao() dao.ServiceSourceDao

	// gateway
	CertificateDao() dao.CertificateDao
	CertificateDaoTransactions(db *gorm.DB) dao.CertificateDao
	RuleExtensionDao() dao.RuleExtensionDao
	RuleExtensionDaoTransactions(db *gorm.DB) dao.RuleExtensionDao
	HttpRuleDao() dao.HTTPRuleDao
	HttpRuleDaoTransactions(db *gorm.DB) dao.HTTPRuleDao
	TcpRuleDao() dao.TCPRuleDao
	TcpRuleDaoTransactions(db *gorm.DB) dao.TCPRuleDao
	IPPortDao() dao.IPPortDao
	IPPortDaoTransactions(db *gorm.DB) dao.IPPortDao
	IPPoolDao() dao.IPPoolDao
}

Manager db manager

func GetManager

func GetManager() Manager

GetManager 获取管理器

type MockManager

type MockManager struct {
	// contains filtered or unexported fields
}

Mock of Manager interface

func NewMockManager

func NewMockManager(ctrl *gomock.Controller) *MockManager

func (*MockManager) AppBackupDao

func (_m *MockManager) AppBackupDao() dao.AppBackupDao

func (*MockManager) AppDao

func (_m *MockManager) AppDao() dao.AppDao

func (*MockManager) Begin

func (_m *MockManager) Begin() *gorm.DB

func (*MockManager) CertificateDao

func (_m *MockManager) CertificateDao() dao.CertificateDao

func (*MockManager) CertificateDaoTransactions

func (_m *MockManager) CertificateDaoTransactions(db *gorm.DB) dao.CertificateDao

func (*MockManager) CloseManager

func (_m *MockManager) CloseManager() error

func (*MockManager) CodeCheckResultDao

func (_m *MockManager) CodeCheckResultDao() dao.CodeCheckResultDao

func (*MockManager) CodeCheckResultDaoTransactions

func (_m *MockManager) CodeCheckResultDaoTransactions(db *gorm.DB) dao.CodeCheckResultDao

func (*MockManager) EXPECT

func (_m *MockManager) EXPECT() *_MockManagerRecorder

func (*MockManager) HttpRuleDao

func (_m *MockManager) HttpRuleDao() dao.HTTPRuleDao

func (*MockManager) HttpRuleDaoTransactions

func (_m *MockManager) HttpRuleDaoTransactions(db *gorm.DB) dao.HTTPRuleDao

func (*MockManager) IPPortDao

func (_m *MockManager) IPPortDao() dao.IPPortDao

func (*MockManager) IPPortDaoTransactions

func (_m *MockManager) IPPortDaoTransactions(db *gorm.DB) dao.IPPortDao

func (*MockManager) LicenseDao

func (_m *MockManager) LicenseDao() dao.LicenseDao

func (*MockManager) LocalSchedulerDao

func (_m *MockManager) LocalSchedulerDao() dao.LocalSchedulerDao

func (*MockManager) NotificationEventDao

func (_m *MockManager) NotificationEventDao() dao.NotificationEventDao

func (*MockManager) RegionAPIClassDao

func (_m *MockManager) RegionAPIClassDao() dao.RegionAPIClassDao

func (*MockManager) RegionAPIClassDaoTransactions

func (_m *MockManager) RegionAPIClassDaoTransactions(db *gorm.DB) dao.RegionAPIClassDao

func (*MockManager) RegionProcotolsDao

func (_m *MockManager) RegionProcotolsDao() dao.RegionProcotolsDao

func (*MockManager) RegionProcotolsDaoTransactions

func (_m *MockManager) RegionProcotolsDaoTransactions(db *gorm.DB) dao.RegionProcotolsDao

func (*MockManager) RegionUserInfoDao

func (_m *MockManager) RegionUserInfoDao() dao.RegionUserInfoDao

func (*MockManager) RegionUserInfoDaoTransactions

func (_m *MockManager) RegionUserInfoDaoTransactions(db *gorm.DB) dao.RegionUserInfoDao

func (*MockManager) RuleExtensionDao

func (_m *MockManager) RuleExtensionDao() dao.RuleExtensionDao

func (*MockManager) RuleExtensionDaoTransactions

func (_m *MockManager) RuleExtensionDaoTransactions(db *gorm.DB) dao.RuleExtensionDao

func (*MockManager) ServiceEventDao

func (_m *MockManager) ServiceEventDao() dao.EventDao

func (*MockManager) ServiceEventDaoTransactions

func (_m *MockManager) ServiceEventDaoTransactions(db *gorm.DB) dao.EventDao

func (*MockManager) ServiceProbeDao

func (_m *MockManager) ServiceProbeDao() dao.ServiceProbeDao

func (*MockManager) ServiceProbeDaoTransactions

func (_m *MockManager) ServiceProbeDaoTransactions(_param0 *gorm.DB) dao.ServiceProbeDao

func (*MockManager) ServiceSourceDao

func (_m *MockManager) ServiceSourceDao() dao.ServiceSourceDao

func (*MockManager) TcpRuleDao

func (_m *MockManager) TcpRuleDao() dao.TCPRuleDao

func (*MockManager) TcpRuleDaoTransactions

func (_m *MockManager) TcpRuleDaoTransactions(db *gorm.DB) dao.TCPRuleDao

func (*MockManager) TenantDao

func (_m *MockManager) TenantDao() dao.TenantDao

func (*MockManager) TenantDaoTransactions

func (_m *MockManager) TenantDaoTransactions(db *gorm.DB) dao.TenantDao

func (*MockManager) TenantPluginBuildVersionDao

func (_m *MockManager) TenantPluginBuildVersionDao() dao.TenantPluginBuildVersionDao

func (*MockManager) TenantPluginBuildVersionDaoTransactions

func (_m *MockManager) TenantPluginBuildVersionDaoTransactions(db *gorm.DB) dao.TenantPluginBuildVersionDao

func (*MockManager) TenantPluginDao

func (_m *MockManager) TenantPluginDao() dao.TenantPluginDao

func (*MockManager) TenantPluginDaoTransactions

func (_m *MockManager) TenantPluginDaoTransactions(db *gorm.DB) dao.TenantPluginDao

func (*MockManager) TenantPluginDefaultENVDao

func (_m *MockManager) TenantPluginDefaultENVDao() dao.TenantPluginDefaultENVDao

func (*MockManager) TenantPluginDefaultENVDaoTransactions

func (_m *MockManager) TenantPluginDefaultENVDaoTransactions(db *gorm.DB) dao.TenantPluginDefaultENVDao

func (*MockManager) TenantPluginVersionENVDao

func (_m *MockManager) TenantPluginVersionENVDao() dao.TenantPluginVersionEnvDao

func (*MockManager) TenantPluginVersionENVDaoTransactions

func (_m *MockManager) TenantPluginVersionENVDaoTransactions(db *gorm.DB) dao.TenantPluginVersionEnvDao

func (*MockManager) TenantServiceDao

func (_m *MockManager) TenantServiceDao() dao.TenantServiceDao

func (*MockManager) TenantServiceDaoTransactions

func (_m *MockManager) TenantServiceDaoTransactions(db *gorm.DB) dao.TenantServiceDao

func (*MockManager) TenantServiceDeleteDao

func (_m *MockManager) TenantServiceDeleteDao() dao.TenantServiceDeleteDao

func (*MockManager) TenantServiceDeleteDaoTransactions

func (_m *MockManager) TenantServiceDeleteDaoTransactions(db *gorm.DB) dao.TenantServiceDeleteDao

func (*MockManager) TenantServiceEnvVarDao

func (_m *MockManager) TenantServiceEnvVarDao() dao.TenantServiceEnvVarDao

func (*MockManager) TenantServiceEnvVarDaoTransactions

func (_m *MockManager) TenantServiceEnvVarDaoTransactions(_param0 *gorm.DB) dao.TenantServiceEnvVarDao

func (*MockManager) TenantServiceLBMappingPortDao

func (_m *MockManager) TenantServiceLBMappingPortDao() dao.TenantServiceLBMappingPortDao

func (*MockManager) TenantServiceLBMappingPortDaoTransactions

func (_m *MockManager) TenantServiceLBMappingPortDaoTransactions(_param0 *gorm.DB) dao.TenantServiceLBMappingPortDao

func (*MockManager) TenantServiceLabelDao

func (_m *MockManager) TenantServiceLabelDao() dao.TenantServiceLabelDao

func (*MockManager) TenantServiceLabelDaoTransactions

func (_m *MockManager) TenantServiceLabelDaoTransactions(db *gorm.DB) dao.TenantServiceLabelDao

func (*MockManager) TenantServiceMountRelationDao

func (_m *MockManager) TenantServiceMountRelationDao() dao.TenantServiceMountRelationDao

func (*MockManager) TenantServiceMountRelationDaoTransactions

func (_m *MockManager) TenantServiceMountRelationDaoTransactions(db *gorm.DB) dao.TenantServiceMountRelationDao

func (*MockManager) TenantServicePluginRelationDao

func (_m *MockManager) TenantServicePluginRelationDao() dao.TenantServicePluginRelationDao

func (*MockManager) TenantServicePluginRelationDaoTransactions

func (_m *MockManager) TenantServicePluginRelationDaoTransactions(db *gorm.DB) dao.TenantServicePluginRelationDao

func (*MockManager) TenantServiceRelationDao

func (_m *MockManager) TenantServiceRelationDao() dao.TenantServiceRelationDao

func (*MockManager) TenantServiceRelationDaoTransactions

func (_m *MockManager) TenantServiceRelationDaoTransactions(_param0 *gorm.DB) dao.TenantServiceRelationDao

func (*MockManager) TenantServiceVolumeDao

func (_m *MockManager) TenantServiceVolumeDao() dao.TenantServiceVolumeDao

func (*MockManager) TenantServiceVolumeDaoTransactions

func (_m *MockManager) TenantServiceVolumeDaoTransactions(_param0 *gorm.DB) dao.TenantServiceVolumeDao

func (*MockManager) TenantServicesPortDao

func (_m *MockManager) TenantServicesPortDao() dao.TenantServicesPortDao

func (*MockManager) TenantServicesPortDaoTransactions

func (_m *MockManager) TenantServicesPortDaoTransactions(_param0 *gorm.DB) dao.TenantServicesPortDao

func (*MockManager) TenantServicesStreamPluginPortDao

func (_m *MockManager) TenantServicesStreamPluginPortDao() dao.TenantServicesStreamPluginPortDao

func (*MockManager) TenantServicesStreamPluginPortDaoTransactions

func (_m *MockManager) TenantServicesStreamPluginPortDaoTransactions(db *gorm.DB) dao.TenantServicesStreamPluginPortDao

func (*MockManager) VersionInfoDao

func (_m *MockManager) VersionInfoDao() dao.VersionInfoDao

func (*MockManager) VersionInfoDaoTransactions

func (_m *MockManager) VersionInfoDaoTransactions(db *gorm.DB) dao.VersionInfoDao

Directories

Path Synopsis
dao

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL