Documentation
¶
Index ¶
- func ParseCargoLock(pathToLockfile string) ([]extractor.PackageDetails, error)
- type CargoLockExtractor
- func (e CargoLockExtractor) Extract(f extractor.DepFile, context extractor.ScanContext) ([]extractor.PackageDetails, error)
- func (e CargoLockExtractor) IsOfficiallySupported() bool
- func (e CargoLockExtractor) PackageManager() models.PackageManager
- func (e CargoLockExtractor) ShouldExtract(path string) bool
- type CargoLockFile
- type CargoLockPackage
- type CargoToml
- type CargoTomlMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCargoLock ¶
func ParseCargoLock(pathToLockfile string) ([]extractor.PackageDetails, error)
Types ¶
type CargoLockExtractor ¶
type CargoLockExtractor struct {
extractor.WithMatcher
}
func (CargoLockExtractor) Extract ¶
func (e CargoLockExtractor) Extract(f extractor.DepFile, context extractor.ScanContext) ([]extractor.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 ¶
type CargoToml ¶
type CargoToml struct {
Dependencies map[string]interface{} `toml:"dependencies"`
DevDeps map[string]interface{} `toml:"dev-dependencies"`
BuildDeps map[string]interface{} `toml:"build-dependencies"`
}
CargoToml represents the structure of a Cargo.toml file
type CargoTomlMatcher ¶
type CargoTomlMatcher struct{}
func (CargoTomlMatcher) GetSourceFile ¶
func (CargoTomlMatcher) Match ¶
func (m CargoTomlMatcher) Match(sourceFile extractor.DepFile, packages []extractor.PackageDetails, context extractor.ScanContext) error
Click to show internal directories.
Click to hide internal directories.