hook

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelSCMTrigger

func LabelSCMTrigger(wft *v1alpha1.WorkflowTrigger)

LabelSCMTrigger add labels about scm trigger

func ListSCMWfts

func ListSCMWfts(tenant, repo, integration string) (*v1alpha1.WorkflowTriggerList, error)

ListSCMWfts list all related SCM type workflow triggers

Types

type Manager

type Manager interface {
	// Register hooks
	Register(tenant string, wft v1alpha1.WorkflowTrigger) error
	// Unregister hooks
	Unregister(tenant string, wft v1alpha1.WorkflowTrigger) error
}

Manager is an interface described hook management functions

func GetManager

func GetManager(typ v1alpha1.TriggerType) (Manager, error)

GetManager ...

type SCMManager

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

SCMManager represents manager of SCM instances.

func (*SCMManager) Register

func (*SCMManager) Register(tenant string, wft v1alpha1.WorkflowTrigger) error

Register registers SCM webhook if if has not been registered.

func (*SCMManager) Unregister

func (o *SCMManager) Unregister(tenant string, wft v1alpha1.WorkflowTrigger) error

Unregister unregisters SCM webhook if if has no other wft using.

Jump to

Keyboard shortcuts

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