Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidFormats = []Format{JSON, Table, CSV}
Functions ¶
func NewReportID ¶
func NewReportID() string
Types ¶
type Format ¶
type Format string
func ValidateFormat ¶
ValidateFormat returns a valid format or the default format if the given format is invalid
type License ¶
type License struct { SPDXExpression string `json:"spdx_expression" yaml:"spdx_expression"` Name string `json:"name" yaml:"name"` Locations []string `json:"locations" yaml:"locations"` Reference string `json:"reference" yaml:"reference"` IsDeprecated bool `json:"is_deprecated" yaml:"is_deprecated"` LicenseID string `json:"license_id" yaml:"license_id"` SeeAlso []string `json:"see_also" yaml:"see_also"` IsOsiApproved bool `json:"is_osi_approved" yaml:"is_osi_approved"` }
func NewLicense ¶
type Package ¶
type Package struct { Name string `json:"name" yaml:"name"` Version string `json:"version" yaml:"version"` Type string `json:"type" yaml:"type"` Locations []string `json:"locations" yaml:"locations"` }
func NewPackage ¶
func NewPackages ¶
Click to show internal directories.
Click to hide internal directories.