Documentation
¶
Index ¶
Constants ¶
View Source
const SEP = "-"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Format ¶
type Format interface { Spec() Specification // Specification returns the spec of this format Type() string // Type returns the format type Load(reader io.Reader) error // Load loads a sbom from reader Dump(writer io.Writer) error // Dump dumps a sbom to writer }
Format is a sbom file format
type Specification ¶
type Specification interface { Name() string // Name returns the spec name Version() string // Version returns the spec version Metadata() model.Metadata // Metadata returns the metadata,e.g. creator / tool / created Validate() error // Validate validates the spec Formats() []Format // Formats returns all formats of this spec FromModel(*model.SBOM) // FromModel converts a SBOM model to spec ToModel() *model.SBOM // ToModel converts spec to a SBOM model Updaters() []Updater }
Specification is a sbom specfication
Click to show internal directories.
Click to hide internal directories.