unserializers

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDX

type CDX struct {
	// contains filtered or unexported fields
}

func NewCDX

func NewCDX(version, encoding string) *CDX

func (*CDX) Unserialize

func (u *CDX) Unserialize(r io.Reader, _ *native.UnserializeOptions, _ interface{}) (*sbom.Document, error)

Unserialize reads datq data from io.Reader r and parses it as a CycloneDX document. If successful returns a protobom Document loaded with the SBOM data.

type SPDX23

type SPDX23 struct{}

func NewSPDX23

func NewSPDX23() *SPDX23

func (*SPDX23) Unserialize

func (u *SPDX23) Unserialize(r io.Reader, _ *native.UnserializeOptions, _ interface{}) (*sbom.Document, error)

ParseStream reads an io.Reader to parse an SPDX 2.3 document from it

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL