Help us shape the future of Go! Take the 2026 Go Developer Survey

syft

package
v1.538.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSBOM

func GenerateSBOM(syftDownloadURL, dockerConfigDir string, execRunner command.ExecRunner, fileUtils piperutils.FileUtils, httpClient piperhttp.Sender, registryURL string, images []string) error

Types

type SyftScanner added in v1.363.0

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

func CreateSyftScanner added in v1.363.0

func CreateSyftScanner(syftDownloadURL string, fileUtils piperutils.FileUtils, httpClient piperhttp.Sender) (*SyftScanner, error)

func (*SyftScanner) AddArgument added in v1.363.0

func (s *SyftScanner) AddArgument(arg string)

func (*SyftScanner) ScanImageTo added in v1.528.0

func (s *SyftScanner) ScanImageTo(dockerConfigDir string, execRunner command.ExecRunner, registryURL, image, outputFile string, extraArgs ...string) error

ScanImageTo scans a single image and writes the SBOM to the given output file. Extra arguments (e.g. "--platform=linux/arm64") are forwarded directly to syft so the scanner instance is not mutated and can be safely reused across multiple calls.

func (*SyftScanner) ScanImages added in v1.363.0

func (s *SyftScanner) ScanImages(dockerConfigDir string, execRunner command.ExecRunner, registryURL string, images []string) error

Jump to

Keyboard shortcuts

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