Documentation
¶
Index ¶
- func ParseCargoLock(pathToLockfile string) ([]lockfile.PackageDetails, error)
- type CargoLockExtractor
- func (e CargoLockExtractor) Extract(f lockfile.DepFile, context lockfile.ScanContext) ([]lockfile.PackageDetails, error)
- func (e CargoLockExtractor) IsOfficiallySupported() bool
- func (e CargoLockExtractor) PackageManager() models.PackageManager
- func (e CargoLockExtractor) ShouldExtract(path string) bool
- type CargoLockFile
- type CargoLockPackage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCargoLock ¶
func ParseCargoLock(pathToLockfile string) ([]lockfile.PackageDetails, error)
Types ¶
type CargoLockExtractor ¶
type CargoLockExtractor struct{}
func (CargoLockExtractor) Extract ¶
func (e CargoLockExtractor) Extract(f lockfile.DepFile, context lockfile.ScanContext) ([]lockfile.PackageDetails, error)
func (CargoLockExtractor) IsOfficiallySupported ¶
func (e CargoLockExtractor) IsOfficiallySupported() bool
func (CargoLockExtractor) PackageManager ¶
func (e CargoLockExtractor) PackageManager() models.PackageManager
func (CargoLockExtractor) ShouldExtract ¶
func (e CargoLockExtractor) ShouldExtract(path string) bool
type CargoLockFile ¶
type CargoLockFile struct {
Version int `toml:"version"`
Packages []CargoLockPackage `toml:"package"`
}
type CargoLockPackage ¶
Click to show internal directories.
Click to hide internal directories.