sbom

package
v1.15.13 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package sbom contains the logic for fetching and listing SBOMs needed for ace-dt sbom subcommands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchImageSBOM

func FetchImageSBOM(ctx context.Context, ref string, repository oras.GraphTarget, platforms []string) (map[string]*io.ReadCloser, error)

FetchImageSBOM accepts a reference, repository, and optional platforms and returns a map of platform-->SBOM ReadCloser for printing to stdout or saving to file.

func GetListofSBOMS

func GetListofSBOMS(ctx context.Context,
	artifact, image string,
	repository *remote.Repository,
	concurrency int,
	platforms []string) ([][]string, error)

GetListofSBOMS accepts a mirror gather artifact and/or image string reference and creates a slice of string slices of references and SBOMS that are compatible with the table printer functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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