Documentation
¶
Index ¶
- func GetCurrentInstallingApps() []model.InstalledApp
- func IsInstalling(id uint) bool
- func RefreshApp(v model.InstalledApp)
- func RefreshDeviceApps(device model.Device) error
- func ReinstallApp(v model.InstalledApp)
- func ReloadTask() error
- func ScheduleRefreshApps() error
- func StartInstallApps(apps []model.InstalledApp, notify bool) int
- func UpdateApp(target model.InstalledApp) bool
- type BatchInfo
- type FailedAppInfo
- type Task
- type TaskItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentInstallingApps ¶
func GetCurrentInstallingApps() []model.InstalledApp
func IsInstalling ¶ added in v0.6.0
IsInstalling reports whether app id is queued or installing.
func RefreshApp ¶ added in v0.3.1
func RefreshApp(v model.InstalledApp)
func RefreshDeviceApps ¶ added in v0.3.0
func ReinstallApp ¶ added in v0.6.1
func ReinstallApp(v model.InstalledApp)
ReinstallApp queues the installed app for a full installation: the stored IPA is signed and installed from scratch instead of the refresh flow.
func ReloadTask ¶
func ReloadTask() error
func ScheduleRefreshApps ¶
func ScheduleRefreshApps() error
func StartInstallApps ¶ added in v0.3.7
func StartInstallApps(apps []model.InstalledApp, notify bool) int
StartInstallApps queues apps for installation and returns how many were queued.
func UpdateApp ¶ added in v0.6.0
func UpdateApp(target model.InstalledApp) bool
UpdateApp queues the installation of target, an installed app with a new build applied (see service.PrepareSourceUpdate). It returns false when the app is already installing.
Types ¶
type FailedAppInfo ¶ added in v0.3.4
type Task ¶
type Task struct {
InstallingApps sync.Map
InstallAppQueue chan TaskItem
InvalidAccounts map[string]bool
// RefreshingDevices prevents concurrent refresh operations for the same device UDID
RefreshingDevices sync.Map
// ExternalSkipLogged records the external certificate apps whose skipped
// automatic refresh was already logged, to log it once per app.
ExternalSkipLogged sync.Map
// contains filtered or unexported fields
}
func (*Task) CheckUpdates ¶ added in v0.6.0
func (t *Task) CheckUpdates()
CheckUpdates checks the tracked apps for new builds and notifies what changed. It never installs: automatic updates are installed by Run, during the refresh time window.
func (*Task) RunSchedule ¶
func (*Task) StartInstallApps ¶ added in v0.3.3
func (t *Task) StartInstallApps(apps []model.InstalledApp, notify bool) int
StartInstallApps queues apps for installation and returns how many were queued; apps already installing are skipped.