Function
makeSoftware
(ts int64, product, website, sourceName, sourceData, flowIdent, communityID string)
Source from the content-addressed store, hash-verified
| 38 | } |
| 39 | |
| 40 | func makeSoftware(ts int64, product, website, sourceName, sourceData, flowIdent, communityID string) *AtomicSoftware { |
| 41 | var communityIDs []string |
| 42 | if communityID != "" { |
| 43 | communityIDs = []string{communityID} |
| 44 | } |
| 45 | return &AtomicSoftware{ |
| 46 | Software: &types.Software{ |
| 47 | Timestamp: ts, |
| 48 | Product: product, |
| 49 | Notes: "", // TODO: add info from implies field |
| 50 | Website: website, |
| 51 | SourceName: sourceName, |
| 52 | SourceData: sourceData, |
| 53 | Service: "HTTP", |
| 54 | Flows: []string{flowIdent}, |
| 55 | CommunityIDs: communityIDs, |
| 56 | }, |
| 57 | } |
| 58 | } |
Tested by
no test coverage detected