eventloop

package
v0.69.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventLoop

func EventLoop(workerErrs <-chan error, signals <-chan os.Signal, subscription *partybus.Subscription, cleanupFn func(), uxs ...ui.UI) error

eventLoop listens to worker errors (from execution path), worker events (from a partybus subscription), and signal interrupts. Is responsible for handling each event relative to a given UI an to coordinate eventing until an eventual graceful exit.

func RunTask

func RunTask(t Task, a *sbom.Artifacts, src *source.Source, c chan<- artifact.Relationship, errs chan<- error)

func SetupSignals

func SetupSignals() <-chan os.Signal

Types

type Task

func Tasks

func Tasks(app *config.Application) ([]Task, error)

Jump to

Keyboard shortcuts

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