Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BrewInspector ¶
type BrewInspector struct{}
func (*BrewInspector) Ecosystem ¶
func (i *BrewInspector) Ecosystem() string
func (*BrewInspector) Inspect ¶
func (i *BrewInspector) Inspect(scope, path string) ([]schema.Package, error)
func (*BrewInspector) Name ¶
func (i *BrewInspector) Name() string
type CargoInspector ¶
type CargoInspector struct{}
func (*CargoInspector) Ecosystem ¶
func (i *CargoInspector) Ecosystem() string
func (*CargoInspector) Inspect ¶
func (i *CargoInspector) Inspect(scope, path string) ([]schema.Package, error)
func (*CargoInspector) Name ¶
func (i *CargoInspector) Name() string
type ComposerInspector ¶
type ComposerInspector struct{}
func (*ComposerInspector) Ecosystem ¶
func (i *ComposerInspector) Ecosystem() string
func (*ComposerInspector) Inspect ¶
func (i *ComposerInspector) Inspect(scope, path string) ([]schema.Package, error)
func (*ComposerInspector) Name ¶
func (i *ComposerInspector) Name() string
type GemInspector ¶
type GemInspector struct{}
func (*GemInspector) Ecosystem ¶
func (i *GemInspector) Ecosystem() string
func (*GemInspector) Inspect ¶
func (i *GemInspector) Inspect(scope, path string) ([]schema.Package, error)
func (*GemInspector) Name ¶
func (i *GemInspector) Name() string
type GoModInspector ¶
type GoModInspector struct{}
func (*GoModInspector) Ecosystem ¶
func (i *GoModInspector) Ecosystem() string
func (*GoModInspector) Inspect ¶
func (i *GoModInspector) Inspect(scope, path string) ([]schema.Package, error)
func (*GoModInspector) Name ¶
func (i *GoModInspector) Name() string
type Inspector ¶
type Inspector interface {
Name() string
Ecosystem() string
// Inspect returns packages for the given scope and path.
// scope: "global" | "project"
Inspect(scope, path string) ([]schema.Package, error)
}
Inspector scans an ecosystem for installed packages.
type NpmInspector ¶
type NpmInspector struct{}
func (*NpmInspector) Ecosystem ¶
func (i *NpmInspector) Ecosystem() string
func (*NpmInspector) Inspect ¶
func (i *NpmInspector) Inspect(scope, path string) ([]schema.Package, error)
func (*NpmInspector) Name ¶
func (i *NpmInspector) Name() string
type PipInspector ¶
type PipInspector struct{}
func (*PipInspector) Ecosystem ¶
func (i *PipInspector) Ecosystem() string
func (*PipInspector) Inspect ¶
func (i *PipInspector) Inspect(scope, path string) ([]schema.Package, error)
func (*PipInspector) Name ¶
func (i *PipInspector) Name() string
Click to show internal directories.
Click to hide internal directories.