Documentation
¶
Overview ¶
Package transformer transforms a Docker image TAR output to `.zeabur` directory.
Index ¶
- Variables
- func Transform(ctx *Context) error
- func TransformGleam(ctx *Context) error
- func TransformGolang(ctx *Context) error
- func TransformNix(ctx *Context) error
- func TransformNodejsNext(ctx *Context) error
- func TransformNodejsNuxt(ctx *Context) error
- func TransformNodejsRemix(ctx *Context) error
- func TransformNodejsWaku(ctx *Context) error
- func TransformPython(ctx *Context) error
- func TransformRust(ctx *Context) error
- func TransformStatic(ctx *Context) error
- func TransformZeaburDir(ctx *Context) error
- type Context
- type Transformer
Constants ¶
This section is empty.
Variables ¶
var ErrSkip = errors.New("skip transformer")
ErrSkip is a flag for Transformer to skip the transformation, which is useful for the transformer that doesn't support such plan.
Functions ¶
func TransformGleam ¶
TransformGleam transforms the Gleam build output to serverless format.
func TransformGolang ¶
TransformGolang transforms Golang functions.
func TransformNix ¶
TransformNix push the Nix Docker image output to registry.
func TransformNodejsNext ¶
TransformNodejsNext transforms Node.js Next.js functions.
func TransformNodejsNuxt ¶
TransformNodejsNuxt transforms Node.js Nuxt.js framework.
func TransformNodejsRemix ¶
TransformNodejsRemix transforms Node.js Remix.js functions.
func TransformNodejsWaku ¶
TransformNodejsWaku transforms Node.js Waku framework.
func TransformPython ¶
TransformPython transforms Python functions.
func TransformRust ¶
TransformRust transforms Rust functions.
func TransformStatic ¶
TransformStatic copies the static files from output to .zeabur/output/static and creates a config.json file for SPA
func TransformZeaburDir ¶
TransformZeaburDir is a transformer function to copy the .zeabur directory.
Types ¶
type Context ¶
type Context struct { PlanType types.PlanType PlanMeta types.PlanMeta BuildkitPath string AppPath string PushImage bool ResultImage string LogWriter io.Writer }
Context is the context for the transformer.
func (*Context) ZeaburPath ¶
ZeaburPath returns the `.zeabur` directory of the App path.
type Transformer ¶
Transformer is the type for the transformer interface.