Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { Image *string SbomFile *string Output *string Quiet *bool OutputFile *string EnabledParsers *[]string DisableFileListing *bool SecretContentRegex *string DisableSecretSearch *bool SecretMaxFileSize int64 RegistryURI *string RegistryUsername *string RegistryPassword *string RegistryToken *string Dir *string Tar *string ExcludedFilenames *[]string FailCriteria *string IgnorePackageNames *string IgnoreCVEs *string SkipDbUpdate *bool ForceDbUpdate *bool }
func NewArguments ¶ added in v1.3.0
func NewArguments() *Arguments
type CreationInfo ¶
type CreationInfo struct { Created time.Time `json:"created" xml:"created"` Creators []string `json:"creators" xml:"creators"` LicenseListVersion string `json:"licenseListVersion" xml:"licenseListVersion"` }
CreationInfo Model
type Description ¶
type Distro ¶
type Distro struct { PrettyName string `json:"prettyName,omitempty"` Name string `json:"name,omitempty"` ID string `json:"id,omitempty"` IDLike []string `json:"idLike,omitempty"` Version string `json:"version,omitempty"` VersionID string `json:"versionID,omitempty"` DistribID string `json:"distribID,omitempty"` DistribDescription string `json:"distribDescription,omitempty"` DistribCodename string `json:"versionCodename,omitempty"` HomeURL string `json:"homeURL,omitempty"` SupportURL string `json:"supportURL,omitempty"` BugReportURL string `json:"bugReportURL,omitempty"` PrivacyPolicyURL string `json:"privacyPolicyURL,omitempty"` }
Distro docker image distro
type ExternalRef ¶
type ExternalRef struct { ReferenceCategory string `json:"referenceCategory,omitempty" xml:"referenceCategory,omitempty"` ReferenceLocator string `json:"referenceLocator,omitempty" xml:"referenceLocator,omitempty"` ReferenceType string `json:"referenceType,omitempty" xml:"referenceType,omitempty"` }
ExternalRef Model
type Remediation ¶
type SecretConfig ¶
type SecretResults ¶
type SecretResults struct { Configuration SecretConfig `json:"applied-configuration"` Secrets []Secret `json:"secrets"` }
type SpdxDocument ¶
type SpdxDocument struct { SPDXID string `json:"SPDXID" xml:"SPDXID"` Name string `json:"name,omitempty" xml:"name,omitempty"` SpdxVersion string `json:"spdxVersion" xml:"spdxVersion,omitempty"` CreationInfo CreationInfo `json:"creationInfo" xml:"creationInfo,omitempty"` DataLicense string `json:"dataLicense" xml:"dataLicense,omitempty"` DocumentNamespace string `json:"documentNamespace" xml:"documentNamespace,omitempty"` // SpdxJsonPackages Actual Packages SpdxPackages []SpdxPackage `json:"packages,omitempty" xml:"packages>package,omitempty"` }
type SpdxPackage ¶
type SpdxPackage struct { SpdxID string `json:"SPDXID" xml:"SPDXID,omitempty"` Name string `json:"name,omitempty" xml:"name,omitempty"` LicenseConcluded string `json:"licenseConcluded,omitempty" xml:"licenseConcluded,omitempty"` Description string `json:"description,omitempty" xml:"description,omitempty"` DownloadLocation string `json:"downloadLocation,omitempty" xml:"downloadLocation,omitempty"` ExternalRefs []ExternalRef `json:"externalRefs,omitempty" xml:"externalRefs>externalRef,omitempty"` FilesAnalyzed bool `json:"filesAnalyzed" xml:"filesAnalyzed"` Homepage string `json:"homepage,omitempty" xml:"homepage,omitempty"` LicenseDeclared string `json:"licenseDeclared,omitempty" xml:"licenseDeclared,omitempty"` Originator string `json:"originator,omitempty" xml:"originator,omitempty"` SourceInfo string `json:"sourceInfo,omitempty" xml:"sourceInfo,omitempty"` VersionInfo string `json:"versionInfo,omitempty" xml:"versionInfo,omitempty"` Copyright string `json:"copyright,omitempty" xml:"copyright,omitempty"` Vulnerabilities *[]Vulnerability `json:"vulnerabilities,omitempty" xml:"vulnerabilities>vulnerability,omitempty"` }
type Vulnerability ¶
type Vulnerability struct { bun.BaseModel `bun:"table:vulnerability,alias:v"` ID int64 `json:"id" bun:"id,pk,autoincrement"` CVE string `json:"cve,omitempty"` Package string `json:"package,omitempty"` Criteria Criteria `json:"criteria,omitempty"` CVSS CVSS `json:"cvss,omitempty"` Remediation *Remediation `json:"remediation,omitempty"` Reference Reference `json:"references,omitempty"` Description Description `json:"descriptions,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.