MCPcopy Create free account
hub / github.com/SignTools/SignTools / GetAll

Method GetAll

src/storage/app_resolver.go:38–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (r *appResolver) GetAll() ([]App, error) {
39 r.mutex.Lock()
40 defer r.mutex.Unlock()
41 var apps []App
42 for _, app := range r.idToAppMap {
43 apps = append(apps, app)
44 }
45 // reverse sort
46 sort.Slice(apps, func(i, j int) bool {
47 time1, _ := apps[i].GetModTime()
48 time2, _ := apps[j].GetModTime()
49 return time1.After(time2)
50 })
51 return apps, nil
52}
53
54func (r *appResolver) Get(id string) (App, bool) {
55 r.mutex.Lock()

Callers 3

validateManifestFunction · 0.45
validateFileFunction · 0.45
renderIndexFunction · 0.45

Calls 1

GetModTimeMethod · 0.65

Tested by 2

validateManifestFunction · 0.36
validateFileFunction · 0.36