Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPURLEmpty = errors.New("purl empty error") ErrUnsupportedType = errors.New("unsupported type") )
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder(opts ...EncoderOption) *Encoder
type EncoderOption ¶ added in v0.67.1
type EncoderOption func(*Encoder)
func ForceRegenerate ¶ added in v0.67.1
func ForceRegenerate() EncoderOption
ForceRegenerate forces regeneration of BOM instead of reusing existing one
func WithBOMRef ¶ added in v0.67.1
func WithBOMRef() EncoderOption
WithBOMRef enables BOM-Ref generation for CycloneDX components
func WithParents ¶ added in v0.67.1
func WithParents() EncoderOption
WithParents enables holding parent maps in the BOM structure
Click to show internal directories.
Click to hide internal directories.