purl

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

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

func FromString(purl string) (*PackageURL, error)

func NewPackageURL

func NewPackageURL(t string, metadata types.Metadata, pkg ftypes.Package) (PackageURL, error)

nolint: gocyclo

func (*PackageURL) BOMRef

func (p *PackageURL) BOMRef() string

func (*PackageURL) IsOSPkg

func (p *PackageURL) IsOSPkg() bool

func (*PackageURL) Package

func (p *PackageURL) Package() *ftypes.Package

func (*PackageURL) PackageType added in v0.44.0

func (p *PackageURL) PackageType() string

PackageType returns an application type in Vul

Jump to

Keyboard shortcuts

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