syft

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SBOMImageTool

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

SBOMImageTool generates and serializes software bills of materials using Syft.

func NewSBOMImageTool

func NewSBOMImageTool() (*SBOMImageTool, error)

NewSBOMImageTool creates a new SBOMImageTool with default encoders.

func (*SBOMImageTool) Generate

func (s *SBOMImageTool) Generate(ctx context.Context, tarFile, outputFormat string) ([]byte, error)

Generate produces an SBOM from the given OCI tar file and serializes it in the requested format (e.g. "spdx-json").

func (*SBOMImageTool) GenerateSBOM

func (s *SBOMImageTool) GenerateSBOM(ctx context.Context, tarPath string) (*sbom.SBOM, error)

GenerateSBOM produces an SBOM from the given OCI tar archive.

func (*SBOMImageTool) SerializeSBOM

func (s *SBOMImageTool) SerializeSBOM(sbom *sbom.SBOM, outputFormat string) ([]byte, error)

SerializeSBOM encodes an SBOM into the specified output format (e.g. "spdx-json").

Jump to

Keyboard shortcuts

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