Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToComponent ¶
ToComponent converts a gomod.Module to a CycloneDX component. The component can be further customized using options, before it's returned.
Types ¶
type Option ¶
func WithComponentType ¶
func WithComponentType(ctype cdx.ComponentType) Option
WithComponentType overrides the type of the component.
func WithLicenses ¶
WithLicenses attempts to resolve licenses for the module and attach them to the component's license evidence.
func WithModuleHashes ¶
func WithModuleHashes() Option
func WithTestScope ¶
WithTestScope overrides the scope of the component, if the corresponding module has the TestOnly flag set.
Click to show internal directories.
Click to hide internal directories.