codepipelinelambdaaction

package
v0.0.0-...-3a9ac50 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CounterJobSuccess = "jobSuccess"
	CounterJobFailure = "jobFailure"
)

Variables

This section is empty.

Functions

func Start

func Start(handler Handler, options ...start.Option)

Start starts the Lambda runtime loop with the specified Handler.

Types

type FullHandler

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.

Jump to

Keyboard shortcuts

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