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 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 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) ([]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" )
Click to show internal directories.
Click to hide internal directories.