inspectors

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAll

func RunAll(inspectors []Inspector, scope, path string) []schema.Package

RunAll runs all registered inspectors concurrently and merges results.

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.

func All

func All() []Inspector

All returns the default set of inspectors.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL