runtime

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LaunchOpts

type LaunchOpts struct {
	Image      string
	TargetWD   string
	Entrypoint []string
	Cmd        []string
	Mounts     []mount.Mount
}

type Runtime

type Runtime interface {
	DevImageName() string
	ContainerName() string
	BuildIgnore() []string
	FunctionDockerfile(funcCtxDir, version, provider string, w io.Writer) error
	FunctionDockerfileForCodeAsConfig(w io.Writer) error // FunctionDockerfileForCodeAsConfig generates a base image for code-as-config
	LaunchOptsForFunction(stackDir string) (LaunchOpts, error)
	LaunchOptsForFunctionCollect(stackDir string) (LaunchOpts, error)
}

func NewRunTimeFromHandler

func NewRunTimeFromHandler(handler string) (Runtime, error)

type RuntimeExt

type RuntimeExt string
const (
	RuntimeTypescript RuntimeExt = "ts"
	RuntimeJavascript RuntimeExt = "js"
	RuntimePython     RuntimeExt = "py"
	RuntimeGolang     RuntimeExt = "go"
	RuntimeJava       RuntimeExt = "java"

	RuntimeUnknown RuntimeExt = ""
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL