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

Method Delete

src/storage/upload_resolver.go:85–99  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

83}
84
85func (r *uploadResolver) Delete(id string) error {
86 r.mu.Lock()
87 upload, ok := r.idToUploadMap[id]
88 if !ok {
89 r.mu.Unlock()
90 return nil
91 }
92 uploadId := upload.GetId()
93 delete(r.idToUploadMap, uploadId)
94 r.mu.Unlock()
95 if err := upload.delete(); err != nil {
96 return errors.WithMessagef(err, "delete upload id=%s", uploadId)
97 }
98 return nil
99}

Callers

nothing calls this directly

Calls 2

GetIdMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected