lambda

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IClient

type IClient interface {
	CreateFunction(name, zipFilePath, handler string) (*lambda.FunctionConfiguration, error)
	DeleteFunction(name string) error
	UpdateFunctionCode(name, zipFilePath string) (*lambda.FunctionConfiguration, error)
	ListFunctions() (*lambda.ListFunctionsOutput, error)
	GetFunction(name string) (*lambda.GetFunctionOutput, error)
	CreateEventSourceMapping(function, queue string) (*lambda.EventSourceMappingConfiguration, error)
	DeleteEventSourceMapping(id string) error
	Invoke(name, payload string) (*lambda.InvokeOutput, error)
	CreateFunctionUrlConfig(name string) (*lambda.CreateFunctionUrlConfigOutput, error)
	DeleteFunctionUrlConfig(name string) error
}

func New

func New(config *config.AWS) (IClient, error)

type Lambda

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

func (*Lambda) CreateEventSourceMapping

func (service *Lambda) CreateEventSourceMapping(function, queue string) (*lambda.EventSourceMappingConfiguration, error)

func (*Lambda) CreateFunction

func (service *Lambda) CreateFunction(name, zipFilePath, handler string) (*lambda.FunctionConfiguration, error)

func (*Lambda) CreateFunctionUrlConfig

func (service *Lambda) CreateFunctionUrlConfig(name string) (*lambda.CreateFunctionUrlConfigOutput, error)

func (*Lambda) DeleteEventSourceMapping

func (service *Lambda) DeleteEventSourceMapping(id string) error

func (*Lambda) DeleteFunction

func (service *Lambda) DeleteFunction(name string) error

func (*Lambda) DeleteFunctionUrlConfig

func (service *Lambda) DeleteFunctionUrlConfig(name string) error

func (*Lambda) GetFunction

func (service *Lambda) GetFunction(name string) (*lambda.GetFunctionOutput, error)

func (*Lambda) Invoke

func (service *Lambda) Invoke(name, payload string) (*lambda.InvokeOutput, error)

func (*Lambda) ListFunctions

func (service *Lambda) ListFunctions() (*lambda.ListFunctionsOutput, error)

func (*Lambda) UpdateFunctionCode

func (service *Lambda) UpdateFunctionCode(name, zipFilePath string) (*lambda.FunctionConfiguration, error)

Jump to

Keyboard shortcuts

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