MCPcopy
hub / github.com/safing/portmaster / Updater

Struct Updater

service/updates/module.go:152–172  ·  view source on GitHub ↗

Updater provides access to released artifacts.

Source from the content-addressed store, hash-verified

150
151// Updater provides access to released artifacts.
152type 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.
175func New(instance instance, name string, cfg Config) (*Updater, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected