Versions in this module Expand all Collapse all v1 v1.0.0 Mar 1, 2024 Changes in this version + const AlpmDBGlob + const ApkDBGlob + const DpkgDBGlob + const EvidenceAnnotationKey + const PURLQualifierArch + const PURLQualifierDistro + const PURLQualifierEpoch + const PURLQualifierUpstream + const PURLQualifierVCSURL + const PrimaryEvidenceAnnotation + const RpmDBGlob + const RpmManifestGlob + const SupportingEvidenceAnnotation + var AllLanguages = []Language + var AllPkgs = []Type + func IsValid(p *Package) bool + func Less(i, j Package) bool + func PURLQualifiers(vars map[string]string, release *linux.Release) (q packageurl.Qualifiers) + func Sort(pkgs []Package) + type AlpmDBEntry struct + Architecture string + Backup []AlpmFileRecord + BasePackage string + Description string + Files []AlpmFileRecord + Package string + Packager string + Reason int + Size int + URL string + Validation string + Version string + func (m AlpmDBEntry) OwnedFiles() (result []string) + type AlpmFileRecord struct + Digests []file.Digest + GID string + Link string + Path string + Size string + Time time.Time + Type string + UID string + type ApkDBEntry struct + Architecture string + Checksum string + Dependencies []string + Description string + Files []ApkFileRecord + GitCommit string + InstalledSize int + Maintainer string + OriginPackage string + Package string + Provides []string + Size int + URL string + Version string + func (m *ApkDBEntry) UnmarshalJSON(data []byte) error + func (m ApkDBEntry) OwnedFiles() (result []string) + type ApkFileRecord struct + Digest *file.Digest + OwnerGID string + OwnerUID string + Path string + Permissions string + type BinarySignature struct + Matches []ClassifierMatch + type Cataloger interface + Catalog func(context.Context, file.Resolver) ([]Package, []artifact.Relationship, error) + Name func() string + type ClassifierMatch struct + Classifier string + Location file.Location + type CocoaPodfileLockEntry struct + Checksum string + type Collection struct + func NewCollection(pkgs ...Package) *Collection + func (c *Collection) Add(pkgs ...Package) + func (c *Collection) Delete(ids ...artifact.ID) + func (c *Collection) Enumerate(types ...Type) <-chan Package + func (c *Collection) Package(id artifact.ID) *Package + func (c *Collection) PackageCount() int + func (c *Collection) Packages(ids []artifact.ID) (result []Package) + func (c *Collection) PackagesByName(name string) []Package + func (c *Collection) PackagesByPath(path string) []Package + func (c *Collection) Sorted(types ...Type) (pkgs []Package) + type ConanV1LockEntry struct + BuildRequires []string + Context string + Options KeyValues + PackageID string + Path string + Prev string + PythonRequires []string + Ref string + Requires []string + type ConanV2LockEntry struct + Channel string + PackageID string + PackageRevision string + RecipeRevision string + Ref string + TimeStamp string + Username string + type ConanfileEntry struct + Ref string + type ConaninfoEntry struct + PackageID string + Ref string + type DartPubspecLockEntry struct + HostedURL string + Name string + VcsURL string + Version string + type DotnetDepsEntry struct + HashPath string + Name string + Path string + Sha512 string + Version string + type DotnetPortableExecutableEntry struct + AssemblyVersion string + Comments string + CompanyName string + InternalName string + LegalCopyright string + ProductName string + ProductVersion string + type DpkgDBEntry struct + Architecture string + Depends []string + Description string + Files []DpkgFileRecord + InstalledSize int + Maintainer string + Package string + PreDepends []string + Provides []string + Source string + SourceVersion string + Version string + func (m DpkgDBEntry) OwnedFiles() (result []string) + type DpkgFileRecord struct + Digest *file.Digest + IsConfigFile bool + Path string + type ElixirMixLockEntry struct + Name string + PkgHash string + PkgHashExt string + Version string + type ErlangRebarLockEntry struct + Name string + PkgHash string + PkgHashExt string + Version string + type FileOwner interface + OwnedFiles func() []string + type GolangBinaryBuildinfoEntry struct + Architecture string + BuildSettings KeyValues + GoCompiledVersion string + GoCryptoSettings []string + H1Digest string + MainModule string + type GolangModuleEntry struct + H1Digest string + type HackageStackYamlEntry struct + PkgHash string + type HackageStackYamlLockEntry struct + PkgHash string + SnapshotURL string + type JavaArchive struct + ArchiveDigests []file.Digest + Manifest *JavaManifest + Parent *Package + PomProject *JavaPomProject + PomProperties *JavaPomProperties + VirtualPath string + type JavaManifest struct + Main KeyValues + Sections []KeyValues + func (m *JavaManifest) UnmarshalJSON(b []byte) error + func (m JavaManifest) Section(name string) KeyValues + type JavaPomParent struct + ArtifactID string + GroupID string + Version string + type JavaPomProject struct + ArtifactID string + Description string + GroupID string + Name string + Parent *JavaPomParent + Path string + URL string + Version string + type JavaPomProperties struct + ArtifactID string + Extra map[string]string + GroupID string + Name string + Path string + Scope string + Version string + func (p JavaPomProperties) PkgTypeIndicated() Type + type KeyValue struct + Key string + Value string + type KeyValues []KeyValue + func (k *KeyValues) UnmarshalJSON(b []byte) error + func (k KeyValues) Get(key string) (string, bool) + func (k KeyValues) MustGet(key string) string + type Language string + const CPP + const Dart + const Dotnet + const Elixir + const Erlang + const Go + const Haskell + const Java + const JavaScript + const PHP + const Python + const R + const Ruby + const Rust + const Swift + const UnknownLanguage + func LanguageByName(name string) Language + func LanguageFromPURL(p string) Language + func (l Language) String() string + type License struct + Locations file.LocationSet + SPDXExpression string + Type license.Type + URLs []string + Value string + func NewLicense(value string) License + func NewLicenseFromFields(value, url string, location *file.Location) License + func NewLicenseFromLocations(value string, locations ...file.Location) License + func NewLicenseFromType(value string, t license.Type) License + func NewLicenseFromURLs(value string, urls ...string) License + func NewLicensesFromLocation(location file.Location, values ...string) (licenses []License) + func NewLicensesFromValues(values ...string) (licenses []License) + func (s License) Merge(l License) (*License, error) + type LicenseSet struct + func NewLicenseSet(licenses ...License) (s LicenseSet) + func (s *LicenseSet) Add(licenses ...License) + func (s LicenseSet) Empty() bool + func (s LicenseSet) Hash() (uint64, error) + func (s LicenseSet) ToSlice() []License + type Licenses []License + func (l Licenses) Len() int + func (l Licenses) Less(i, j int) bool + func (l Licenses) Swap(i, j int) + type LinuxKernel struct + Architecture string + Author string + BuildTime string + ExtendedVersion string + Format string + Name string + RWRootFS bool + RootDevice int + SwapDevice int + Version string + VideoMode string + type LinuxKernelModule struct + Author string + Description string + KernelVersion string + License string + Name string + Parameters map[string]LinuxKernelModuleParameter + Path string + SourceVersion string + Version string + VersionMagic string + type LinuxKernelModuleParameter struct + Description string + Type string + type MicrosoftKbPatch struct + Kb string + ProductID string + type NixStoreEntry struct + Files []string + Output string + OutputHash string + func (m NixStoreEntry) OwnedFiles() (result []string) + type NpmPackage struct + Author string + Description string + Homepage string + Name string + Private bool + URL string + Version string + type NpmPackageLockEntry struct + Integrity string + Resolved string + type Package struct + CPEs []cpe.CPE + FoundBy string + Language Language + Licenses LicenseSet + Locations file.LocationSet + Metadata interface{} + Name string + PURL string + Type Type + Version string + func (p *Package) OverrideID(id artifact.ID) + func (p *Package) SetID() + func (p Package) ID() artifact.ID + func (p Package) String() string + type PhpComposerAuthors struct + Email string + Homepage string + Name string + type PhpComposerExternalReference struct + Reference string + Shasum string + Type string + URL string + type PhpComposerInstalledEntry PhpComposerLockEntry + type PhpComposerLockEntry struct + Authors []PhpComposerAuthors + Bin []string + Description string + Dist PhpComposerExternalReference + Homepage string + Keywords []string + License []string + Name string + NotificationURL string + Provide map[string]string + Require map[string]string + RequireDev map[string]string + Source PhpComposerExternalReference + Suggest map[string]string + Time string + Type string + Version string + type PortageEntry struct + Files []PortageFileRecord + InstalledSize int + func (m PortageEntry) OwnedFiles() (result []string) + type PortageFileRecord struct + Digest *file.Digest + Path string + type PythonDirectURLOriginInfo struct + CommitID string + URL string + VCS string + type PythonFileDigest struct + Algorithm string + Value string + type PythonFileRecord struct + Digest *PythonFileDigest + Path string + Size string + type PythonPackage struct + Author string + AuthorEmail string + DirectURLOrigin *PythonDirectURLOriginInfo + Files []PythonFileRecord + Name string + Platform string + SitePackagesRootPath string + TopLevelPackages []string + Version string + func (m PythonPackage) OwnedFiles() (result []string) + type PythonPipfileLockEntry struct + Hashes []string + Index string + type PythonPoetryLockEntry struct + Index string + type PythonRequirementsEntry struct + Extras []string + Markers string + Name string + URL string + VersionConstraint string + type RDescription struct + Author string + Built string + Depends []string + Description string + Imports []string + Maintainer string + NeedsCompilation bool + Repository string + Suggests []string + Title string + URL []string + type RpmArchive RpmDBEntry + type RpmDBEntry struct + Arch string + Epoch *int + Files []RpmFileRecord + ModularityLabel *string + Name string + Release string + Size int + SourceRpm string + Vendor string + Version string + func (m RpmDBEntry) OwnedFiles() (result []string) + type RpmFileMode uint16 + type RpmFileRecord struct + Digest file.Digest + Flags string + GroupName string + Mode RpmFileMode + Path string + Size int + UserName string + type RubyGemspec struct + Authors []string + Files []string + Homepage string + Name string + Version string + type RustBinaryAuditEntry struct + Name string + Source string + Version string + type RustCargoLockEntry struct + Checksum string + Dependencies []string + Name string + Source string + Version string + type SwiftPackageManagerResolvedEntry struct + Revision string + type Type string + const AlpmPkg + const ApkPkg + const BinaryPkg + const CocoapodsPkg + const ConanPkg + const DartPubPkg + const DebPkg + const DotnetPkg + const ErlangOTPPkg + const GemPkg + const GithubActionPkg + const GithubActionWorkflowPkg + const GoModulePkg + const GraalVMNativeImagePkg + const HackagePkg + const HexPkg + const JavaPkg + const JenkinsPluginPkg + const KbPkg + const LinuxKernelModulePkg + const LinuxKernelPkg + const NixPkg + const NpmPkg + const PhpComposerPkg + const PortagePkg + const PythonPkg + const Rpkg + const RpmPkg + const RustPkg + const SwiftPkg + const UnknownPkg + const WordpressPluginPkg + func TypeByName(name string) Type + func TypeFromPURL(p string) Type + func (t Type) PackageURLType() string + type WordpressPluginEntry struct + Author string + AuthorURI string + PluginInstallDirectory string + type YarnLockEntry struct + Integrity string + Resolved string