2022-08-16 15:30:23 +00:00
|
|
|
package service
|
|
|
|
|
2022-10-17 08:32:31 +00:00
|
|
|
import "github.com/1Panel-dev/1Panel/backend/app/repo"
|
2022-08-16 15:30:23 +00:00
|
|
|
|
|
|
|
type ServiceGroup struct {
|
2022-09-08 10:47:15 +00:00
|
|
|
AuthService
|
2022-11-24 15:56:48 +00:00
|
|
|
DashboardService
|
2022-10-20 10:45:47 +00:00
|
|
|
|
|
|
|
AppService
|
2022-11-18 06:27:40 +00:00
|
|
|
AppInstallService
|
2022-10-20 10:45:47 +00:00
|
|
|
|
|
|
|
ContainerService
|
2022-10-10 07:14:49 +00:00
|
|
|
ImageService
|
2022-10-09 08:17:15 +00:00
|
|
|
ImageRepoService
|
2022-10-20 10:45:47 +00:00
|
|
|
ComposeTemplateService
|
2022-11-14 11:19:42 +00:00
|
|
|
DockerService
|
2022-10-20 10:45:47 +00:00
|
|
|
|
|
|
|
MysqlService
|
2022-10-31 09:26:15 +00:00
|
|
|
RedisService
|
2022-10-20 10:45:47 +00:00
|
|
|
|
|
|
|
CronjobService
|
|
|
|
|
|
|
|
HostService
|
|
|
|
GroupService
|
2022-08-30 10:49:07 +00:00
|
|
|
CommandService
|
2022-08-24 03:10:50 +00:00
|
|
|
FileService
|
2022-10-20 10:45:47 +00:00
|
|
|
|
2022-09-15 02:44:43 +00:00
|
|
|
SettingService
|
2022-10-20 10:45:47 +00:00
|
|
|
BackupService
|
|
|
|
|
2022-10-28 09:04:57 +00:00
|
|
|
WebsiteGroupService
|
|
|
|
WebsiteService
|
2022-11-10 09:44:38 +00:00
|
|
|
WebSiteDnsAccountService
|
2022-11-11 09:41:39 +00:00
|
|
|
WebSiteSSLService
|
|
|
|
WebSiteAcmeAccountService
|
2022-11-15 09:20:57 +00:00
|
|
|
|
2022-11-23 08:19:05 +00:00
|
|
|
NginxService
|
|
|
|
|
2022-11-15 09:20:57 +00:00
|
|
|
LogService
|
2022-08-16 15:30:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var ServiceGroupApp = new(ServiceGroup)
|
|
|
|
|
|
|
|
var (
|
2022-10-20 10:45:47 +00:00
|
|
|
commonRepo = repo.RepoGroupApp.CommonRepo
|
|
|
|
|
|
|
|
appInstallBackupRepo = repo.RepoGroupApp.AppInstallBackupRepo
|
2022-10-11 08:27:58 +00:00
|
|
|
appRepo = repo.RepoGroupApp.AppRepo
|
|
|
|
appTagRepo = repo.RepoGroupApp.AppTagRepo
|
|
|
|
appDetailRepo = repo.RepoGroupApp.AppDetailRepo
|
|
|
|
tagRepo = repo.RepoGroupApp.TagRepo
|
|
|
|
appInstallRepo = repo.RepoGroupApp.AppInstallRepo
|
|
|
|
appInstallResourceRepo = repo.RepoGroupApp.AppInstallResourceRpo
|
2022-10-20 10:45:47 +00:00
|
|
|
|
|
|
|
mysqlRepo = repo.RepoGroupApp.MysqlRepo
|
|
|
|
|
|
|
|
imageRepoRepo = repo.RepoGroupApp.ImageRepoRepo
|
|
|
|
composeRepo = repo.RepoGroupApp.ComposeTemplateRepo
|
|
|
|
|
|
|
|
cronjobRepo = repo.RepoGroupApp.CronjobRepo
|
|
|
|
|
|
|
|
hostRepo = repo.RepoGroupApp.HostRepo
|
|
|
|
groupRepo = repo.RepoGroupApp.GroupRepo
|
|
|
|
commandRepo = repo.RepoGroupApp.CommandRepo
|
|
|
|
|
|
|
|
settingRepo = repo.RepoGroupApp.SettingRepo
|
|
|
|
backupRepo = repo.RepoGroupApp.BackupRepo
|
|
|
|
|
2022-12-05 07:50:53 +00:00
|
|
|
websiteRepo = repo.NewIWebsiteRepo()
|
2022-11-18 06:27:40 +00:00
|
|
|
websiteGroupRepo = repo.RepoGroupApp.WebSiteGroupRepo
|
|
|
|
websiteDomainRepo = repo.RepoGroupApp.WebSiteDomainRepo
|
|
|
|
websiteDnsRepo = repo.RepoGroupApp.WebsiteDnsAccountRepo
|
2022-12-05 07:50:53 +00:00
|
|
|
websiteSSLRepo = repo.NewISSLRepo()
|
|
|
|
websiteAcmeRepo = repo.NewIAcmeAccountRepo()
|
2022-11-15 09:20:57 +00:00
|
|
|
|
|
|
|
logRepo = repo.RepoGroupApp.LogRepo
|
2022-08-16 15:30:23 +00:00
|
|
|
)
|