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

Method UpdateFromURL

service/updates/module.go:489–496  ·  view source on GitHub ↗

UpdateFromURL installs an update from the provided url.

(url string)

Source from the content-addressed store, hash-verified

487
488// UpdateFromURL installs an update from the provided url.
489func (u *Updater) UpdateFromURL(url string) error {
490 u.m.Go("custom update from url", func(w *mgr.WorkerCtx) error {
491 _ = u.updateAndUpgrade(w, []string{url}, true, true)
492 return nil
493 })
494
495 return nil
496}
497
498// Configure makes slight configuration changes to the updater.
499// It locks the index, which can take a while an update is running.

Callers 1

registerAPIEndpointsFunction · 0.80

Calls 2

updateAndUpgradeMethod · 0.95
GoMethod · 0.45

Tested by

no test coverage detected