hook

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	SCM           core.SCMService
	RepoStore     core.RepoStore
	ReportStore   core.ReportStore
	ReportService core.ReportService
}

Service of webhook resolve and management

func (*Service) Create

func (s *Service) Create(ctx context.Context, repo *core.Repo) error

Create a webhook to repository. If existed webhook found, it will be removed first

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, repo *core.Repo) error

Delete a repository webhook

func (*Service) Resolve

func (s *Service) Resolve(ctx context.Context, repo *core.Repo, hook core.HookEvent) error

Resolve webhook event from the SCM

Jump to

Keyboard shortcuts

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