Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collector ¶
type Collector struct {
collector.BaseCollector
}
func NewCollector ¶
func NewCollector() *Collector
type PackageInfo ¶
type PackageInfo struct { Resolution PackageResolution `yaml:"resolution"` Dependencies map[string]string `yaml:"dependencies,omitempty"` DevDependencies map[string]string `yaml:"devDependencies,omitempty"` IsDev bool `yaml:"dev,omitempty"` Name string `yaml:"name,omitempty"` Version string `yaml:"version,omitempty"` }
type PackageJSONParser ¶
type PackageJSONParser struct{}
PackageJSONParser is a parser for package.json file see: https://docs.npmjs.com/cli/v10/configuring-npm/package-json
func NewPackageJSONParser ¶
func NewPackageJSONParser() *PackageJSONParser
func (PackageJSONParser) Matcher ¶
func (PackageJSONParser) Matcher() collector.FileMatcher
type PackageLockJSONParser ¶
type PackageLockJSONParser struct{}
PackageLockJSONParser is a parser for package-lock.json file see: https://docs.npmjs.com/cli/v10/configuring-npm/package-lock-json
func NewPackageLockJSONParser ¶
func NewPackageLockJSONParser() *PackageLockJSONParser
func (PackageLockJSONParser) Matcher ¶
func (PackageLockJSONParser) Matcher() collector.FileMatcher
type PackageResolution ¶
type PackageResolution struct {
Tarball string `yaml:"tarball,omitempty"`
}
type PnpmLockParser ¶
type PnpmLockParser struct{}
func NewPnpmLockParser ¶
func NewPnpmLockParser() *PnpmLockParser
NewPnpmLockParser returns a new PnpmLockParser
func (PnpmLockParser) Matcher ¶
func (PnpmLockParser) Matcher() collector.FileMatcher
type YarnLockParser ¶
type YarnLockParser struct{}
YarnLockParser is a parser for yarn.lock file see: https://classic.yarnpkg.com/lang/en/docs/yarn-lock/
func NewYarnLockParser ¶
func NewYarnLockParser() *YarnLockParser
func (YarnLockParser) Matcher ¶
func (YarnLockParser) Matcher() collector.FileMatcher
type YarnPackageContent ¶
type YarnPackageContent struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.