db

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseManager

func CloseManager() error

CloseManager close db manager

func CreateManager

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

CreateManager 创建manager

func SetTestManager

func SetTestManager(m Manager)

SetTestManager sets the default manager for unit test

Types

type Manager

type Manager interface {
	CloseManager() error
	Begin() *gorm.DB
	DB() *gorm.DB
	EnsureEndTransactionFunc() func(tx *gorm.DB)
	VolumeTypeDao() dao.VolumeTypeDao
	LicenseDao() dao.LicenseDao
	AppDao() dao.AppDao
	ApplicationDao() dao.ApplicationDao
	ApplicationDaoTransactions(db *gorm.DB) dao.ApplicationDao
	AppConfigGroupDao() dao.AppConfigGroupDao
	AppConfigGroupDaoTransactions(db *gorm.DB) dao.AppConfigGroupDao
	AppConfigGroupServiceDao() dao.AppConfigGroupServiceDao
	AppConfigGroupServiceDaoTransactions(db *gorm.DB) dao.AppConfigGroupServiceDao
	AppConfigGroupItemDao() dao.AppConfigGroupItemDao
	AppConfigGroupItemDaoTransactions(db *gorm.DB) dao.AppConfigGroupItemDao
	TenantEnvDao() dao.TenantEnvDao
	TenantEnvDaoTransactions(db *gorm.DB) dao.TenantEnvDao
	TenantEnvServiceDao() dao.TenantEnvServiceDao
	TenantEnvServiceDeleteDao() dao.TenantEnvServiceDeleteDao
	TenantEnvServiceDaoTransactions(db *gorm.DB) dao.TenantEnvServiceDao
	TenantEnvServiceDeleteDaoTransactions(db *gorm.DB) dao.TenantEnvServiceDeleteDao
	TenantEnvServicesPortDao() dao.TenantEnvServicesPortDao
	TenantEnvServicesPortDaoTransactions(*gorm.DB) dao.TenantEnvServicesPortDao
	TenantEnvServiceRelationDao() dao.TenantEnvServiceRelationDao
	TenantEnvServiceRelationDaoTransactions(*gorm.DB) dao.TenantEnvServiceRelationDao
	TenantEnvServiceEnvVarDao() dao.TenantEnvServiceEnvVarDao
	TenantEnvServiceEnvVarDaoTransactions(*gorm.DB) dao.TenantEnvServiceEnvVarDao
	TenantEnvServiceMountRelationDao() dao.TenantEnvServiceMountRelationDao
	TenantEnvServiceMountRelationDaoTransactions(db *gorm.DB) dao.TenantEnvServiceMountRelationDao
	TenantEnvServiceVolumeDao() dao.TenantEnvServiceVolumeDao
	TenantEnvServiceVolumeDaoTransactions(*gorm.DB) dao.TenantEnvServiceVolumeDao
	TenantEnvServiceConfigFileDao() dao.TenantEnvServiceConfigFileDao
	TenantEnvServiceConfigFileDaoTransactions(*gorm.DB) dao.TenantEnvServiceConfigFileDao
	ServiceProbeDao() dao.ServiceProbeDao
	ServiceProbeDaoTransactions(*gorm.DB) dao.ServiceProbeDao
	TenantEnvServiceLBMappingPortDao() dao.TenantEnvServiceLBMappingPortDao
	TenantEnvServiceLBMappingPortDaoTransactions(*gorm.DB) dao.TenantEnvServiceLBMappingPortDao
	TenantEnvServiceSchedulingLabelDao() dao.TenantEnvServiceSchedulingLabelDao
	TenantEnvServiceSchedulingLabelDaoTransactions(db *gorm.DB) dao.TenantEnvServiceSchedulingLabelDao
	TenantEnvServiceSchedulingNodeDao() dao.TenantEnvServiceSchedulingNodeDao
	TenantEnvServiceSchedulingNodeDaoTransactions(db *gorm.DB) dao.TenantEnvServiceSchedulingNodeDao
	TenantEnvServiceSchedulingTolerationDao() dao.TenantEnvServiceSchedulingTolerationDao
	TenantEnvServiceSchedulingTolerationDaoTransactions(db *gorm.DB) dao.TenantEnvServiceSchedulingTolerationDao
	TenantEnvServiceLabelDao() dao.TenantEnvServiceLabelDao
	TenantEnvServiceLabelDaoTransactions(db *gorm.DB) dao.TenantEnvServiceLabelDao
	LocalSchedulerDao() dao.LocalSchedulerDao
	TenantEnvPluginDaoTransactions(db *gorm.DB) dao.TenantEnvPluginDao
	TenantEnvPluginDao() dao.TenantEnvPluginDao
	TenantEnvPluginDefaultENVDaoTransactions(db *gorm.DB) dao.TenantEnvPluginDefaultENVDao
	TenantEnvPluginDefaultENVDao() dao.TenantEnvPluginDefaultENVDao
	TenantEnvPluginBuildVersionDao() dao.TenantEnvPluginBuildVersionDao
	TenantEnvPluginBuildVersionDaoTransactions(db *gorm.DB) dao.TenantEnvPluginBuildVersionDao
	TenantEnvPluginVersionENVDao() dao.TenantEnvPluginVersionEnvDao
	TenantEnvPluginVersionENVDaoTransactions(db *gorm.DB) dao.TenantEnvPluginVersionEnvDao
	TenantEnvPluginVersionConfigDao() dao.TenantEnvPluginVersionConfigDao
	TenantEnvPluginVersionConfigDaoTransactions(db *gorm.DB) dao.TenantEnvPluginVersionConfigDao
	TenantEnvServicePluginRelationDao() dao.TenantEnvServicePluginRelationDao
	TenantEnvServicePluginRelationDaoTransactions(db *gorm.DB) dao.TenantEnvServicePluginRelationDao
	TenantEnvServicesStreamPluginPortDao() dao.TenantEnvServicesStreamPluginPortDao
	TenantEnvServicesStreamPluginPortDaoTransactions(db *gorm.DB) dao.TenantEnvServicesStreamPluginPortDao

	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

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

	NotificationEventDao() dao.NotificationEventDao
	AppBackupDao() dao.AppBackupDao
	AppBackupDaoTransactions(db *gorm.DB) 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
	HTTPRuleRewriteDao() dao.HTTPRuleRewriteDao
	HTTPRuleRewriteDaoTransactions(db *gorm.DB) dao.HTTPRuleRewriteDao
	TCPRuleDao() dao.TCPRuleDao
	TCPRuleDaoTransactions(db *gorm.DB) dao.TCPRuleDao
	GwRuleConfigDao() dao.GwRuleConfigDao
	GwRuleConfigDaoTransactions(db *gorm.DB) dao.GwRuleConfigDao

	// third-party service
	EndpointsDao() dao.EndpointsDao
	EndpointsDaoTransactions(db *gorm.DB) dao.EndpointsDao
	ThirdPartySvcDiscoveryCfgDao() dao.ThirdPartySvcDiscoveryCfgDao
	ThirdPartySvcDiscoveryCfgDaoTransactions(db *gorm.DB) dao.ThirdPartySvcDiscoveryCfgDao

	TenantEnvServceAutoscalerRulesDao() dao.TenantEnvServceAutoscalerRulesDao
	TenantEnvServceAutoscalerRulesDaoTransactions(db *gorm.DB) dao.TenantEnvServceAutoscalerRulesDao
	TenantEnvServceAutoscalerRuleMetricsDao() dao.TenantEnvServceAutoscalerRuleMetricsDao
	TenantEnvServceAutoscalerRuleMetricsDaoTransactions(db *gorm.DB) dao.TenantEnvServceAutoscalerRuleMetricsDao
	TenantEnvServiceScalingRecordsDao() dao.TenantEnvServiceScalingRecordsDao
	TenantEnvServiceScalingRecordsDaoTransactions(db *gorm.DB) dao.TenantEnvServiceScalingRecordsDao

	TenantEnvServiceMonitorDao() dao.TenantEnvServiceMonitorDao
	TenantEnvServiceMonitorDaoTransactions(db *gorm.DB) dao.TenantEnvServiceMonitorDao
}

Manager db manager

func GetManager

func GetManager() Manager

GetManager get db manager

Directories

Path Synopsis
dao
test

Jump to

Keyboard shortcuts

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