buildpack

package
v0.0.0-...-7f1f14d Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectProjectType

func DetectProjectType(root string) (string, error)

func RegisterLanguage

func RegisterLanguage(language Language)

Types

type Bun

type Bun struct {
}

func (Bun) Default

func (b Bun) Default() ConfigSettings

func (Bun) Generate

func (b Bun) Generate(root string, cfg *Config) (*GeneratedImageResult, error)

func (Bun) Name

func (b Bun) Name() string

func (Bun) Schema

func (b Bun) Schema() *jsonschema.Schema

func (Bun) Supports

func (b Bun) Supports(root string) bool

type ComposerJson

type ComposerJson struct {
	Require map[string]string `json:"require"`
	Replace map[string]string `json:"replace"`
}

func (ComposerJson) HasPackage

func (j ComposerJson) HasPackage(packageName string) bool

type ComposerLock

type ComposerLock struct {
	Platform map[string]string `json:"platform"`
	Packages []struct {
		Name    string            `json:"name"`
		Require map[string]string `json:"require"`
	} `json:"packages"`
}

func (ComposerLock) HasPackage

func (l ComposerLock) HasPackage(packageName string) bool

type Config

type Config struct {
	Type     string         `json:"type"`
	Settings ConfigSettings `json:"settings"`
}

func (Config) JSONSchema

func (e Config) JSONSchema() *jsonschema.Schema

type ConfigSettings

type ConfigSettings map[string]interface{}

type Deno

type Deno struct {
}

func (Deno) Default

func (b Deno) Default() ConfigSettings

func (Deno) Generate

func (b Deno) Generate(root string, cfg *Config) (*GeneratedImageResult, error)

func (Deno) Name

func (b Deno) Name() string

func (Deno) Schema

func (b Deno) Schema() *jsonschema.Schema

func (Deno) Supports

func (b Deno) Supports(root string) bool

type GeneratedImageResult

type GeneratedImageResult struct {
	Dockerfile   string
	DockerIgnore []string
}

func GenerateImageFile

func GenerateImageFile(root string, cfg *Config) (*GeneratedImageResult, error)

func (*GeneratedImageResult) Add

func (r *GeneratedImageResult) Add(text string, args ...any)

func (*GeneratedImageResult) AddIgnoreLine

func (r *GeneratedImageResult) AddIgnoreLine(line string)

func (*GeneratedImageResult) AddLine

func (r *GeneratedImageResult) AddLine(line string, args ...any)

func (*GeneratedImageResult) NewLine

func (r *GeneratedImageResult) NewLine()

type GoLang

type GoLang struct {
}

func (GoLang) Default

func (g GoLang) Default() ConfigSettings

func (GoLang) Generate

func (g GoLang) Generate(_ string, cfg *Config) (*GeneratedImageResult, error)

func (GoLang) Name

func (g GoLang) Name() string

func (GoLang) Schema

func (g GoLang) Schema() *jsonschema.Schema

func (GoLang) Supports

func (g GoLang) Supports(root string) bool

type Language

type Language interface {
	Name() string
	Generate(root string, cfg *Config) (*GeneratedImageResult, error)
	Schema() *jsonschema.Schema
	Default() ConfigSettings
	Supports(root string) bool
}

type Node

type Node struct {
}

func (Node) Default

func (n Node) Default() ConfigSettings

func (Node) Generate

func (n Node) Generate(root string, cfg *Config) (*GeneratedImageResult, error)

func (Node) Name

func (n Node) Name() string

func (Node) Schema

func (n Node) Schema() *jsonschema.Schema

func (Node) Supports

func (n Node) Supports(root string) bool

type PHP

type PHP struct {
}

func (PHP) Default

func (P PHP) Default() ConfigSettings

func (PHP) Generate

func (P PHP) Generate(root string, cfg *Config) (*GeneratedImageResult, error)

func (PHP) Name

func (P PHP) Name() string

func (PHP) Schema

func (P PHP) Schema() *jsonschema.Schema

func (PHP) Supports

func (P PHP) Supports(root string) bool

type PackageJSON

type PackageJSON struct {
	Main            string            `json:"main"`
	PackageManager  string            `json:"packageManager"`
	Engines         map[string]string `json:"engines"`
	Scripts         map[string]string `json:"scripts"`
	Dependencies    map[string]string `json:"dependencies"`
	DevDependencies map[string]string `json:"devDependencies"`
}

func (PackageJSON) HasDependencies

func (j PackageJSON) HasDependencies() bool

type Shopware

type Shopware struct {
}

func (Shopware) Default

func (s Shopware) Default() ConfigSettings

func (Shopware) Generate

func (s Shopware) Generate(root string, cfg *Config) (*GeneratedImageResult, error)

func (Shopware) Name

func (s Shopware) Name() string

func (Shopware) Schema

func (s Shopware) Schema() *jsonschema.Schema

func (Shopware) Supports

func (s Shopware) Supports(root string) bool

Jump to

Keyboard shortcuts

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