vcswebhookshandler

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	configuration librepo.Configuration,
	logging librepo.Logging,
	timestamp librepo.Timestamp,
	repositories service.Repositories,
	updater service.Updater,
	vcsPlatforms map[string]VCSPlatform,
) service.VCSWebhooksHandler

func NewErrVCSConfigurationNotFound

func NewErrVCSConfigurationNotFound(key string) error

Types

type ErrVCSConfigurationNotFound

type ErrVCSConfigurationNotFound struct {
	// contains filtered or unexported fields
}

func (ErrVCSConfigurationNotFound) Error

type Impl

type Impl struct {
	CustomConfiguration config.CustomConfiguration
	Logging             librepo.Logging
	Timestamp           librepo.Timestamp
	Repositories        service.Repositories

	Updater service.Updater
	// contains filtered or unexported fields
}

func (*Impl) HandleEvent

func (h *Impl) HandleEvent(
	ctx context.Context,
	vcsKey string,
	r *http.Request,
) error

type VCSPlatform

type VCSPlatform struct {
	Platform config.VCSPlatform
	VCS      repository.VcsPlugin
}

Jump to

Keyboard shortcuts

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