rainbond: github.com/goodrain/rainbond/db Index | Files | Directories

package db

import "github.com/goodrain/rainbond/db"

Index

Package Files

db.go db_mock.go

func CloseManager Uses

func CloseManager() error

CloseManager close db manager

func CreateManager Uses

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

CreateManager 创建manager

type Manager Uses

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
    TenantPluginVersionConfigDao() dao.TenantPluginVersionConfigDao
    TenantPluginVersionConfigDaoTransactions(db *gorm.DB) dao.TenantPluginVersionConfigDao
    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
    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
}

Manager db manager

func GetManager Uses

func GetManager() Manager

GetManager get db manager

type MockManager Uses

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

Mock of Manager interface

func NewMockManager Uses

func NewMockManager(ctrl *gomock.Controller) *MockManager

func (*MockManager) AppBackupDao Uses

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

func (*MockManager) AppDao Uses

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

func (*MockManager) Begin Uses

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

func (*MockManager) CertificateDao Uses

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

func (*MockManager) CertificateDaoTransactions Uses

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

func (*MockManager) CloseManager Uses

func (_m *MockManager) CloseManager() error

func (*MockManager) CodeCheckResultDao Uses

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

func (*MockManager) CodeCheckResultDaoTransactions Uses

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

func (*MockManager) EXPECT Uses

func (_m *MockManager) EXPECT() *_MockManagerRecorder

func (*MockManager) EndpointsDao Uses

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

func (*MockManager) EndpointsDaoTransactions Uses

func (_m *MockManager) EndpointsDaoTransactions(db *gorm.DB) dao.EndpointsDao

func (*MockManager) GwRuleConfigDao Uses

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

func (*MockManager) GwRuleConfigDaoTransactions Uses

func (_m *MockManager) GwRuleConfigDaoTransactions(db *gorm.DB) dao.GwRuleConfigDao

func (*MockManager) HTTPRuleDao Uses

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

func (*MockManager) HTTPRuleDaoTransactions Uses

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

func (*MockManager) IPPoolDao Uses

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

func (*MockManager) IPPortDao Uses

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

func (*MockManager) IPPortDaoTransactions Uses

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

func (*MockManager) LicenseDao Uses

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

func (*MockManager) LocalSchedulerDao Uses

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

func (*MockManager) NotificationEventDao Uses

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

func (*MockManager) RegionAPIClassDao Uses

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

func (*MockManager) RegionAPIClassDaoTransactions Uses

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

func (*MockManager) RegionProcotolsDao Uses

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

func (*MockManager) RegionProcotolsDaoTransactions Uses

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

func (*MockManager) RegionUserInfoDao Uses

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

func (*MockManager) RegionUserInfoDaoTransactions Uses

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

func (*MockManager) RuleExtensionDao Uses

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

func (*MockManager) RuleExtensionDaoTransactions Uses

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

func (*MockManager) ServiceEventDao Uses

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

func (*MockManager) ServiceEventDaoTransactions Uses

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

func (*MockManager) ServiceProbeDao Uses

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

func (*MockManager) ServiceProbeDaoTransactions Uses

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

func (*MockManager) ServiceSourceDao Uses

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

func (*MockManager) TCPRuleDao Uses

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

func (*MockManager) TCPRuleDaoTransactions Uses

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

func (*MockManager) TenantDao Uses

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

func (*MockManager) TenantDaoTransactions Uses

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

func (*MockManager) TenantPluginBuildVersionDao Uses

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

func (*MockManager) TenantPluginBuildVersionDaoTransactions Uses

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

func (*MockManager) TenantPluginDao Uses

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

func (*MockManager) TenantPluginDaoTransactions Uses

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

func (*MockManager) TenantPluginDefaultENVDao Uses

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

func (*MockManager) TenantPluginDefaultENVDaoTransactions Uses

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

func (*MockManager) TenantPluginVersionConfigDao Uses

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

func (*MockManager) TenantPluginVersionConfigDaoTransactions Uses

func (_m *MockManager) TenantPluginVersionConfigDaoTransactions(db *gorm.DB) dao.TenantPluginVersionConfigDao

func (*MockManager) TenantPluginVersionENVDao Uses

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

func (*MockManager) TenantPluginVersionENVDaoTransactions Uses

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

func (*MockManager) TenantServiceConfigFileDao Uses

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

func (*MockManager) TenantServiceConfigFileDaoTransactions Uses

func (_m *MockManager) TenantServiceConfigFileDaoTransactions(_param0 *gorm.DB) dao.TenantServiceConfigFileDao

func (*MockManager) TenantServiceDao Uses

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

func (*MockManager) TenantServiceDaoTransactions Uses

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

func (*MockManager) TenantServiceDeleteDao Uses

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

func (*MockManager) TenantServiceDeleteDaoTransactions Uses

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

func (*MockManager) TenantServiceEnvVarDao Uses

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

func (*MockManager) TenantServiceEnvVarDaoTransactions Uses

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

func (*MockManager) TenantServiceLBMappingPortDao Uses

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

func (*MockManager) TenantServiceLBMappingPortDaoTransactions Uses

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

func (*MockManager) TenantServiceLabelDao Uses

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

func (*MockManager) TenantServiceLabelDaoTransactions Uses

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

func (*MockManager) TenantServiceMountRelationDao Uses

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

func (*MockManager) TenantServiceMountRelationDaoTransactions Uses

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

func (*MockManager) TenantServicePluginRelationDao Uses

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

func (*MockManager) TenantServicePluginRelationDaoTransactions Uses

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

func (*MockManager) TenantServiceRelationDao Uses

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

func (*MockManager) TenantServiceRelationDaoTransactions Uses

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

func (*MockManager) TenantServiceVolumeDao Uses

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

func (*MockManager) TenantServiceVolumeDaoTransactions Uses

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

func (*MockManager) TenantServicesPortDao Uses

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

func (*MockManager) TenantServicesPortDaoTransactions Uses

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

func (*MockManager) TenantServicesStreamPluginPortDao Uses

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

func (*MockManager) TenantServicesStreamPluginPortDaoTransactions Uses

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

func (*MockManager) ThirdPartySvcDiscoveryCfgDao Uses

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

func (*MockManager) ThirdPartySvcDiscoveryCfgDaoTransactions Uses

func (_m *MockManager) ThirdPartySvcDiscoveryCfgDaoTransactions(db *gorm.DB) dao.ThirdPartySvcDiscoveryCfgDao

func (*MockManager) VersionInfoDao Uses

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

func (*MockManager) VersionInfoDaoTransactions Uses

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

Directories

PathSynopsis
config
dao
errors
etcd
model
mysql
mysql/dao

Package db imports 7 packages (graph) and is imported by 24 packages. Updated 2019-07-17. Refresh now. Tools for package owners.