lambda

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitbucketBranch

type BitbucketBranch struct {
	Name string `json:"name"`
}

BitbucketBranch is a kv branch

type BitbucketPullRequest

type BitbucketPullRequest struct {
	Destination RepositoryAndBranch `json:"destination"`
	Source      RepositoryAndBranch `json:"source"`
	State       string              `json:"state"` // enum of MERGED || DECLINED
}

BitbucketPullRequest is the struct for Bitbucket

type BitbucketWebhookEvent

type BitbucketWebhookEvent struct {
	Repository  Repository             `json:"repository"`
	PullRequest BitbucketPullRequest   `json:"pullrequest"`
	Actor       map[string]interface{} `json:"actor"`
}

BitbucketWebhookEvent is what we are expecting to parse from bitbucket

type GithubPullRequest

type GithubPullRequest struct {
	State  string         `json:"state"`
	Head   GithubRepoHead `json:"head"`
	Base   GithubRepoBase `json:"base"`
	Merged bool           `json:"merged"`
}

GithubPullRequest is the struct for Github

type GithubRepoBase

type GithubRepoBase struct {
	Repository Repository `json:"repo"`
}

GithubRepoBase

type GithubRepoHead

type GithubRepoHead struct {
	Ref        string     `json:"ref"`
	Repository Repository `json:"repo"`
}

GithubRepoHead

type GithubWebhookEvent

type GithubWebhookEvent struct {
	Action      string            `json:"action"`
	PullRequest GithubPullRequest `json:"pull_request"`
	Repository  Repository        `json:"repository"`
}

GithubWebhookEvent is what we're expecting to parse from Github

type Repository

type Repository struct {
	Name     string `json:"name"`
	Fullname string `json:"full_name"`
}

Repository is a simple type for Github

type RepositoryAndBranch

type RepositoryAndBranch struct {
	Repository Repository      `json:"repository"`
	Branch     BitbucketBranch `json:"branch"`
}

RepositoryAndBranch is a bitbucket data object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳