task

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentInstallingApps

func GetCurrentInstallingApps() []model.InstalledApp

func IsInstalling added in v0.6.0

func IsInstalling(id uint) bool

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 RefreshDeviceApps(device model.Device) error

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 BatchInfo added in v0.3.4

type BatchInfo struct {
	ID           string
	TotalCount   int
	SuccessCount int
	FailedApps   []FailedAppInfo
	UpdatedApps  []string // localized "updated to" lines of successful source updates
	Notify       bool
}

type FailedAppInfo added in v0.3.4

type FailedAppInfo struct {
	AppName string
	Account string
	Error   string
}

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) Run

func (t *Task) Run()

func (*Task) RunSchedule

func (t *Task) RunSchedule() error

func (*Task) Start

func (t *Task) Start()

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.

func (*Task) Stop

func (t *Task) Stop()

Stop shuts down the Task. RunSchedule only replaces the cron schedule.

type TaskItem added in v0.3.0

type TaskItem struct {
	App     model.InstalledApp
	Notify  bool
	BatchID string
	Key     installOperationKey
	// Reinstall runs the full install flow for an existing app instead of
	// the refresh flow: the stored IPA is signed and installed from scratch.
	Reinstall bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL