formats

package
v0.74.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllIDs added in v0.71.0

func AllIDs() (ids []sbom.FormatID)

func ByName

func ByName(name string) sbom.Format

ByName accepts a name@version string, such as:

spdx-json@2.1 or cyclonedx@2

func ByNameAndVersion added in v0.71.0

func ByNameAndVersion(name string, version string) sbom.Format

func Decode

func Decode(reader io.Reader) (*sbom.SBOM, sbom.Format, error)

Decode takes a reader for an SBOM and generates all internal SBOM elements.

func Encode

func Encode(s sbom.SBOM, f sbom.Format) ([]byte, error)

Encode takes all SBOM elements and a format option and encodes an SBOM document.

func Formats

func Formats() []sbom.Format

func Identify

func Identify(by []byte) sbom.Format

Types

This section is empty.

Jump to

Keyboard shortcuts

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