awslambda

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFunction

func GetFunction(ctx context.Context, client GetFunctionApi, functionName string) (*lambda.GetFunctionOutput, error)

Gets lambda function details by function name

func GetFunctionDescription

func GetFunctionDescription(ctx context.Context, client GetFunctionConfigurationApi, functionName string) (*string, error)

func ListFunctions

func ListFunctions(ctx context.Context, client ListFunctionsApi) (*lambda.ListFunctionsOutput, error)

List all lambda ListFunctions

func NewClient added in v0.3.0

func NewClient(useTracing bool) *lambda.Client

func TagLambdaFunction

func TagLambdaFunction(ctx context.Context, client TagResourceApi, functionName string, tags map[string]string) error

func UpdateFunctionCode

func UpdateFunctionCode(ctx context.Context, client UpdateFunctionCodeApi, functionName string, s3Bucket string, s3Key string, architecture types.Architecture) (*lambda.UpdateFunctionCodeOutput, error)

Updates lambda function code referenced by function name to code uploaded to specified s3 bucket

func UpdateFunctionDescription

func UpdateFunctionDescription(ctx context.Context, client UpdateFunctionConfigurationApi, functionName string, description string) error

Types

type GetFunctionApi

type GetFunctionApi interface {
	GetFunction(ctx context.Context,
		params *lambda.GetFunctionInput,
		optFns ...func(*lambda.Options)) (*lambda.GetFunctionOutput, error)
}

type GetFunctionConfigurationApi

type GetFunctionConfigurationApi interface {
	GetFunctionConfiguration(ctx context.Context, params *lambda.GetFunctionConfigurationInput,
		optFns ...func(*lambda.Options)) (*lambda.GetFunctionConfigurationOutput, error)
}

type ListFunctionsApi

type ListFunctionsApi interface {
	ListFunctions(ctx context.Context, params *lambda.ListFunctionsInput,
		optFns ...func(*lambda.Options)) (*lambda.ListFunctionsOutput, error)
}

type TagResourceApi

type TagResourceApi interface {
	TagResource(ctx context.Context,
		params *lambda.TagResourceInput,
		optFns ...func(*lambda.Options)) (*lambda.TagResourceOutput, error)
}

type UpdateFunctionCodeApi

type UpdateFunctionCodeApi interface {
	UpdateFunctionCode(ctx context.Context,
		params *lambda.UpdateFunctionCodeInput,
		optFns ...func(*lambda.Options)) (*lambda.UpdateFunctionCodeOutput, error)
}

type UpdateFunctionConfigurationApi

type UpdateFunctionConfigurationApi interface {
	UpdateFunctionConfiguration(ctx context.Context,
		params *lambda.UpdateFunctionConfigurationInput,
		optFns ...func(*lambda.Options)) (*lambda.UpdateFunctionConfigurationOutput, error)
}

Jump to

Keyboard shortcuts

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