v1

package
v0.0.0-...-5f0dc1b Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: CC0-1.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventHeader      = "X-Github-InternalEvent"
	TargetIdHeader   = "X-Github-Hook-Installation-Target-Id"
	TargetTypeHeader = "X-Github-Hook-Installation-Target-Type"

	SignatureHeader = "X-Hub-Signature-256"
)

Variables

This section is empty.

Functions

func HandleGitHubPost

func HandleGitHubPost(ctx echo.Context) error

func HandleRetrieveEventsForRepository

func HandleRetrieveEventsForRepository(ctx echo.Context) error

HandleRetrieveEventsForRepository handles API call for listing wich repositories are currently watched

func HandleWatchListGet

func HandleWatchListGet(ctx echo.Context) error

HandleWatchListGet handles API call for listing wich repositories are currently watched

func ValidateEvent

func ValidateEvent(hmac string, event *v1.WebhookEvent) bool

func ValidateMessage

func ValidateMessage(token string, givenSha string, payload []byte) error

Types

type RepositoryEvents

type RepositoryEvents struct {
	Events []*v1.WebhookEventInternal
}

WatchedRepositoryList simple type for returning proper JSON

type WatchedRepositoryList

type WatchedRepositoryList struct {
	GitHubRepositoryIDs []string
}

WatchedRepositoryList simple type for returning proper JSON

Jump to

Keyboard shortcuts

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