nixpacks

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 6 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 framework detection

func NewDetector

func NewDetector(projectPath string, verbose bool) *Detector

NewDetector creates a new framework detector

func (*Detector) BuildWithNixpacks

func (d *Detector) BuildWithNixpacks(imageName string) error

BuildWithNixpacks builds a Docker image using Nixpacks

func (*Detector) DetectFramework

func (d *Detector) DetectFramework() (Framework, error)

DetectFramework detects the framework used in the project

func (*Detector) GenerateDockerfile

func (d *Detector) GenerateDockerfile() error

GenerateDockerfile generates a Dockerfile using Nixpacks

func (*Detector) GetFrameworkInfo

func (d *Detector) GetFrameworkInfo() (map[string]interface{}, error)

GetFrameworkInfo returns information about the detected framework

func (*Detector) HasDockerfile

func (d *Detector) HasDockerfile() bool

HasDockerfile checks if a Dockerfile exists in the project

type Framework

type Framework string

Framework represents a detected framework

const (
	FrameworkNodeJS  Framework = "nodejs"
	FrameworkGo      Framework = "go"
	FrameworkPython  Framework = "python"
	FrameworkRuby    Framework = "ruby"
	FrameworkPHP     Framework = "php"
	FrameworkRust    Framework = "rust"
	FrameworkUnknown Framework = "unknown"
)

Jump to

Keyboard shortcuts

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