Documentation ¶
Index ¶
- Constants
- func CreateVulnInput(vulnID string) (*generated.VulnerabilityInputSpec, error)
- func GuacFilePurl(alg string, digest string, filename *string) string
- func GuacGenericPurl(s string) string
- func GuacPkgPurl(pkgName string, pkgVersion *string) string
- func IsVcs(s string) bool
- func PkgInputSpecToPurl(currentPkg *model.PkgInputSpec) string
- func PkgToPurl(purlType, namespace, name, version, subpath string, qualifiersList []string) string
- func PurlToPkg(purlUri string) (*model.PkgInputSpec, error)
- func SanitizeString(s string) string
- func VcsToSrc(vcsUri string) (*model.SourceInputSpec, error)
- func VulnInputToVURI(vuln *generated.VulnerabilityInputSpec) string
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 GuacGenericPurl ¶
func GuacPkgPurl ¶
func PkgInputSpecToPurl ¶ added in v0.1.1
func PkgInputSpecToPurl(currentPkg *model.PkgInputSpec) string
func PurlToPkg ¶
func PurlToPkg(purlUri string) (*model.PkgInputSpec, error)
PurlToPkg converts a purl URI string into a graphql package node
func SanitizeString ¶
func VulnInputToVURI ¶ added in v0.2.0
func VulnInputToVURI(vuln *generated.VulnerabilityInputSpec) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.