approvalrulesprocessing

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessAllPendingReleasesInBackground

func ProcessAllPendingReleasesInBackground(db *gorm.DB, wg *sync.WaitGroup) error

func ProcessInBackground

func ProcessInBackground(db *gorm.DB, organizationID string, job dbmodels.ReleaseBackgroundJob, wg *sync.WaitGroup) error

Types

type Engine

type Engine struct {
	Db                   *gorm.DB
	OrganizationID       string
	ReleaseBackgroundJob dbmodels.ReleaseBackgroundJob
}

Engine processes a Release based on its bound ApprovalRules. It accepts a Release which hasn't been fully processed yet. This is done by passing the corresponding ReleaseBackgroundJob.

func (*Engine) Run

func (engine *Engine) Run() error

Jump to

Keyboard shortcuts

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