service

package
v0.0.0-...-3b3fe79 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MimeTypeJSON = "application/json"
)

Variables

This section is empty.

Functions

func ValidateSBOMFormat

func ValidateSBOMFormat(errFactory *errors.ErrorFactory, candidate string) error

Types

type SBOMResult

type SBOMResult struct {
	Doc      []byte
	MIMEType string
}

func DepGraphsToSBOM

func DepGraphsToSBOM(
	client *http.Client,
	apiURL string,
	orgID string,
	depGraphs []json.RawMessage,
	subject *Subject,
	t *Tool,
	format string,
	logger *log.Logger,
	errFactory *errors.ErrorFactory,
) (result *SBOMResult, err error)

type Subject

type Subject struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

func NewSubject

func NewSubject(name, version string) *Subject

type Tool

type Tool struct {
	Vendor  string `json:"vendor"`
	Name    string `json:"name"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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