Updater provides access to released artifacts.
| 150 | |
| 151 | // Updater provides access to released artifacts. |
| 152 | type Updater struct { |
| 153 | m *mgr.Manager |
| 154 | states *mgr.StateMgr |
| 155 | cfg Config |
| 156 | |
| 157 | index *Index |
| 158 | indexLock sync.Mutex |
| 159 | |
| 160 | updateCheckWorkerMgr *mgr.WorkerMgr |
| 161 | upgradeWorkerMgr *mgr.WorkerMgr |
| 162 | |
| 163 | EventResourcesUpdated *mgr.EventMgr[struct{}] |
| 164 | |
| 165 | corruptedInstallation error |
| 166 | |
| 167 | isUpdateRunning *abool.AtomicBool |
| 168 | started *abool.AtomicBool |
| 169 | configureLock sync.Mutex |
| 170 | |
| 171 | instance instance |
| 172 | } |
| 173 | |
| 174 | // New returns a new Updates module. |
| 175 | func New(instance instance, name string, cfg Config) (*Updater, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected