lambda

package
v0.0.0-...-e5bbcc4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapLambda

func BootstrapLambda(ctx context.Context, id string, lambda *api.CreateLambda) error

func BootstrapRuntime

func BootstrapRuntime(ctx context.Context, id string, runtime *api.CreateRuntime) error

func FindLambda

func FindLambda(ctx context.Context, predicate func(val *api.Lambda) bool) (*api.Lambda, error)

func GetLambda

func GetLambda(ctx context.Context, id string) (*api.Lambda, error)

func GetLambdas

func GetLambdas(ctx context.Context) ([]*api.Lambda, error)

func GetRuntime

func GetRuntime(ctx context.Context, id string) (*api.Runtime, error)

func GetRuntimes

func GetRuntimes(ctx context.Context) ([]*api.Runtime, error)

func SetLambda

func SetLambda(ctx context.Context, lambda *api.Lambda) error

func SetRuntime

func SetRuntime(ctx context.Context, runtime *api.Runtime) 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 *api.CreateRuntime) (*api.Runtime, error)
	BootstrapLambda(ctx context.Context, lambda *api.CreateLambda) (*api.Lambda, 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