()
| 695 | } |
| 696 | |
| 697 | func (u *SettingService) GetAppstoreConfig() (*dto.AppstoreConfig, error) { |
| 698 | res := &dto.AppstoreConfig{} |
| 699 | res.UninstallDeleteImage, _ = settingRepo.GetValueByKey("UninstallDeleteImage") |
| 700 | if res.UninstallDeleteImage == "" { |
| 701 | res.UninstallDeleteImage = constant.StatusDisable |
| 702 | } |
| 703 | res.UpgradeBackup, _ = settingRepo.GetValueByKey("UpgradeBackup") |
| 704 | if res.UpgradeBackup == "" { |
| 705 | res.UpgradeBackup = constant.StatusDisable |
| 706 | } |
| 707 | res.UninstallDeleteBackup, _ = settingRepo.GetValueByKey("UninstallDeleteBackup") |
| 708 | if res.UninstallDeleteBackup == "" { |
| 709 | res.UninstallDeleteBackup = constant.StatusDisable |
| 710 | } |
| 711 | res.InstallAllowPort, _ = settingRepo.GetValueByKey("InstallAllowPort") |
| 712 | if res.InstallAllowPort == "" { |
| 713 | res.InstallAllowPort = constant.StatusDisable |
| 714 | } |
| 715 | return res, nil |
| 716 | } |
| 717 | |
| 718 | func loadDockerProxy(req dto.ProxyUpdate) string { |
| 719 | if req.ProxyType == "" || req.ProxyType == "close" || !req.ProxyDocker { |
nothing calls this directly
no test coverage detected