package
0.0.0-20221128093957-de1fd8bb5053
Repository: https://github.com/seal-io/meta-api.git
Documentation: pkg.go.dev

# Functions

FromString parses a valid package url string into a PackageURL structure.
IsDistroPackage returns true if the given package qualifiers has a distro limitation.
IsLinuxPackage returns true if the given package type is managed by some kinds of Linux Package Manager.
NewPackageURL creates a new PackageURL struct instance based on input.
QualifiersFromMap constructs a Qualifiers slice from a string map.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

TypeAlpine is a pkg:alpine purl for Alpine Linux, default repository is https://dl-cdn.alpinelinux.org/alpine/.
TypeALPM is a pkg:alpm purl for Arch Linux and other users of the libalpm/pacman package manager, no default package repository.
TypeBitbucket is a pkg:bitbucket purl for Bitbucket-based packages, default repository is https://bitbucket.org.
TypeCargo is a pkg:cargo purl for Rust packages, default repository is https://crates.io/.
TypeCocoapods is a pkg:cocoapods purl for Cocoapods, default repository is https://cdn.cocoapods.org/.
TypeComposer is a pkg:composer purl for Composer PHP packages, default repository is https://packagist.org.
TypeConan is a pkg:conan purl for Conan C/C++ packages, default repository is https://center.conan.io.
TypeConda is a pkg:conda purl for Conda packages, default repository is https://repo.anaconda.com.
TypeCran is a pkg:cran purl for CRAN R packages, default repository is https://cran.r-project.org.
TypeDebian is a pkg:deb purl for Debian, Debian derivatives, and Ubuntu packages, no default package repository.
TypeDocker is a pkg:docker purl for Docker images, default repository is https://hub.docker.com.
TypeGem is a pkg:gem purl for Rubygems packages, default repository is https://rubygems.org.
TypeGeneric is a pkg:generic purl for plain, generic packages that do not fit anywhere else such as for "upstream-from-distro" packages.
TypeGithub is a pkg:github purl for Github-based packages, default repository is https://github.com.
TypeGolang is a pkg:golang purl for Go packages, no default package repository.
TypeHackage is a pkg:hackage purl for Haskell packages, default repository is https://hackage.haskell.org.
TypeHex is a pkg:hex purl for Hex packages, default repository is https://repo.hex.pm.
TypeMaven is a pkg:maven purl for Maven packages, default repository is https://repo.maven.apache.org/maven2.
TypeNPM is a pkg:npm purl for Node NPM packages, default repository is https://registry.npmjs.org.
TypeNuget is a pkg:nuget purl for NuGet .NET packages, default repository is https://www.nuget.org.
TypeOCI is a pkg:oci purl for all artifacts stored in registries that conform to the OCI Distribution Specification, including container images built by Docker and others, no canonical package repository for OCI artifacts.
TypePub is a pkg:pub purl for Dart and Flutter packages, default repository is https://pub.dartlang.org.
TypePyPi is a pkg:pypi purl for Python packages, default repository is https://pypi.python.org.
TypeRPM is a pkg:rpm purl for RPMs, no default package repository.
TypeSWID is a pkg:swid purl for ISO-IEC 19770-2 Software Identification (SWID) tags.
TypeSwift is pkg:swift purl for Swift packages, no default package repository.

# Variables

QualifierKeyPattern describes a valid qualifier key: - The key must be composed only of ASCII letters and numbers, '.', '-' and '_' (period, dash and underscore).

# Structs

PackageURL is the struct representation of the parts that make a package url.
Qualifier represents a single key=value qualifier in the package url.

# Type aliases

No description provided by the author
Qualifiers is a slice of key=value pairs, with order preserved as it appears in the package URL.