awslambda

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLambdaArch = "amd64"

DefaultLambdaArch is the architecture assumed when a caller does not specify one. It matches AWS Lambda's own default architecture (x86_64, expressed as the Go arch name "amd64") so unconfigured bundles still produce a deployable artefact.

Variables

This section is empty.

Functions

func CreateDeploymentPackage

func CreateDeploymentPackage(version string, dir string, arch string) (*[]byte, error)

CreateDeploymentPackage assembles the AWS Lambda zip for the given engine version, embedding the configuration directory contents. arch selects the underlying binary's CPU architecture (Go-style: "amd64" or "arm64") for engine flavours whose binaries are arch-specific (the native engine); callers may pass "" to fall back to DefaultLambdaArch.

func EnableEngine

func EnableEngine()

Types

type LambdaLibrary

type LambdaLibrary struct{}

func (LambdaLibrary) CheckPrereqs

func (LambdaLibrary) CheckPrereqs() (bool, []string)

func (LambdaLibrary) GetProvider

func (LambdaLibrary) GetProvider(version string) engine.Provider

func (LambdaLibrary) IsSealedDistro

func (LambdaLibrary) IsSealedDistro() bool

func (LambdaLibrary) List

func (LambdaLibrary) ShouldEnsurePlugins

func (LambdaLibrary) ShouldEnsurePlugins() bool

type LambdaProvider

type LambdaProvider struct {
	engine.EngineMetadata

	// Architecture selects the target CPU architecture for the bundled
	// binary (Go-style: "amd64" or "arm64"). It is only consulted by engine
	// flavours that ship per-architecture binaries (the native engine). If
	// left empty, CreateDeploymentPackage falls back to DefaultLambdaArch.
	Architecture string
}

func (*LambdaProvider) Bundle

func (p *LambdaProvider) Bundle(configDir string, dest string) error

func (*LambdaProvider) GetEngineType

func (p *LambdaProvider) GetEngineType() engine.EngineType

func (*LambdaProvider) Provide

func (*LambdaProvider) Satisfied

func (*LambdaProvider) Satisfied() bool

Jump to

Keyboard shortcuts

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