Documentation
¶
Index ¶
- Variables
- 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
- type Spec
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrArtifactEmpty = errors.New("artifact property is empty")
View Source
var ErrDocumentEmpty = errors.New("document is empty")
View Source
var ErrDocumentInvalid = errors.New("document invalid")
View Source
var ErrSourceEmpty = errors.New("source property is empty")
Functions ¶
func FileSPDXID ¶
FileSPDXID returns the spdx id of the file
func NewSpecification ¶
func NewSpecification() format.Specification
func PackageSPDXID ¶
PackageSPDXID returns the spdx id of the package
Types ¶
type JSONFormat ¶
type JSONFormat struct {
// contains filtered or unexported fields
}
JSONFormat is the json format of xspdx
func (*JSONFormat) Spec ¶
func (f *JSONFormat) Spec() format.Specification
func (*JSONFormat) Type ¶
func (f *JSONFormat) Type() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.