Documentation ¶
Index ¶
- Constants
- func HandleGitHubPost(ctx echo.Context) error
- func HandleRetrieveEventsForRepository(ctx echo.Context) error
- func HandleWatchListGet(ctx echo.Context) error
- func ValidateEvent(hmac string, event *v1.WebhookEvent) bool
- func ValidateMessage(token string, givenSha string, payload []byte) error
- type RepositoryEvents
- type WatchedRepositoryList
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
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
Click to show internal directories.
Click to hide internal directories.