serializers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDX

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

func NewCDX

func NewCDX(version, encoding string) *CDX

func (*CDX) Render

func (s *CDX) Render(doc interface{}, wr io.Writer, o *native.RenderOptions, _ interface{}) error

Render calls the official CDX serializer to render the BOM into a specific version

func (*CDX) Serialize

func (s *CDX) Serialize(bom *sbom.Document, _ *native.SerializeOptions, _ interface{}) (interface{}, error)

type SPDX3Options

type SPDX3Options struct {
	Indent int
}

type SPDX23

type SPDX23 struct{}

func NewSPDX23

func NewSPDX23() *SPDX23

func (*SPDX23) Render

func (s *SPDX23) Render(doc interface{}, wr io.Writer, o *native.RenderOptions, _ interface{}) error

func (*SPDX23) Serialize

func (s *SPDX23) Serialize(bom *sbom.Document, _ *native.SerializeOptions, _ interface{}) (interface{}, error)

Serialize takes a protobom and returns an SPDX 2.3 struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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