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
- type CargoToml
- type CargoTomlMatcher
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 {
lockfile.WithMatcher
}
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 ¶
type CargoToml ¶ added in v1.5.0
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 ¶ added in v1.5.0
type CargoTomlMatcher struct{}
func (CargoTomlMatcher) GetSourceFile ¶ added in v1.5.0
func (CargoTomlMatcher) Match ¶ added in v1.5.0
func (m CargoTomlMatcher) Match(sourceFile lockfile.DepFile, packages []lockfile.PackageDetails, context lockfile.ScanContext) error
Click to show internal directories.
Click to hide internal directories.