lambda

package
v0.0.0-...-a138482 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DolessID = ""

Functions

func BootstrapLambda

func BootstrapLambda(ctx context.Context, lambda *model.CreateLambdaM) error

func BootstrapRuntime

func BootstrapRuntime(ctx context.Context, runtime *model.CreateRuntimeM) error

func GetLambda

func GetLambda(ctx context.Context, id string) (*model.LambdaM, error)

func GetLambdas

func GetLambdas(ctx context.Context) (<-chan *model.LambdaM, <-chan error)

func GetRuntime

func GetRuntime(ctx context.Context, id string) (*model.RuntimeM, error)

func GetRuntimes

func GetRuntimes(ctx context.Context) (<-chan *model.RuntimeM, <-chan error)

func SetLambda

func SetLambda(ctx context.Context, lambda *model.LambdaM) error

func SetRuntime

func SetRuntime(ctx context.Context, runtime *model.RuntimeM) error

func TarLambda

func TarLambda(ctx context.Context, lambda string, runtime string) (io.Reader, error)

func UploadTmp

func UploadTmp(ctx context.Context, file io.Reader) (string, error)

Types

type LambdaService

type LambdaService interface {
	Init() error
	Stop(ctx context.Context)
	BootstrapRuntime(ctx context.Context, runtime *model.CreateRuntimeM) (*model.CreateRuntimeM, error)
	BootstrapLambda(ctx context.Context, lambda *model.CreateLambdaM) (*model.CreateLambdaM, error)
	Start(ctx context.Context, id string) error
	Destroy(ctx context.Context, id string) error
}

func CreateLambdaService

func CreateLambdaService() (LambdaService, error)

Jump to

Keyboard shortcuts

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