stepfunc

package
v0.0.0-...-2baebd5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package stepfunc provides code needed to be shared across the stepfunction lambdas

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GitHubWebhookSecret string
	GithubAppPrivateKey []byte
	InstallationID      int
	CircleToken         string
}

Config holds all the configuration for the lambda function

func GetConfiguration

func GetConfiguration() (Config, error)

GetConfiguration gets all the secret values that the lambda function needs to run and will error if it can't fetch any

type Data

type Data struct {
	RepoName              string                    `json:"repo_name"`
	Owner                 string                    `json:"owner"`
	PullRequestNumber     int                       `json:"pull_request_number"`
	InstallationID        int                       `json:"installation_id"`
	CommitSHA             string                    `json:"commit_sha"`
	PipelineID            string                    `json:"pipeline_id"`
	WorkflowIDs           []string                  `json:"workflow_ids"`
	WorkflowJobs          map[string][]circleci.Job `json:"workflow_jobs"`
	AllJobsDone           bool                      `json:"all_jobs_done"`
	WaitForJobsRetryCount int                       `json:"wait_for_jobs_retry_count"`
	WaitForJobsWaitTime   int                       `json:"wait_for_jobs_wait_time"`
}

Data is the common input/ouput for all lambda functions in the step function

Jump to

Keyboard shortcuts

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