Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOptions ¶
type BuildOptions struct {
Log *slog.Logger
// Name is the name of the application being built
Name string
// Version specifies the language/runtime version to use
// If empty, defaults to latest stable version
Version string
// CacheNS specifies the namespace for persistent cache mounts
CacheNS string
// The alpine image to use for the base image.
AlpineImage string
OnBuild []string
}
BuildOptions contains configuration for stack builds
type BunStack ¶
type BunStack struct {
MetaStack
}
BunStack implements Stack for Bun
func (*BunStack) GenerateLLB ¶
type GoStack ¶
type GoStack struct {
MetaStack
}
GoStack implements Stack for Go
func (*GoStack) GenerateLLB ¶
type MetaStack ¶
type MetaStack struct {
// contains filtered or unexported fields
}
func (*MetaStack) Entrypoint ¶
func (*MetaStack) SetEntrypoint ¶
type NodeStack ¶
type NodeStack struct {
MetaStack
}
NodeStack implements Stack for Node.js
func (*NodeStack) GenerateLLB ¶
type PythonStack ¶
type PythonStack struct {
MetaStack
}
PythonStack implements Stack for Python
func (*PythonStack) Detect ¶
func (s *PythonStack) Detect() bool
func (*PythonStack) Entrypoint ¶
func (s *PythonStack) Entrypoint() string
func (*PythonStack) GenerateLLB ¶
func (s *PythonStack) GenerateLLB(dir string, opts BuildOptions) (*llb.State, error)
func (*PythonStack) Name ¶
func (s *PythonStack) Name() string
type RubyStack ¶
type RubyStack struct {
MetaStack
// contains filtered or unexported fields
}
RubyStack implements Stack for Ruby on Rails
func (*RubyStack) Entrypoint ¶
func (*RubyStack) GenerateLLB ¶
type Stack ¶
type Stack interface {
Name() string
// Detect returns true if the given directory contains code for this stack
Detect() bool
// GenerateLLB creates the BuildKit LLB for building this stack
GenerateLLB(dir string, opts BuildOptions) (*llb.State, error)
Image() ocispecs.Image
Entrypoint() string
}
Stack represents a programming language/framework stack
func DetectStack ¶
DetectStack identifies the programming stack in the given directory
Click to show internal directories.
Click to hide internal directories.