MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / NewBomSWDocument

Function NewBomSWDocument

opensca/model/bomsw.go:77–96  ·  view source on GitHub ↗
(name, creator string)

Source from the content-addressed store, hash-verified

75}
76
77func NewBomSWDocument(name, creator string) *BomSWDocument {
78 version := "1.0.0"
79 timestamp := time.Now().Format("2006-01-02T15:04:05MST")
80 return &BomSWDocument{
81 Basic: swBasicInfo{
82 DocumentName: name,
83 DocumentVersion: version,
84 DocumentTime: timestamp,
85 SbomFormat: "BOM-SW 1.0",
86 ToolInfo: creator,
87 SbomAuthor: "",
88 SbomAuthorComments: "",
89 SbomComments: "",
90 SbomType: "analyzed",
91 },
92 Software: swSoftwareCompositionInfo{
93 Dependencies: []swDependencies{},
94 },
95 }
96}
97
98func (doc *BomSWDocument) AppendComponents(fn func(*BomSWComponent)) {
99 c := BomSWComponent{

Callers 1

bomSWDocFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected