Documentation ¶
Index ¶
- Constants
- 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 OSVToGHSACVE(OSVId string) (*generated.CVEInputSpec, *generated.GHSAInputSpec, error)
- 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)
Constants ¶
View Source
const ( PurlTypeGuac = "guac" PurlFilesGuac = "pkg:guac/files/" PurlPkgGuac = "pkg:guac/pkg/" )
Variables ¶
This section is empty.
Functions ¶
func GuacGenericPurl ¶
func GuacPkgPurl ¶
func OSVToGHSACVE ¶
func OSVToGHSACVE(OSVId string) (*generated.CVEInputSpec, *generated.GHSAInputSpec, error)
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.