Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elixir ¶
func (*Elixir) GenerateDockerfile ¶
func (*Elixir) Name ¶
func (d *Elixir) Name() RuntimeName
type Golang ¶
func (*Golang) GenerateDockerfile ¶
func (*Golang) Name ¶
func (d *Golang) Name() RuntimeName
type MiseToml ¶ added in v0.5.0
type MiseToml struct {
Tools map[string]interface{} `toml:"tools"`
}
type NextJS ¶
func (*NextJS) GenerateDockerfile ¶
func (*NextJS) Name ¶
func (d *NextJS) Name() RuntimeName
type Python ¶
func (*Python) GenerateDockerfile ¶
func (*Python) Name ¶
func (d *Python) Name() RuntimeName
type PythonPackageManager ¶ added in v0.4.4
type PythonPackageManager string
const ( PythonPackageManagerPip PythonPackageManager = "pip" PythonPackageManagerPoetry PythonPackageManager = "poetry" PythonPackageManagerUv PythonPackageManager = "uv" PythonPackageManagerPipenv PythonPackageManager = "pipenv" PythonPackageManagerPdm PythonPackageManager = "pdm" )
type Runtime ¶
type Runtime interface { // Returns the name of the runtime. Name() RuntimeName // Returns true if the runtime can be used for the given path. Match(path string) bool // Generates a Dockerfile for the given path. GenerateDockerfile(path string, data ...map[string]string) ([]byte, error) }
An interface that all runtimes must implement.
type RuntimeName ¶
type RuntimeName string
const ( RuntimeNameGolang RuntimeName = "Go" RuntimeNameRuby RuntimeName = "Ruby" RuntimeNamePython RuntimeName = "Python" RuntimeNamePHP RuntimeName = "PHP" RuntimeNameElixir RuntimeName = "Elixir" RuntimeNameJava RuntimeName = "Java" RuntimeNameRust RuntimeName = "Rust" RuntimeNameNextJS RuntimeName = "Next.js" RuntimeNameBun RuntimeName = "Bun" RuntimeNameDeno RuntimeName = "Deno" RuntimeNameNode RuntimeName = "Node" RuntimeNameStatic RuntimeName = "Static" )
type Static ¶
func (*Static) GenerateDockerfile ¶
func (*Static) Name ¶
func (d *Static) Name() RuntimeName
Click to show internal directories.
Click to hide internal directories.