detector

package
v0.0.0-...-9f43428 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector interface {
	Relevance(path string) (float64, error)
	Packages(ctx context.Context) ([]string, error)
	Env(ctx context.Context) (map[string]string, error)
}

type GoDetector

type GoDetector struct {
	Root string
}

func (*GoDetector) Env

func (d *GoDetector) Env(ctx context.Context) (map[string]string, error)

func (*GoDetector) Packages

func (d *GoDetector) Packages(ctx context.Context) ([]string, error)

func (*GoDetector) Relevance

func (d *GoDetector) Relevance(path string) (float64, error)

type NodeJSDetector

type NodeJSDetector struct {
	Root string
	// contains filtered or unexported fields
}

func (*NodeJSDetector) Env

func (d *NodeJSDetector) Env(ctx context.Context) (map[string]string, error)

func (*NodeJSDetector) Init

func (d *NodeJSDetector) Init() error

func (*NodeJSDetector) Packages

func (d *NodeJSDetector) Packages(ctx context.Context) ([]string, error)

func (*NodeJSDetector) Relevance

func (d *NodeJSDetector) Relevance(path string) (float64, error)

type PHPDetector

type PHPDetector struct {
	Root string
	// contains filtered or unexported fields
}

func (*PHPDetector) Env

func (d *PHPDetector) Env(ctx context.Context) (map[string]string, error)

func (*PHPDetector) Init

func (d *PHPDetector) Init() error

func (*PHPDetector) Packages

func (d *PHPDetector) Packages(ctx context.Context) ([]string, error)

func (*PHPDetector) Relevance

func (d *PHPDetector) Relevance(path string) (float64, error)

type PoetryDetector

type PoetryDetector struct {
	PythonDetector
	Root string
}

func (*PoetryDetector) Env

func (d *PoetryDetector) Env(ctx context.Context) (map[string]string, error)

func (*PoetryDetector) Packages

func (d *PoetryDetector) Packages(ctx context.Context) ([]string, error)

func (*PoetryDetector) Relevance

func (d *PoetryDetector) Relevance(path string) (float64, error)

type PythonDetector

type PythonDetector struct {
	Root string
}

func (*PythonDetector) Env

func (d *PythonDetector) Env(ctx context.Context) (map[string]string, error)

func (*PythonDetector) Packages

func (d *PythonDetector) Packages(ctx context.Context) ([]string, error)

func (*PythonDetector) Relevance

func (d *PythonDetector) Relevance(path string) (float64, error)

Jump to

Keyboard shortcuts

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