github

package
v0.0.0-...-03eeb13 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRepositoryNotFound       = fmt.Errorf("payload repository not found")
	ErrNotGitHubRepository      = fmt.Errorf("repository not configured for GitHub")
	ErrWebhookConfigMissing     = fmt.Errorf("webhook configuration missing")
	ErrWebhookSecretNameNotSet  = fmt.Errorf("webhook secret name not set")
	ErrWebhookSecretKeyNotSet   = fmt.Errorf("webhook secret key not set")
	ErrWebhookSecretNotFound    = fmt.Errorf("webhook secret not found")
	ErrWebhookSecretKeyNotFound = fmt.Errorf("webhook secret key not found in secret")
	ErrWebhookSecretIsEmpty     = fmt.Errorf("webhook secret is empty")
)

Functions

This section is empty.

Types

type PushHandler

type PushHandler struct {
	client.Client
	github.Webhook
}

func NewPushHandler

func NewPushHandler(kubeConfig *rest.Config, s *runtime.Scheme) (*PushHandler, error)

func (*PushHandler) Close

func (ph *PushHandler) Close() error

func (*PushHandler) HandleWebhookRequest

func (ph *PushHandler) HandleWebhookRequest(w http.ResponseWriter, r *http.Request)

func (*PushHandler) Start

func (ph *PushHandler) Start(_ context.Context) error

Jump to

Keyboard shortcuts

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