Documentation
¶
Index ¶
- func AttachPubspecLockPositions(g *sdk.Graph, projectDir string)
- type Detector
- func (d Detector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
- func (d Detector) Descriptor() sdk.DetectorDescriptor
- func (d Detector) FallbackDetector() sdk.Detector
- func (d Detector) PackageManagerSupport() []sdk.PackageManagerSupport
- func (d Detector) Ready() bool
- func (d Detector) 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) 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 AttachPubspecLockPositions ¶
AttachPubspecLockPositions wires pubspec.lock line numbers.
Types ¶
type Detector ¶
Detector resolves Dart pub dependency graphs from pubspec files.
func (Detector) Applicable ¶
Applicable reports whether pub manifests are present.
func (Detector) Descriptor ¶
func (d Detector) Descriptor() sdk.DetectorDescriptor
Descriptor describes the pub detector.
func (Detector) FallbackDetector ¶
FallbackDetector returns the configured fallback detector.
func (Detector) PackageManagerSupport ¶
func (d Detector) PackageManagerSupport() []sdk.PackageManagerSupport
PackageManagerSupport returns pub package-manager discovery metadata.
func (Detector) ResolveGraph ¶
func (d Detector) ResolveGraph(_ context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
ResolveGraph resolves a pub dependency graph.
type NativeDetector ¶
NativeDetector resolves Dart pub dependency graphs by running `dart pub deps --json`. Unlike the lockfile-only Detector, this produces a proper transitive tree with parent-child edges from the `dependencies` field of each package record.
func (NativeDetector) Applicable ¶
func (d NativeDetector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
Applicable reports whether pub manifests are present.
func (NativeDetector) Descriptor ¶
func (d NativeDetector) Descriptor() sdk.DetectorDescriptor
Descriptor describes the pub native detector.
func (NativeDetector) FallbackDetector ¶
func (d NativeDetector) FallbackDetector() sdk.Detector
FallbackDetector returns the configured fallback detector.
func (NativeDetector) PackageManagerSupport ¶
func (d NativeDetector) PackageManagerSupport() []sdk.PackageManagerSupport
PackageManagerSupport returns pub package-manager discovery metadata.
func (NativeDetector) Ready ¶
func (d NativeDetector) Ready() bool
Ready reports whether the dart binary is available.
func (NativeDetector) ResolveGraph ¶
func (d NativeDetector) ResolveGraph(_ context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
ResolveGraph resolves a pub dependency graph via dart pub deps --json.