mixlockutils

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mixlockutils provides common functions for parsing Mix.lock lockfiles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMixLockFile

func ParseMixLockFile(input *filesystem.ScanInput) ([]*extractor.Inventory, error)

ParseMixLockFile extracts packages from Erlang Mix.lock files passed through the scan input.

func ToPURL

func ToPURL(i *extractor.Inventory) *purl.PackageURL

ToPURL converts a package into a PURL.

Types

type Package

type Package struct {
	Name       string
	Version    string
	Locations  []string
	SourceCode string
}

Package represents a single package parsed from Mix.lock.

Jump to

Keyboard shortcuts

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