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 ¶
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) List() ([]engine.EngineMetadata, error)
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) Provide(engine.PullPolicy) error
func (*LambdaProvider) Satisfied ¶
func (*LambdaProvider) Satisfied() bool
Click to show internal directories.
Click to hide internal directories.