Versions in this module Expand all Collapse all v1 v1.8.1 Jun 30, 2024 Changes in this version + const AllVersions + func Decode(reader io.Reader) (*sbom.SBOM, sbom.FormatID, string, error) + func Decoders() []sbom.FormatDecoder + func Encode(s sbom.SBOM, f sbom.FormatEncoder) ([]byte, error) + func Encoders() []sbom.FormatEncoder + func Identify(reader io.Reader) (sbom.FormatID, string) + func NewDecoderCollection(decoders ...sbom.FormatDecoder) sbom.FormatDecoder + type DecoderCollection struct + func (c *DecoderCollection) Decode(r io.Reader) (*sbom.SBOM, sbom.FormatID, string, error) + func (c *DecoderCollection) Identify(r io.Reader) (sbom.FormatID, string) + type EncoderCollection struct + func NewEncoderCollection(encoders ...sbom.FormatEncoder) *EncoderCollection + func (e EncoderCollection) Aliases() []string + func (e EncoderCollection) Get(name string, version string) sbom.FormatEncoder + func (e EncoderCollection) GetByString(s string) sbom.FormatEncoder + func (e EncoderCollection) IDs() []sbom.FormatID + func (e EncoderCollection) NameVersions() []string + type EncodersConfig struct + CyclonedxJSON cyclonedxjson.EncoderConfig + CyclonedxXML cyclonedxxml.EncoderConfig + SPDXJSON spdxjson.EncoderConfig + SPDXTagValue spdxtagvalue.EncoderConfig + SyftJSON syftjson.EncoderConfig + Template template.EncoderConfig + func DefaultEncodersConfig() EncodersConfig + func (o EncodersConfig) Encoders() ([]sbom.FormatEncoder, error)