Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeAPK = "apk" // not defined in github.com/package-url/packageurl-go TypeOCI = "oci" TypeDart = "dart" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageURL ¶
type PackageURL struct { packageurl.PackageURL FilePath string }
func FromString ¶ added in v0.30.0
func FromString(purl string) (*PackageURL, error)
func NewPackageURL ¶
nolint: gocyclo
func (*PackageURL) BOMRef ¶
func (p *PackageURL) BOMRef() string
func (*PackageURL) IsOSPkg ¶ added in v0.36.0
func (p *PackageURL) IsOSPkg() bool
func (*PackageURL) Package ¶ added in v0.30.0
func (p *PackageURL) Package() *ftypes.Package
func (*PackageURL) PackageType ¶ added in v0.36.0
func (p *PackageURL) PackageType() string
PackageType returns an application type in Trivy
Click to show internal directories.
Click to hide internal directories.