helpers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PurlTypeGuac  = "guac"
	PurlFilesGuac = "pkg:guac/files/"
	PurlPkgGuac   = "pkg:guac/pkg/"
)

Variables

This section is empty.

Functions

func CreateVulnInput added in v0.2.0

func CreateVulnInput(vulnID string) (*generated.VulnerabilityInputSpec, error)

func GuacFilePurl

func GuacFilePurl(alg string, digest string, filename *string) string

func GuacGenericPurl

func GuacGenericPurl(s string) string

func GuacPkgPurl

func GuacPkgPurl(pkgName string, pkgVersion *string) string

func IsVcs

func IsVcs(s string) bool

func PkgInputSpecToPurl added in v0.1.1

func PkgInputSpecToPurl(currentPkg *model.PkgInputSpec) string

func PkgToPurl

func PkgToPurl(purlType, namespace, name, version, subpath string, qualifiersList []string) string

func PurlToPkg

func PurlToPkg(purlUri string) (*model.PkgInputSpec, error)

PurlToPkg converts a purl URI string into a graphql package node

func SanitizeString

func SanitizeString(s string) string

func VcsToSrc

func VcsToSrc(vcsUri string) (*model.SourceInputSpec, error)

func VulnInputToVURI added in v0.2.0

func VulnInputToVURI(vuln *generated.VulnerabilityInputSpec) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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