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

Method GetBinaryUpdateFile

service/instance.go:478–484  ·  view source on GitHub ↗

GetBinaryUpdateFile returns the file path of a binary update file.

(name string)

Source from the content-addressed store, hash-verified

476
477// GetBinaryUpdateFile returns the file path of a binary update file.
478func (i *Instance) GetBinaryUpdateFile(name string) (path string, err error) {
479 file, err := i.binaryUpdates.GetFile(name)
480 if err != nil {
481 return "", err
482 }
483 return file.Path(), nil
484}
485
486// IntelUpdates returns the updates module.
487func (i *Instance) IntelUpdates() *updates.Updater {

Callers

nothing calls this directly

Calls 2

GetFileMethod · 0.80
PathMethod · 0.65

Tested by

no test coverage detected