Documentation
¶
Index ¶
- func AttachPnpmLockPositions(g *sdk.Graph, projectDir string)
- type LockfileDetector
- func (d LockfileDetector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
- func (d LockfileDetector) Descriptor() sdk.DetectorDescriptor
- func (d LockfileDetector) FallbackDetector() sdk.Detector
- func (d LockfileDetector) Install(ctx context.Context, req sdk.DetectionRequest) error
- func (d LockfileDetector) PackageManagerSupport() []sdk.PackageManagerSupport
- func (d LockfileDetector) Ready() bool
- func (d LockfileDetector) ResolveGraph(_ context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
- type NativeDetector
- func (d NativeDetector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
- func (d NativeDetector) Descriptor() sdk.DetectorDescriptor
- func (d NativeDetector) FallbackDetector() sdk.Detector
- func (d NativeDetector) Install(ctx context.Context, req sdk.DetectionRequest) error
- func (d NativeDetector) PackageManagerSupport() []sdk.PackageManagerSupport
- func (d NativeDetector) Ready() bool
- func (d NativeDetector) ResolveGraph(_ context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachPnpmLockPositions ¶
AttachPnpmLockPositions wires pnpm-lock.yaml line numbers.
Types ¶
type LockfileDetector ¶
LockfileDetector resolves dependency graphs with pnpm.
func (LockfileDetector) Applicable ¶
func (d LockfileDetector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
Applicable reports whether a pnpm lockfile is present.
func (LockfileDetector) Descriptor ¶
func (d LockfileDetector) Descriptor() sdk.DetectorDescriptor
Descriptor describes the pnpm detector.
func (LockfileDetector) FallbackDetector ¶
func (d LockfileDetector) FallbackDetector() sdk.Detector
FallbackDetector returns the configured fallback detector.
func (LockfileDetector) Install ¶
func (d LockfileDetector) Install(ctx context.Context, req sdk.DetectionRequest) error
Install prepares pnpm dependencies before graph resolution.
func (LockfileDetector) PackageManagerSupport ¶
func (d LockfileDetector) PackageManagerSupport() []sdk.PackageManagerSupport
PackageManagerSupport returns pnpm package-manager discovery metadata.
func (LockfileDetector) Ready ¶
func (d LockfileDetector) Ready() bool
Ready reports whether pnpm is available.
func (LockfileDetector) ResolveGraph ¶
func (d LockfileDetector) ResolveGraph(_ context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
ResolveGraph resolves a pnpm dependency graph from pnpm-lock.yaml.
type NativeDetector ¶
NativeDetector resolves dependency graphs with pnpm CLI commands.
func (NativeDetector) Applicable ¶
func (d NativeDetector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
Applicable reports whether pnpm manifests are present.
func (NativeDetector) Descriptor ¶
func (d NativeDetector) Descriptor() sdk.DetectorDescriptor
Descriptor describes the pnpm CLI fallback detector.
func (NativeDetector) FallbackDetector ¶
func (d NativeDetector) FallbackDetector() sdk.Detector
FallbackDetector returns the configured fallback detector.
func (NativeDetector) Install ¶
func (d NativeDetector) Install(ctx context.Context, req sdk.DetectionRequest) error
Install prepares pnpm dependencies before graph resolution.
func (NativeDetector) PackageManagerSupport ¶
func (d NativeDetector) PackageManagerSupport() []sdk.PackageManagerSupport
PackageManagerSupport returns discovery metadata for the internal pnpm CLI fallback detector.
func (NativeDetector) Ready ¶
func (d NativeDetector) Ready() bool
Ready reports whether pnpm is available.
func (NativeDetector) ResolveGraph ¶
func (d NativeDetector) ResolveGraph(_ context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
ResolveGraph resolves a pnpm dependency graph via pnpm list.