deploy

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuntimeAuto         = "auto"
	RuntimeDeno         = "deno"
	RuntimeNativeNode20 = "native-node20/v1"
	RuntimePython39     = "native-python3.9/v1"
	RuntimePython310    = "native-python3.10/v1"
	RuntimePython312    = "native-python3.12/v1"
)

Variables

View Source
var NativeRuntimes = map[string]string{
	RuntimeNativeNode20: defaultVolcengineEntrypoint(RuntimeNativeNode20),
	RuntimePython39:     defaultVolcengineEntrypoint(RuntimePython39),
	RuntimePython310:    defaultVolcengineEntrypoint(RuntimePython310),
	RuntimePython312:    defaultVolcengineEntrypoint(RuntimePython312),
}

NativeRuntimes maps each supported native Edge Function runtime to its default entrypoint file. Single source of truth for "which native runtimes exist and their entrypoints", shared by the deploy command and the MCP deploy tool.

Functions

func GetBindMounts

func GetBindMounts(cwd, hostFuncDir, hostOutputDir, hostEntrypointPath, hostImportMapPath string, fsys afero.Fs) ([]string, error)

func GetFunctionConfig

func GetFunctionConfig(slugs []string, importMapPath string, noVerifyJWT *bool, fsys afero.Fs) (config.FunctionConfig, error)

func GetFunctionSlugs

func GetFunctionSlugs(fsys afero.Fs) (slugs []string, err error)

func NewDockerBundler

func NewDockerBundler(fsys afero.Fs) function.EszipBundler

func Run

func Run(ctx context.Context, slugs []string, useDocker bool, noVerifyJWT *bool, importMapPath string, maxJobs uint, prune bool, fsys afero.Fs) error

func RunVolcengine

func RunVolcengine(ctx context.Context, client *volcengine.Client, workspaceID, branchID string, slugs []string, runtime string, noVerifyJWT *bool, importMapPath string, fsys afero.Fs) error

RunVolcengine deploys local Functions to the selected branch gateway.

Types

This section is empty.

Jump to

Keyboard shortcuts

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