Versions in this module Expand all Collapse all v0 v0.1.0 Jan 22, 2024 Changes in this version + var ErrDocumentEmpty = errors.New("document empty") + var ErrDocumentInvalid = errors.New("document invalid") + func FileSPDXID(file *model.File) spdx.ElementID + func NewSpecification() format.Specification + func PackageSPDXID(pkg *model.Package) spdx.ElementID + func SPDXID(content string) string + type JSONFormat struct + func (f *JSONFormat) Dump(writer io.Writer) error + func (f *JSONFormat) Load(reader io.Reader) error + func (f *JSONFormat) Spec() format.Specification + func (f *JSONFormat) Type() string + type Spec struct + func (s *Spec) Formats() []format.Format + func (s *Spec) FromModel(sbomDoc *model.SBOM) + func (s *Spec) Metadata() model.Metadata + func (s *Spec) Name() string + func (s *Spec) ToModel() *model.SBOM + func (s *Spec) Updaters() []format.Updater + func (s *Spec) Validate() error + func (s *Spec) Version() string + type TagValueFormat struct + func (f *TagValueFormat) Dump(writer io.Writer) error + func (f *TagValueFormat) Load(reader io.Reader) error + func (f *TagValueFormat) Spec() format.Specification + func (f *TagValueFormat) Type() string