function_runtime

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionRunTime

type FunctionRunTime interface {

	//Runtime type eg: Java 8, Node JS, Python 2, Python 3
	RuntimeType() string

	//Prepare function.handlerFile and function.HandlerPath
	SetFunctionHandler(
		function *types.Function,
		functionSource types.FunctionSourceFile,
	) error

	//Get function Docker file content according to the runtime
	GetFunctionDockerFileContent() string

	//Ex:
	//Java ==> local-artifact.jar --upload--> quebic-function-dir/{function-id}-function/function.jar
	//Node Package ==> local-artifact.tar --upload--> quebic-function-dir/{function-id}-function/function_handler.tar
	//Node Single File ==> local-artifact.js
	// --upload--> quebic-function-dir/{function-id}-function/handler.js
	// --create handler-tar--> function_handler.tar
	GetTargetFunctionArtifactPath(functionID string) string

	//Copy function artifact into docker build context location
	CopyFunctionIntoBuildContextLocation(
		functionID string,
		functionSource types.FunctionSourceFile,
	) error
}

FunctionRunTime Function RunTime

Jump to

Keyboard shortcuts

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