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

Method Delete

src/storage/app_resolver.go:75–89  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

73}
74
75func (r *appResolver) Delete(id string) error {
76 r.mutex.Lock()
77 app, ok := r.idToAppMap[id]
78 if !ok {
79 r.mutex.Unlock()
80 return nil
81 }
82 appId := app.GetId()
83 delete(r.idToAppMap, appId)
84 r.mutex.Unlock()
85 if err := app.delete(); err != nil {
86 return errors.WithMessagef(err, "delete app id=%s", appId)
87 }
88 return nil
89}

Callers 6

uploadSignedAppFunction · 0.45
deleteAppFunction · 0.45
uploadUnsignedAppFunction · 0.45
TakeLastJobMethod · 0.45
CleanupMethod · 0.45
SetSecretsMethod · 0.45

Calls 2

GetIdMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected