obom

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OCI_ANNOTATION_DOCUMENT_NAME      = "org.spdx.name"
	OCI_ANNOTATION_DATA_LICENSE       = "org.spdx.license"
	OCI_ANNOTATION_DOCUMENT_NAMESPACE = "org.spdx.namespace"
	OCI_ANNOTATION_SPDX_VERSION       = "org.spdx.version"
	OCI_ANNOTATION_CREATION_DATE      = "org.spdx.created"
	OCI_ANNOTATION_ANNOTATOR          = "org.spdx.annotator"
	OCI_ANNOTATION_ANNOTATION_DATE    = "org.spdx.annotation_date"
)
View Source
const (
	MEDIATYPE_SPDX = "application/spdx+json"
)

Variables

This section is empty.

Functions

func GetAnnotations

func GetAnnotations(sbom *v2_3.Document) (map[string]string, error)

GetAnnotations returns the annotations from the SBOM

func GetFileDescriptor

func GetFileDescriptor(filename string) (*oci.Descriptor, error)

func GetFiles

func GetFiles(sbom *v2_3.Document) ([]string, error)

func GetPackages

func GetPackages(sbom *v2_3.Document) ([]string, error)

GetPackages returns the packages from the SBOM

func LoadSBOM

func LoadSBOM(filename string) (*v2_3.Document, *oci.Descriptor, error)

LoadSBOM loads an SPDX file into memory

func PrintSBOMSummary

func PrintSBOMSummary(doc *v2_3.Document, desc *oci.Descriptor)

PrintSBOMSummary returns the SPDX summary from the SBOM

func PushFiles

func PushFiles(filename string, reference string, spdx_annotations map[string]string, username string, password string) error

PushFiles pushes the SPDX SBOM file to the registry

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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