lambda

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeBuild

type CodeBuild interface {
	StartBuildBatchWithContext(ctx aws.Context, input *codebuild.StartBuildBatchInput, opts ...request.Option) (*codebuild.StartBuildBatchOutput, error)
	StartBuildWithContext(ctx aws.Context, input *codebuild.StartBuildInput, opts ...request.Option) (*codebuild.StartBuildOutput, error)
}

type Handler

type Handler struct {
	Config       config.Config
	Secret       Secret
	GitHub       domain.GitHub
	CodeBuild    CodeBuild
	AWSAccountID string
}

func (*Handler) Do

func (handler *Handler) Do(ctx context.Context, event domain.Event) error

Do is the Lambda Function's endpoint.

type Secret

type Secret struct {
	GitHubToken   string `json:"github-token"`
	WebhookSecret string `json:"webhook-secret"`
}

Jump to

Keyboard shortcuts

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