1Panel/backend/app/service/entry.go

80 lines
1.8 KiB
Go
Raw Normal View History

2022-08-16 15:30:23 +00:00
package service
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
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
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-12-13 09:20:13 +00:00
WebsiteDnsAccountService
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
2023-01-06 10:53:25 +00:00
SnapshotService
2023-01-30 13:05:20 +00:00
UpgradeService
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
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
websiteRepo = repo.NewIWebsiteRepo()
2022-12-13 09:20:13 +00:00
websiteGroupRepo = repo.RepoGroupApp.WebsiteGroupRepo
websiteDomainRepo = repo.RepoGroupApp.WebsiteDomainRepo
2022-11-18 06:27:40 +00:00
websiteDnsRepo = repo.RepoGroupApp.WebsiteDnsAccountRepo
websiteSSLRepo = repo.NewISSLRepo()
websiteAcmeRepo = repo.NewIAcmeAccountRepo()
2022-11-15 09:20:57 +00:00
2023-01-06 10:53:25 +00:00
logRepo = repo.RepoGroupApp.LogRepo
snapshotRepo = repo.NewISnapshotRepo()
2022-08-16 15:30:23 +00:00
)