-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Steve Taylor <[email protected]>
- Loading branch information
1 parent
b7a2351
commit ea6bf4e
Showing
5 changed files
with
930 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Package model - SBOM defines the struct and handles marshaling/unmarshaling the struct to/from NFT Storage. | ||
package model | ||
|
||
import "encoding/json" | ||
|
||
// SBOM defines a CycloneDX SBOM in JSON format | ||
type SBOM struct { | ||
Key string `json:"_key,omitempty"` | ||
ObjType string `json:"objtype,omitempty"` | ||
Content json.RawMessage `json:"content"` | ||
} | ||
|
||
// NewSBOM is the contructor that sets the appropriate default values | ||
func NewSBOM() *SBOM { | ||
return &SBOM{ObjType: "SBOM"} | ||
} |
Oops, something went wrong.