loader

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelLambdaVersion = "lambda.refunc.io/version"
	LabelLambdaName    = "lambda.refunc.io/name"

	AnnotationLambdaConcurrency = "lambda.refunc.io/concurrency"

	MaxLambdaConcurrency = 32
)

Variables

View Source
var (
	RefuncRoot = "/var/run/refunc"
	ConfigFile = "refunc.json"

	DefaultMain        = "/var/runtime/bootstrap"
	AlterMainPath      = "/opt/bootstrap"
	DefaultTaskRoot    = "/var/task"
	DefaultRuntimeRoot = "/var/runtime"
	DefaultLayersRoot  = "/opt"
)

common vars

View Source
var LogFrameDelimer = []byte{165, 90, 0, 1} //0xA55A0001

Functions

This section is empty.

Types

type Loader

type Loader interface {
	Start(ctx context.Context, addr string) error
}

Loader listens to address to load res and handles the bootstrap of a func

func NewSimpleLoader

func NewSimpleLoader(main, taskRoot, runtimeRoot, layersRoot string) Loader

NewSimpleLoader creates a new simple loader, simple loader will listen POST reqeust at /init, and download resouces

Jump to

Keyboard shortcuts

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