detectors

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAll

func RunAll(detectors []Detector) []schema.Runtime

RunAll runs all registered detectors concurrently and returns results.

Types

type BunDetector

type BunDetector struct{}

func (*BunDetector) Detect

func (d *BunDetector) Detect() (*schema.Runtime, error)

func (*BunDetector) Name

func (d *BunDetector) Name() string

type Detector

type Detector interface {
	Name() string
	Detect() (*schema.Runtime, error)
}

Detector detects a single runtime on the system.

func All

func All() []Detector

All returns the default set of detectors.

type GitDetector

type GitDetector struct{}

func (*GitDetector) Detect

func (d *GitDetector) Detect() (*schema.Runtime, error)

func (*GitDetector) Name

func (d *GitDetector) Name() string

type GoDetector

type GoDetector struct{}

func (*GoDetector) Detect

func (d *GoDetector) Detect() (*schema.Runtime, error)

func (*GoDetector) Name

func (d *GoDetector) Name() string

type NodeDetector

type NodeDetector struct{}

func (*NodeDetector) Detect

func (d *NodeDetector) Detect() (*schema.Runtime, error)

func (*NodeDetector) Name

func (d *NodeDetector) Name() string

type PHPDetector

type PHPDetector struct{}

func (*PHPDetector) Detect

func (d *PHPDetector) Detect() (*schema.Runtime, error)

func (*PHPDetector) Name

func (d *PHPDetector) Name() string

type PythonDetector

type PythonDetector struct{}

func (*PythonDetector) Detect

func (d *PythonDetector) Detect() (*schema.Runtime, error)

func (*PythonDetector) Name

func (d *PythonDetector) Name() string

type RubyDetector

type RubyDetector struct{}

func (*RubyDetector) Detect

func (d *RubyDetector) Detect() (*schema.Runtime, error)

func (*RubyDetector) Name

func (d *RubyDetector) Name() string

type RustDetector

type RustDetector struct{}

func (*RustDetector) Detect

func (d *RustDetector) Detect() (*schema.Runtime, error)

func (*RustDetector) Name

func (d *RustDetector) Name() string

Jump to

Keyboard shortcuts

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