purl

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

View Source
const (
	TypeOCI = "oci"
)

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

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

nolint: gocyclo

func (*PackageURL) AppType added in v0.30.0

func (p *PackageURL) AppType() string

AppType returns an application type in Trivy

func (PackageURL) BOMRef

func (purl PackageURL) BOMRef() string

func (*PackageURL) Package added in v0.30.0

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

Jump to

Keyboard shortcuts

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