io

package
v0.71.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 23 Imported by: 8

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 Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(bom *core.BOM) *Decoder

func (*Decoder) Decode

func (m *Decoder) Decode(ctx context.Context, sbom *types.SBOM) error

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(opts ...EncoderOption) *Encoder

func (*Encoder) Encode

func (e *Encoder) Encode(report types.Report) (*core.BOM, error)

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

Jump to

Keyboard shortcuts

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