awslambda

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIGatewayEventToCheckResourcesRequest

func APIGatewayEventToCheckResourcesRequest(event events.APIGatewayV2HTTPRequest) (*requestv1.CheckResourcesRequest, error)

APIGatewayEventToCheckResourcesRequest converts an API Gateway event to a CheckResourcesRequest.

func APIGatewayEventToPlanResourcesRequest

func APIGatewayEventToPlanResourcesRequest(event events.APIGatewayV2HTTPRequest) (*requestv1.PlanResourcesRequest, error)

APIGatewayEventToPlanResourcesRequest converts an API Gateway event to a PlanResourcesRequest.

func ErrorToAPIGateway

func ErrorToAPIGateway(message string, statusCode int) events.APIGatewayV2HTTPResponse

func GetConfOverrides

func GetConfOverrides(confOverrides map[string]any) error

func HubStorageDriver

func HubStorageDriver(confOverrides map[string]any) bool

func MkConfStorageOverrides

func MkConfStorageOverrides(cwd string, confOverrides map[string]any) error

func RegisterNewExtension

func RegisterNewExtension(ctx context.Context, runtimeAPI string) (*lambdaExt, error)

func ResponseToAPIGateway

func ResponseToAPIGateway[T proto.Message](resp T) (events.APIGatewayV2HTTPResponse, error)

ResponseToAPIGateway converts a protobuf response to an API Gateway response.

func RouteRequest

RouteRequest routes the API Gateway request to the appropriate handler.

func WaitForReady

func WaitForReady(ctx context.Context) error

Types

type EventResponse

type EventResponse struct {
	Tracing struct {
		Type  string `json:"type"`
		Value string `json:"value"`
	} `json:"tracing"`
	EventType          string `json:"eventType"`
	RequestID          string `json:"requestId"` //nolint:tagliatelle
	InvokedFunctionArn string `json:"invokedFunctionArn"`
	DeadlineMs         int64  `json:"deadlineMs"`
}

type FunctionHandler

type FunctionHandler struct {
	// contains filtered or unexported fields
}

FunctionHandler handles AWS Lambda function invocations.

func NewFunctionHandler

func NewFunctionHandler(ctx context.Context) (*FunctionHandler, error)

func (*FunctionHandler) Close

func (h *FunctionHandler) Close() error

type RegisterRequest

type RegisterRequest struct {
	Events []string `json:"events"`
}

Jump to

Keyboard shortcuts

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