list

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	ReportID  string
	Cases     []grant.Case
	Config    ReportConfig
	Timestamp string
	Monitor   *event.ManualStagedProgress
	// contains filtered or unexported fields
}

func NewReport

func NewReport(rc ReportConfig, userRequests ...string) (*Report, error)

NewReport will generate a new report for the given format for the list command. The supplied policy is applied to all user requests. If no policy is provided, the default policy will be used If no requests are provided, an empty report will be generated If a request is provided, but the sbom cannot be generated, the source will be ignored and an error will be returned Where do we render packages that had no licenses?

func (*Report) Render

func (r *Report) Render() error

type ReportConfig

type ReportConfig struct {
	Options internal.ReportOptions
	Monitor *event.ManualStagedProgress
}

type Response

type Response struct {
	ReportID  string   `json:"report_id" yaml:"report_id"`
	Timestamp string   `json:"timestamp" yaml:"timestamp"`
	Inputs    []string `json:"inputs" yaml:"inputs"`
	Results   []Result `json:"results" yaml:"results"`
}

type Result

type Result struct {
	Input    string             `json:"input" yaml:"input"`
	License  internal.License   `json:"license" yaml:"license"`
	Packages []internal.Package `json:"packages" yaml:"packages"`
}

func NewResult

func NewResult(input string, gl grant.License, gp ...*grant.Package) Result

Jump to

Keyboard shortcuts

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