Versions in this module Expand all Collapse all v1 v1.0.1 Feb 25, 2023 Changes in this version + const PipenvEcosystem + const PnpmEcosystem + const PoetryEcosystem + const YarnEcosystem + var ErrParserNotFound = errors.New("could not determine parser") + func ListParsers() []string + type CargoLockFile struct + Packages []CargoLockPackage + Version int + type CargoLockPackage struct + Name string + Version string + type ComposerLock struct + Packages []ComposerPackage + PackagesDev []ComposerPackage + type ComposerPackage struct + Dist struct{ ... } + Name string + Version string + type ConanGraphLock struct + Nodes map[string]ConanGraphNode + type ConanGraphNode struct + Context string + Options string + PackageID string + Path string + Pref string + Prev string + Ref string + type ConanLockFile struct + BuildRequires []string + GraphLock ConanGraphLock + ProfileBuild string + ProfileHost string + PythonRequires []string + Requires []string + Version string + type ConanReference struct + Channel string + Name string + PackageID string + PackageRevision string + RecipeRevision string + TimeStamp string + Username string + Version string + type Ecosystem string + const AlpineEcosystem + const BundlerEcosystem + const CargoEcosystem + const ComposerEcosystem + const ConanEcosystem + const DebianEcosystem + const GoEcosystem + const MavenEcosystem + const MixEcosystem + const NpmEcosystem + const NuGetEcosystem + const PipEcosystem + const PubEcosystem + func KnownEcosystems() []Ecosystem + type Lockfile struct + FilePath string + Packages Packages + ParsedAs string + func FromApkInstalled(pathToInstalled string) (Lockfile, error) + func FromCSVFile(pathToCSV string, parseAs string) (Lockfile, error) + func FromCSVRows(filePath string, parseAs string, rows []string) (Lockfile, error) + func FromDpkgStatus(pathToStatus string) (Lockfile, error) + func Parse(pathToLockfile string, parseAs string) (Lockfile, error) + func (l Lockfile) String() string + type MavenLockDependency struct + ArtifactID string + GroupID string + Version string + XMLName xml.Name + func (mld MavenLockDependency) ResolveVersion(lockfile MavenLockFile) string + type MavenLockFile struct + Dependencies []MavenLockDependency + ManagedDependencies []MavenLockDependency + ModelVersion string + Properties MavenLockProperties + XMLName xml.Name + type MavenLockProperties struct + func (p *MavenLockProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type NpmLockDependency struct + Dependencies map[string]NpmLockDependency + Version string + type NpmLockPackage struct + Dependencies map[string]string + Resolved string + Version string + type NpmLockfile struct + Dependencies map[string]NpmLockDependency + Packages map[string]NpmLockPackage + Version int + type NuGetLockPackage struct + Resolved string + type NuGetLockfile struct + Dependencies map[string]map[string]NuGetLockPackage + Version int + type PackageDetails struct + Commit string + CompareAs Ecosystem + Ecosystem Ecosystem + Name string + Version string + func ParseApkInstalled(pathToLockfile string) ([]PackageDetails, error) + func ParseCargoLock(pathToLockfile string) ([]PackageDetails, error) + func ParseComposerLock(pathToLockfile string) ([]PackageDetails, error) + func ParseConanLock(pathToLockfile string) ([]PackageDetails, error) + func ParseDpkgStatus(pathToLockfile string) ([]PackageDetails, error) + func ParseGemfileLock(pathToLockfile string) ([]PackageDetails, error) + func ParseGoLock(pathToLockfile string) ([]PackageDetails, error) + func ParseGradleLock(pathToLockfile string) ([]PackageDetails, error) + func ParseMavenLock(pathToLockfile string) ([]PackageDetails, error) + func ParseMixLock(pathToLockfile string) ([]PackageDetails, error) + func ParseNpmLock(pathToLockfile string) ([]PackageDetails, error) + func ParseNuGetLock(pathToLockfile string) ([]PackageDetails, error) + func ParsePipenvLock(pathToLockfile string) ([]PackageDetails, error) + func ParsePnpmLock(pathToLockfile string) ([]PackageDetails, error) + func ParsePoetryLock(pathToLockfile string) ([]PackageDetails, error) + func ParsePubspecLock(pathToLockfile string) ([]PackageDetails, error) + func ParseRequirementsTxt(pathToLockfile string) ([]PackageDetails, error) + func ParseYarnLock(pathToLockfile string) ([]PackageDetails, error) + type PackageDetailsParser = func(pathToLockfile string) ([]PackageDetails, error) + func FindParser(pathToLockfile string, parseAs string) (PackageDetailsParser, string) + type Packages []PackageDetails + func (ps Packages) Ecosystems() []Ecosystem + type PipenvLock struct + Packages map[string]PipenvPackage + PackagesDev map[string]PipenvPackage + type PipenvPackage struct + Version string + type PnpmLockPackage struct + Name string + Resolution PnpmLockPackageResolution + Version string + type PnpmLockPackageResolution struct + Commit string + Repo string + Tarball string + Type string + type PnpmLockfile struct + Packages map[string]PnpmLockPackage + Version float64 + type PoetryLockFile struct + Packages []PoetryLockPackage + Version int + type PoetryLockPackage struct + Name string + Source PoetryLockPackageSource + Version string + type PoetryLockPackageSource struct + Commit string + Type string + type PubspecLockDescription struct + Name string + Path string + Ref string + URL string + func (pld *PubspecLockDescription) UnmarshalYAML(value *yaml.Node) error + type PubspecLockPackage struct + Description PubspecLockDescription + Source string + Version string + type PubspecLockfile struct + Packages map[string]PubspecLockPackage + Sdks map[string]string