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
- type TagValueFormat
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDocumentEmpty = errors.New("document empty")
View Source
var ErrDocumentInvalid = errors.New("document invalid")
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 spdx
func (*JSONFormat) Spec ¶
func (f *JSONFormat) Spec() format.Specification
func (*JSONFormat) Type ¶
func (f *JSONFormat) Type() string
type Spec ¶
type Spec struct {
// contains filtered or unexported fields
}
Spec is the specification os SPDX see https://spdx.github.io/spdx-spec/
type TagValueFormat ¶
type TagValueFormat struct {
// contains filtered or unexported fields
}
TagValueFormat is the tagvalue format of spdx
func (*TagValueFormat) Spec ¶
func (f *TagValueFormat) Spec() format.Specification
func (*TagValueFormat) Type ¶
func (f *TagValueFormat) Type() string
Click to show internal directories.
Click to hide internal directories.