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

Method IsSigned

src/storage/app.go:103–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func (a *app) IsSigned() (bool, error) {
104 a.mu.RLock()
105 defer a.mu.RUnlock()
106 if _, err := os.Stat(a.resolvePath(AppSignedFile)); os.IsNotExist(err) {
107 return false, nil
108 } else if err != nil {
109 return false, err
110 }
111 return true, nil
112}
113
114func (a *app) GetId() string {
115 return a.id

Callers

nothing calls this directly

Calls 1

StatMethod · 0.65

Tested by

no test coverage detected