From 4909392e1b08c097e616b300a34ce5058ec9010e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Nov 2022 12:25:23 -0700 Subject: [PATCH] Build(deps): Bump github.com/aws/aws-lambda-go from 1.34.1 to 1.35.0 (#767) Bumps [github.com/aws/aws-lambda-go](https://github.com/aws/aws-lambda-go) from 1.34.1 to 1.35.0. - [Release notes](https://github.com/aws/aws-lambda-go/releases) - [Commits](https://github.com/aws/aws-lambda-go/compare/v1.34.1...v1.35.0) --- updated-dependencies: - dependency-name: github.com/aws/aws-lambda-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 +- .../aws/aws-lambda-go/events/activemq.go | 1 + .../aws/aws-lambda-go/events/codebuild.go | 2 +- .../aws/aws-lambda-go/events/codepipeline.go | 3 +- .../aws/aws-lambda-go/lambda/entry.go | 34 +++++------ .../lambda/extensions_api_client.go | 2 +- .../aws/aws-lambda-go/lambda/handler.go | 56 ++++++++++--------- .../lambda/runtime_api_client.go | 10 ++-- vendor/modules.txt | 2 +- 10 files changed, 61 insertions(+), 55 deletions(-) diff --git a/go.mod b/go.mod index dc2affd2..ad26e55d 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/BurntSushi/toml v1.2.1 - github.com/aws/aws-lambda-go v1.34.1 + github.com/aws/aws-lambda-go v1.35.0 github.com/cppforlife/cobrautil v0.0.0-20200514214827-bb86e6965d72 github.com/cppforlife/go-cli-ui v0.0.0-20200505234325-512793797f05 github.com/google/gofuzz v1.2.0 diff --git a/go.sum b/go.sum index 5aa27e2c..f0e37bee 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/aws/aws-lambda-go v1.34.1 h1:M3a/uFYBjii+tDcOJ0wL/WyFi2550FHoECdPf27zvOs= -github.com/aws/aws-lambda-go v1.34.1/go.mod h1:jwFe2KmMsHmffA1X2R09hH6lFzJQxzI8qK17ewzbQMM= +github.com/aws/aws-lambda-go v1.35.0 h1:iocVDy5Cw5SCRrKOPHwarkdFwwy48OkfmHoE6SJ3ATg= +github.com/aws/aws-lambda-go v1.35.0/go.mod h1:jwFe2KmMsHmffA1X2R09hH6lFzJQxzI8qK17ewzbQMM= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= diff --git a/vendor/github.com/aws/aws-lambda-go/events/activemq.go b/vendor/github.com/aws/aws-lambda-go/events/activemq.go index 3e9ffb87..fec67c44 100644 --- a/vendor/github.com/aws/aws-lambda-go/events/activemq.go +++ b/vendor/github.com/aws/aws-lambda-go/events/activemq.go @@ -23,6 +23,7 @@ type ActiveMQMessage struct { Data string `json:"data"` BrokerInTime int64 `json:"brokerInTime"` BrokerOutTime int64 `json:"brokerOutTime"` + Properties map[string]string `json:"properties"` } type ActiveMQDestination struct { diff --git a/vendor/github.com/aws/aws-lambda-go/events/codebuild.go b/vendor/github.com/aws/aws-lambda-go/events/codebuild.go index 2a464829..08cbb607 100644 --- a/vendor/github.com/aws/aws-lambda-go/events/codebuild.go +++ b/vendor/github.com/aws/aws-lambda-go/events/codebuild.go @@ -93,7 +93,7 @@ type CodeBuildEventDetail struct { CompletedPhaseEnd CodeBuildTime `json:"completed-phase-end"` } -//CodeBuildEventAdditionalInformation represents additional information to the code build event +// CodeBuildEventAdditionalInformation represents additional information to the code build event type CodeBuildEventAdditionalInformation struct { Artifact CodeBuildArtifact `json:"artifact"` diff --git a/vendor/github.com/aws/aws-lambda-go/events/codepipeline.go b/vendor/github.com/aws/aws-lambda-go/events/codepipeline.go index 2134cbb5..4e15de57 100644 --- a/vendor/github.com/aws/aws-lambda-go/events/codepipeline.go +++ b/vendor/github.com/aws/aws-lambda-go/events/codepipeline.go @@ -1,6 +1,7 @@ package events // CodePipelineJob has been incorrectly assigned as CodePipelineEvent -// - https://github.com/aws/aws-lambda-go/issues/244 +// - https://github.com/aws/aws-lambda-go/issues/244 +// // This maintains backwards compatability until a v2 release type CodePipelineEvent = CodePipelineJobEvent diff --git a/vendor/github.com/aws/aws-lambda-go/lambda/entry.go b/vendor/github.com/aws/aws-lambda-go/lambda/entry.go index c935e236..6c1d7194 100644 --- a/vendor/github.com/aws/aws-lambda-go/lambda/entry.go +++ b/vendor/github.com/aws/aws-lambda-go/lambda/entry.go @@ -14,24 +14,24 @@ import ( // // Rules: // -// * handler must be a function -// * handler may take between 0 and two arguments. -// * if there are two arguments, the first argument must satisfy the "context.Context" interface. -// * handler may return between 0 and two arguments. -// * if there are two return values, the second argument must be an error. -// * if there is one return value it must be an error. +// - handler must be a function +// - handler may take between 0 and two arguments. +// - if there are two arguments, the first argument must satisfy the "context.Context" interface. +// - handler may return between 0 and two arguments. +// - if there are two return values, the second argument must be an error. +// - if there is one return value it must be an error. // // Valid function signatures: // -// func () -// func () error -// func (TIn) error -// func () (TOut, error) -// func (TIn) (TOut, error) -// func (context.Context) error -// func (context.Context, TIn) error -// func (context.Context) (TOut, error) -// func (context.Context, TIn) (TOut, error) +// func () +// func () error +// func (TIn) error +// func () (TOut, error) +// func (TIn) (TOut, error) +// func (context.Context) error +// func (context.Context, TIn) error +// func (context.Context) (TOut, error) +// func (context.Context, TIn) (TOut, error) // // Where "TIn" and "TOut" are types compatible with the "encoding/json" standard library. // See https://golang.org/pkg/encoding/json/#Unmarshal for how deserialization behaves @@ -51,7 +51,7 @@ func StartWithContext(ctx context.Context, handler interface{}) { // // Handler implementation requires a single "Invoke()" function: // -// func Invoke(context.Context, []byte) ([]byte, error) +// func Invoke(context.Context, []byte) ([]byte, error) // // Deprecated: use lambda.Start(handler) instead func StartHandler(handler Handler) { @@ -83,7 +83,7 @@ var ( // // Handler implementation requires a single "Invoke()" function: // -// func Invoke(context.Context, []byte) ([]byte, error) +// func Invoke(context.Context, []byte) ([]byte, error) // // Deprecated: use lambda.StartWithOptions(handler, lambda.WithContext(ctx)) instead func StartHandlerWithContext(ctx context.Context, handler Handler) { diff --git a/vendor/github.com/aws/aws-lambda-go/lambda/extensions_api_client.go b/vendor/github.com/aws/aws-lambda-go/lambda/extensions_api_client.go index e17292b3..c9703891 100644 --- a/vendor/github.com/aws/aws-lambda-go/lambda/extensions_api_client.go +++ b/vendor/github.com/aws/aws-lambda-go/lambda/extensions_api_client.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" + "io/ioutil" //nolint: staticcheck "net/http" ) diff --git a/vendor/github.com/aws/aws-lambda-go/lambda/handler.go b/vendor/github.com/aws/aws-lambda-go/lambda/handler.go index d23a789b..0fc82d6e 100644 --- a/vendor/github.com/aws/aws-lambda-go/lambda/handler.go +++ b/vendor/github.com/aws/aws-lambda-go/lambda/handler.go @@ -32,12 +32,13 @@ type Option func(*handlerOptions) // WithContext is a HandlerOption that sets the base context for all invocations of the handler. // // Usage: -// lambda.StartWithOptions( -// func (ctx context.Context) (string, error) { -// return ctx.Value("foo"), nil -// }, -// lambda.WithContext(context.WithValue(context.Background(), "foo", "bar")) -// ) +// +// lambda.StartWithOptions( +// func (ctx context.Context) (string, error) { +// return ctx.Value("foo"), nil +// }, +// lambda.WithContext(context.WithValue(context.Background(), "foo", "bar")) +// ) func WithContext(ctx context.Context) Option { return Option(func(h *handlerOptions) { h.baseContext = ctx @@ -47,12 +48,13 @@ func WithContext(ctx context.Context) Option { // WithSetEscapeHTML sets the SetEscapeHTML argument on the underlying json encoder // // Usage: -// lambda.StartWithOptions( -// func () (string, error) { -// return "hello!>", nil -// }, -// lambda.WithSetEscapeHTML(true), -// ) +// +// lambda.StartWithOptions( +// func () (string, error) { +// return "hello!>", nil +// }, +// lambda.WithSetEscapeHTML(true), +// ) func WithSetEscapeHTML(escapeHTML bool) Option { return Option(func(h *handlerOptions) { h.jsonResponseEscapeHTML = escapeHTML @@ -62,12 +64,13 @@ func WithSetEscapeHTML(escapeHTML bool) Option { // WithSetIndent sets the SetIndent argument on the underling json encoder // // Usage: -// lambda.StartWithOptions( -// func (event any) (any, error) { -// return event, nil -// }, -// lambda.WithSetIndent(">"," "), -// ) +// +// lambda.StartWithOptions( +// func (event any) (any, error) { +// return event, nil +// }, +// lambda.WithSetIndent(">"," "), +// ) func WithSetIndent(prefix, indent string) Option { return Option(func(h *handlerOptions) { h.jsonResponseIndentPrefix = prefix @@ -80,14 +83,15 @@ func WithSetIndent(prefix, indent string) Option { // Optionally, an array of callback functions to run on SIGTERM may be provided. // // Usage: -// lambda.StartWithOptions( -// func (event any) (any, error) { -// return event, nil -// }, -// lambda.WithEnableSIGTERM(func() { -// log.Print("function container shutting down...") -// }) -// ) +// +// lambda.StartWithOptions( +// func (event any) (any, error) { +// return event, nil +// }, +// lambda.WithEnableSIGTERM(func() { +// log.Print("function container shutting down...") +// }) +// ) func WithEnableSIGTERM(callbacks ...func()) Option { return Option(func(h *handlerOptions) { h.sigtermCallbacks = append(h.sigtermCallbacks, callbacks...) diff --git a/vendor/github.com/aws/aws-lambda-go/lambda/runtime_api_client.go b/vendor/github.com/aws/aws-lambda-go/lambda/runtime_api_client.go index 637a5411..843f7ace 100644 --- a/vendor/github.com/aws/aws-lambda-go/lambda/runtime_api_client.go +++ b/vendor/github.com/aws/aws-lambda-go/lambda/runtime_api_client.go @@ -8,7 +8,7 @@ import ( "bytes" "fmt" "io" - "io/ioutil" + "io/ioutil" //nolint: staticcheck "log" "net/http" "runtime" @@ -50,7 +50,7 @@ type invoke struct { // success sends the response payload for an in-progress invocation. // Notes: -// * An invoke is not complete until next() is called again! +// - An invoke is not complete until next() is called again! func (i *invoke) success(payload []byte, contentType string) error { url := i.client.baseURL + i.id + "/response" return i.client.post(url, payload, contentType) @@ -58,9 +58,9 @@ func (i *invoke) success(payload []byte, contentType string) error { // failure sends the payload to the Runtime API. This marks the function's invoke as a failure. // Notes: -// * The execution of the function process continues, and is billed, until next() is called again! -// * A Lambda Function continues to be re-used for future invokes even after a failure. -// If the error is fatal (panic, unrecoverable state), exit the process immediately after calling failure() +// - The execution of the function process continues, and is billed, until next() is called again! +// - A Lambda Function continues to be re-used for future invokes even after a failure. +// If the error is fatal (panic, unrecoverable state), exit the process immediately after calling failure() func (i *invoke) failure(payload []byte, contentType string) error { url := i.client.baseURL + i.id + "/error" return i.client.post(url, payload, contentType) diff --git a/vendor/modules.txt b/vendor/modules.txt index 0d31c2a4..bfaffb18 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -2,7 +2,7 @@ ## explicit; go 1.16 github.com/BurntSushi/toml github.com/BurntSushi/toml/internal -# github.com/aws/aws-lambda-go v1.34.1 +# github.com/aws/aws-lambda-go v1.35.0 ## explicit; go 1.18 github.com/aws/aws-lambda-go/events github.com/aws/aws-lambda-go/lambda