server

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPlugin

func AddPlugin(events []git.EventType, p Plugin)

AddPlugin adds handler for specific events

Types

type Plugin

type Plugin interface {
	Handle(*git.Webhook, *cicdv1.IntegrationConfig) error
}

Plugin is a webhook plugin interface, which handles git webhook payloads

type Server

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

Server is a HTTP server for git webhook API and report page

func New

func New(c client.Client, cfg *rest.Config) *Server

New is a constructor of a Server

func (*Server) Start

func (s *Server) Start()

Start starts the Server

Jump to

Keyboard shortcuts

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