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 ¶
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
Click to show internal directories.
Click to hide internal directories.