mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
* add basic documentation for catalogers (with refactoring for simplification) Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add docs for catalog parsers, UI, and event bus Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * update bus phrasing Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
10 lines
315 B
Go
10 lines
315 B
Go
package ui
|
|
|
|
import (
|
|
"github.com/wagoodman/go-partybus"
|
|
)
|
|
|
|
// UI is a function that takes a channel of errors from the main() worker and a event bus subscription and is
|
|
// responsible for displaying pertinent events to the user, on the screen or otherwise.
|
|
type UI func(<-chan error, *partybus.Subscription) error
|