Documentation ¶
Index ¶
- Constants
- func GetAnnotations(sbom *v2_3.Document) (map[string]string, error)
- func GetFileDescriptor(filename string) (*oci.Descriptor, error)
- func GetFiles(sbom *v2_3.Document) ([]string, error)
- func GetPackages(sbom *v2_3.Document) ([]string, error)
- func LoadSBOM(filename string) (*v2_3.Document, *oci.Descriptor, error)
- func PrintSBOMSummary(doc *v2_3.Document, desc *oci.Descriptor)
- func PushFiles(filename string, reference string, spdx_annotations map[string]string, ...) error
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 ¶
GetAnnotations returns the annotations from the SBOM
func GetFileDescriptor ¶
func GetFileDescriptor(filename string) (*oci.Descriptor, error)
func GetPackages ¶
GetPackages returns the packages from the SBOM
func PrintSBOMSummary ¶
func PrintSBOMSummary(doc *v2_3.Document, desc *oci.Descriptor)
PrintSBOMSummary returns the SPDX summary from the SBOM
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.