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
type SCMManager ¶
type SCMManager struct {
// contains filtered or unexported fields
}
SCMManager
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.
Click to show internal directories.
Click to hide internal directories.