helpers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 9 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 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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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