2022-08-16 23:30:23 +08:00
|
|
|
package service
|
|
|
|
|
2022-10-17 16:32:31 +08:00
|
|
|
import "github.com/1Panel-dev/1Panel/backend/app/repo"
|
2022-08-16 23:30:23 +08:00
|
|
|
|
|
|
|
type ServiceGroup struct {
|
2022-09-08 18:47:15 +08:00
|
|
|
AuthService
|
2022-10-20 18:45:47 +08:00
|
|
|
|
|
|
|
AppService
|
2022-11-18 14:27:40 +08:00
|
|
|
AppInstallService
|
2022-10-20 18:45:47 +08:00
|
|
|
|
|
|
|
ContainerService
|
2022-10-10 15:14:49 +08:00
|
|
|
ImageService
|
2022-10-09 16:17:15 +08:00
|
|
|
ImageRepoService
|
2022-10-20 18:45:47 +08:00
|
|
|
ComposeTemplateService
|
2022-11-14 19:19:42 +08:00
|
|
|
DockerService
|
2022-10-20 18:45:47 +08:00
|
|
|
|
|
|
|
MysqlService
|
2022-10-31 17:26:15 +08:00
|
|
|
RedisService
|
2022-10-20 18:45:47 +08:00
|
|
|
|
|
|
|
CronjobService
|
|
|
|
|
|
|
|
HostService
|
|
|
|
GroupService
|
2022-08-30 18:49:07 +08:00
|
|
|
CommandService
|
2022-08-24 11:10:50 +08:00
|
|
|
FileService
|
2022-10-20 18:45:47 +08:00
|
|
|
|
2022-09-15 10:44:43 +08:00
|
|
|
SettingService
|
2022-10-20 18:45:47 +08:00
|
|
|
BackupService
|
|
|
|
|
2022-10-28 17:04:57 +08:00
|
|
|
WebsiteGroupService
|
|
|
|
WebsiteService
|
2022-11-10 17:44:38 +08:00
|
|
|
WebSiteDnsAccountService
|
2022-11-11 17:41:39 +08:00
|
|
|
WebSiteSSLService
|
|
|
|
WebSiteAcmeAccountService
|
2022-11-15 17:20:57 +08:00
|
|
|
|
2022-11-23 16:19:05 +08:00
|
|
|
NginxService
|
|
|
|
|
2022-11-15 17:20:57 +08:00
|
|
|
LogService
|
2022-08-16 23:30:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var ServiceGroupApp = new(ServiceGroup)
|
|
|
|
|
|
|
|
var (
|
2022-10-20 18:45:47 +08:00
|
|
|
commonRepo = repo.RepoGroupApp.CommonRepo
|
|
|
|
|
|
|
|
appInstallBackupRepo = repo.RepoGroupApp.AppInstallBackupRepo
|
2022-10-11 16:27:58 +08: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 18:45:47 +08: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-11-18 14:27:40 +08:00
|
|
|
websiteRepo = repo.RepoGroupApp.WebSiteRepo
|
|
|
|
websiteGroupRepo = repo.RepoGroupApp.WebSiteGroupRepo
|
|
|
|
websiteDomainRepo = repo.RepoGroupApp.WebSiteDomainRepo
|
|
|
|
websiteDnsRepo = repo.RepoGroupApp.WebsiteDnsAccountRepo
|
|
|
|
websiteSSLRepo = repo.RepoGroupApp.WebsiteSSLRepo
|
|
|
|
websiteAcmeRepo = repo.RepoGroupApp.WebsiteAcmeAccountRepo
|
2022-11-15 17:20:57 +08:00
|
|
|
|
|
|
|
logRepo = repo.RepoGroupApp.LogRepo
|
2022-08-16 23:30:23 +08:00
|
|
|
)
|