Documentation ¶
Index ¶
Constants ¶
View Source
const ( CounterJobSuccess = "jobSuccess" CounterJobFailure = "jobFailure" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FullHandler ¶
type FullHandler func(ctx context.Context, request events.CodePipelineEvent) (success *codepipeline.PutJobSuccessResultInput, failure *codepipeline.PutJobFailureResultInput, err error)
The full handler must indicate whether the job was a success or failure. It's an error for both success and failure to be returned.
type Handler ¶
type Handler func(ctx context.Context, request events.CodePipelineEvent) (err error)
Handler for CodePipeline Lambda action.
func WrapFullHandler ¶
func WrapFullHandler(svc *codepipeline.Client, handler FullHandler) Handler
Wraps a FullHandler.
func WrapSimpleHandler ¶
func WrapSimpleHandler(svc *codepipeline.Client, handler SimpleHandler) Handler
Wraps a SimpleHandler.
type SimpleHandler ¶
type SimpleHandler func(ctx context.Context, request events.CodePipelineEvent) (outputVariables map[string]string, failureDetails *types.FailureDetails, err error)
A simplified variant of FullHandler.
Click to show internal directories.
Click to hide internal directories.