lambda

package
v0.0.0-...-c92edef Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeContext

func InitializeContext(ctx context.Context) context.Context

Types

type ContextKey

type ContextKey string

ContextKey defines a type to store the integration lambda session in context.Context.

type Logger

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

Logger logs the lambda operations in a configurable file.

func GetLogger

func GetLogger() *Logger

GetLogger returns the logger for lambda operations. If the logger is not created yet, it creates a new instance of Logger.

func NewLogger

func NewLogger(logsPath string) (*Logger, error)

NewLogger creates an instance of the logger. It configures the file path where the lambda operations are logged.

func (Logger) LogMessage

func (l Logger) LogMessage(message string)

Log a lambda message

type Session

type Session struct {
	AwsSession *aws_s.Session
	S3Session  *s3.Session
	// contains filtered or unexported fields
}

func GetSession

func GetSession(ctx context.Context) *Session

GetSession returns the integration lambda session stored in context. Note that the context should be previously initialized with InitializeContext function.

func (*Session) CreateLambdaFunction

func (s *Session) CreateLambdaFunction(ctx context.Context) error

func (*Session) DeleteLambdaFunction

func (s *Session) DeleteLambdaFunction() error

func (*Session) SetLambdaClient

func (s *Session) SetLambdaClient()

type Steps

type Steps struct {
}

func (Steps) InitializeSteps

func (s Steps) InitializeSteps(
	ctx context.Context,
	scenCtx *godog.ScenarioContext,
) context.Context

Jump to

Keyboard shortcuts

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