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
Click to show internal directories.
Click to hide internal directories.