webhooks

package
v0.0.55 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package webhooks contains logic relating to manipulating GitHub webhooks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookManager

type WebhookManager interface {
	CreateWebhook(
		ctx context.Context,
		client ghclient.GitHubRepoClient,
		repoOwner string,
		repoName string,
	) (string, *github.Hook, error)

	DeleteWebhook(
		ctx context.Context,
		client ghclient.GitHubRepoClient,
		repoOwner string,
		repoName string,
		hookID int64,
	) error
}

WebhookManager encapsulates logic for creating and deleting GitHub webhooks

func NewWebhookManager

func NewWebhookManager(webhookConfig server.WebhookConfig) WebhookManager

NewWebhookManager instantiates an instances of the WebhookManager interface

Directories

Path Synopsis
Package mock_webhooks is a generated GoMock package.
Package mock_webhooks is a generated GoMock package.

Jump to

Keyboard shortcuts

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