Documentation
¶
Overview ¶
Package frameworks is the catalog of first-class framework presets: the port, health path, build mode, env hints and volumes a framework needs to deploy with no manual build config. Data only, no I/O besides Detect.
Index ¶
Constants ¶
View Source
const ( OutputServer = "server" OutputStandalone = "standalone" OutputStatic = "static" OutputJar = "jar" OutputBinary = "binary" )
Output modes describe what the build produces.
View Source
const ( BuildRailpack = "railpack" BuildStatic = "static" BuildDockerfile = "dockerfile" )
Build types mirror spec.Build* values without importing the spec package.
Variables ¶
This section is empty.
Functions ¶
func DockerfileTemplate ¶
DockerfileTemplate returns the tuned Dockerfile for presets that ship one.
Types ¶
type EnvHint ¶
type EnvHint struct {
Key string `json:"key"`
Description string `json:"description"`
Required bool `json:"required"`
Secret bool `json:"secret"`
Default string `json:"default,omitempty"`
}
EnvHint is an environment variable the framework commonly needs.
type Preset ¶
type Preset struct {
ID string `json:"id"`
Name string `json:"name"`
Runtime string `json:"runtime"`
Icon string `json:"icon"`
BuildType string `json:"build_type"`
OutputMode string `json:"output_mode"`
Port int `json:"port"`
HealthPath string `json:"health_path"`
BuildCommand string `json:"build_command,omitempty"`
StartCommand string `json:"start_command,omitempty"`
ReadyTimeout string `json:"ready_timeout,omitempty"`
Dockerfile bool `json:"dockerfile_template"`
EnvHints []EnvHint `json:"env_hints"`
Volumes []VolumeHint `json:"volumes"`
DocsAnchor string `json:"docs_anchor"`
}
Preset is one framework's recommended deploy defaults.
type VolumeHint ¶
type VolumeHint struct {
Name string `json:"name"`
Path string `json:"path"`
Purpose string `json:"purpose"`
}
VolumeHint is a path worth persisting across deploys.
Click to show internal directories.
Click to hide internal directories.