appWebhookSpecFromJSON is appWebhookSpec over a stored manifest.
(manifestJSON string)
| 46 | |
| 47 | // appWebhookSpecFromJSON is appWebhookSpec over a stored manifest. |
| 48 | func appWebhookSpecFromJSON(manifestJSON string) (*store.AppWebhookSpec, error) { |
| 49 | var m appmanifest.Manifest |
| 50 | if err := json.Unmarshal([]byte(manifestJSON), &m); err != nil { |
| 51 | return nil, err |
| 52 | } |
| 53 | return appWebhookSpec(&m), nil |
| 54 | } |
| 55 | |
| 56 | // appWebhookView is the owner-facing hook status, with the held notice. |
| 57 | type appWebhookView struct { |
nothing calls this directly
no test coverage detected