component

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCPE

func AddCPE(c *cyclonedx.Component, cpe string)

AddCPE adds a CPE to the given cyclonedx.Component. The CPE should be a CPE 2.3 identifier.

func AddDescription

func AddDescription(c *cyclonedx.Component, description string)

AddDescription adds a description to the given cyclonedx.Component. The description should be a found on the package's website or in the package's metadata.

func AddLayer added in v1.13.0

func AddLayer(c *cyclonedx.Component, layer string)

func AddLicense

func AddLicense(c *cyclonedx.Component, license string)

AddLicense adds a license to the given cyclonedx.Component. The license should be a SPDX license identifier.

https://spdx.org/licenses/

func AddOrigin

func AddOrigin(c *cyclonedx.Component, origin string)

AddOrigin adds an origin to the given cyclonedx.Component. The origin should be the package's location on the filesystem.

func AddRawMetadata added in v1.12.3

func AddRawMetadata(c *cyclonedx.Component, metadata []byte)

AddRawMetadata adds raw metadata to the given cyclonedx.Component. The metadata should be in string value.

func AddRefQualifier added in v1.13.0

func AddRefQualifier(c *cyclonedx.Component, qualifiers map[string]string)

func AddType

func AddType(c *cyclonedx.Component, componentType string)

AddType adds a type to the given cyclonedx.Component. The type should be one of the package types defined in the Scanner Module.

func New

func New(name, version, category string) *cyclonedx.Component

New creates a new cyclonedx.Component with the given name, version, and category.

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