detector

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 3 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 struct {
	// contains filtered or unexported fields
}

Detector handles application detection using registered providers

func New

func New(path string) *Detector

New creates a new Detector for the given path

func (*Detector) Detect

func (d *Detector) Detect() (*Plan, error)

Detect runs detection using all registered providers and returns a plan

type Plan

type Plan = app.Plan

Plan is an alias to app.Plan for convenience

type Provider

type Provider interface {
	// Name returns the name of the provider
	Name() string

	// Detect checks if this provider can handle the application at the given path
	// Returns true if the provider detected a matching application
	Detect(ctx *app.Context) (bool, error)

	// Plan generates a build plan for the detected application
	Plan(ctx *app.Context) (*app.Plan, error)
}

Provider is the interface that all language/framework providers must implement

Jump to

Keyboard shortcuts

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