Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add pub and bitnami types #60

Merged
merged 2 commits into from
Aug 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions packageurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ var (
TypeApk = "apk"
// TypeBitbucket is a pkg:bitbucket purl.
TypeBitbucket = "bitbucket"
// TypeCocoapods is a pkg:cocoapods purl.
TypeCocoapods = "cocoapods"
// TypeBitnami is a pkg:bitnami purl.
TypeBitnami = "bitnami"
// TypeCargo is a pkg:cargo purl.
TypeCargo = "cargo"
// TypeCocoapods is a pkg:cocoapods purl.
TypeCocoapods = "cocoapods"
// TypeComposer is a pkg:composer purl.
TypeComposer = "composer"
// TypeConan is a pkg:conan purl.
Expand All @@ -80,30 +82,32 @@ var (
TypeHackage = "hackage"
// TypeHex is a pkg:hex purl.
TypeHex = "hex"
// TypeHuggingface is pkg:huggingface purl.
TypeHuggingface = "huggingface"
// TypeJulia is a pkg:julia purl
TypeJulia = "julia"
// TypeMLflow is pkg:mlflow purl.
TypeMLFlow = "mlflow"
// TypeMaven is a pkg:maven purl.
TypeMaven = "maven"
// TypeNPM is a pkg:npm purl.
TypeNPM = "npm"
// TypeNuget is a pkg:nuget purl.
TypeNuget = "nuget"
// TypeQPKG is a pkg:qpkg purl.
TypeQpkg = "qpkg"
// TypeOCI is a pkg:oci purl
TypeOCI = "oci"
// TypePub is a pkg:pub purl.
TypePub = "pub"
// TypePyPi is a pkg:pypi purl.
TypePyPi = "pypi"
// TypeQPKG is a pkg:qpkg purl.
TypeQpkg = "qpkg"
// TypeRPM is a pkg:rpm purl.
TypeRPM = "rpm"
// TypeSWID is pkg:swid purl
TypeSWID = "swid"
// TypeSwift is pkg:swift purl
TypeSwift = "swift"
// TypeHuggingface is pkg:huggingface purl.
TypeHuggingface = "huggingface"
// TypeMLflow is pkg:mlflow purl.
TypeMLFlow = "mlflow"
// TypeJulia is a pkg:julia purl
TypeJulia = "julia"
)

// Qualifier represents a single key=value qualifier in the package url
Expand Down Expand Up @@ -379,6 +383,7 @@ func typeAdjustName(purlType, name string, qualifiers Qualifiers) string {
case TypeAlpm,
TypeApk,
TypeBitbucket,
TypeBitnami,
TypeComposer,
TypeDebian,
TypeGithub,
Expand Down