Documentation
¶
Index ¶
- func GenerateBakeFile(d Detection) string
- func GenerateComposeFile(d Detection, cfg Config) string
- func GenerateDockerfile(d Detection) string
- func GenerateDockerignore(d Detection) string
- func GenerateFlyFile(d Detection, cfg Config) string
- func GenerateGitHubActionsWorkflow(d Detection, cfg Config) string
- func GenerateGitLabCI(d Detection, cfg Config) string
- func GenerateRenderFile(d Detection, cfg Config) string
- type BuildTool
- type CIConfig
- type CISpec
- type ComposeConfig
- type Config
- type DeployConfig
- type DeploySpec
- type Detection
- type FlyConfig
- type Framework
- type GitHubCIConfig
- type GitLabCIConfig
- type PackageManager
- type RenderConfig
- type VerifyConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBakeFile ¶
func GenerateComposeFile ¶
func GenerateDockerfile ¶
func GenerateDockerignore ¶
func GenerateFlyFile ¶
func GenerateGitLabCI ¶
func GenerateRenderFile ¶
Types ¶
type CIConfig ¶
type CIConfig struct {
Image string `yaml:"image"`
MainBranch string `yaml:"main_branch"`
Context string `yaml:"context"`
Platforms []string `yaml:"platforms"`
Auto *bool `yaml:"auto"`
Verify *bool `yaml:"verify"`
Push *bool `yaml:"push"`
Deploy string `yaml:"deploy"`
DeployPath string `yaml:"deploy_path"`
GitHub GitHubCIConfig `yaml:"github"`
GitLab GitLabCIConfig `yaml:"gitlab"`
}
type CISpec ¶
type ComposeConfig ¶
type ComposeConfig struct {
Service string `yaml:"service"`
}
type Config ¶
type Config struct {
Framework string `yaml:"framework"`
Image string `yaml:"image"`
Node string `yaml:"node"`
Python string `yaml:"python"`
Java string `yaml:"java"`
Port int `yaml:"port"`
Healthcheck string `yaml:"healthcheck"`
AppModule string `yaml:"app_module"`
SettingsModule string `yaml:"settings_module"`
StartCommand []string `yaml:"start_command"`
Env map[string]string `yaml:"env"`
Verify VerifyConfig `yaml:"verify"`
Deploy DeployConfig `yaml:"deploy"`
CI CIConfig `yaml:"ci"`
}
type DeployConfig ¶
type DeployConfig struct {
Port int `yaml:"port"`
Healthcheck string `yaml:"healthcheck"`
Command []string `yaml:"command"`
Domains []string `yaml:"domains"`
Env map[string]string `yaml:"env"`
Compose ComposeConfig `yaml:"compose"`
Render RenderConfig `yaml:"render"`
Fly FlyConfig `yaml:"fly"`
}
type DeploySpec ¶
type DeploySpec struct {
Name string
ServiceName string
Port int
Healthcheck string
Command []string
Env map[string]string
Domains []string
RenderName string
RenderPlan string
RenderRegion string
FlyApp string
FlyRegion string
FlyMemoryMB int
}
func ResolveDeploySpec ¶
func ResolveDeploySpec(d Detection, cfg Config) DeploySpec
type Detection ¶
type Detection struct {
Root string
Name string
Framework Framework
ConfigPath string
PackageManager PackageManager
BuildTool BuildTool
HasLockfile bool
NodeVersion string
NodeVersionFrom string
PythonVersion string
PythonVersionFrom string
JavaVersion string
JavaVersionFrom string
BuildOutput string
Port int
HasDockerfile bool
HasPackageJSON bool
HasBuildScript bool
HasPublicDir bool
HasRequirements bool
HasPyProject bool
HasPomXML bool
HasGradleBuild bool
NextStandalone bool
AppModule string
SettingsModule string
HealthcheckPath string
StartCommand []string
EnvDefaults map[string]string
VerifyPath string
VerifyPort int
VerifyTimeout int
Warnings []string
// contains filtered or unexported fields
}
func DetectWithOverrides ¶
func (Detection) DisplayFramework ¶
func (Detection) RuntimeDisplay ¶
func (Detection) RuntimeSource ¶
func (Detection) SuggestedImageName ¶
func (Detection) ToolchainDisplay ¶
type Framework ¶
type Framework string
const ( FrameworkUnknown Framework = "" FrameworkNext Framework = "next" FrameworkReact Framework = "react" FrameworkVue Framework = "vue" FrameworkNest Framework = "nest" FrameworkHTML Framework = "html" FrameworkNode Framework = "node" FrameworkSpring Framework = "spring" FrameworkFastAPI Framework = "fastapi" FrameworkFlask Framework = "flask" FrameworkDjango Framework = "django" )
type GitHubCIConfig ¶
type GitHubCIConfig struct {
Workflow string `yaml:"workflow"`
}
type GitLabCIConfig ¶
type GitLabCIConfig struct {
File string `yaml:"file"`
}
type PackageManager ¶
type PackageManager string
const ( PackageManagerNone PackageManager = "" PackageManagerNPM PackageManager = "npm" PackageManagerYarn PackageManager = "yarn" PackageManagerPNPM PackageManager = "pnpm" )
type RenderConfig ¶
Click to show internal directories.
Click to hide internal directories.