github.com/anchore/syft@v1.38.2/syft/event/event.go (about)

     1  /*
     2  Package event provides event types for all events that the syft library published onto the event bus. By convention, for each event
     3  defined here there should be a corresponding event parser defined in the parsers/ child package.
     4  */
     5  package event
     6  
     7  import (
     8  	"github.com/wagoodman/go-partybus"
     9  )
    10  
    11  const (
    12  	typePrefix    = "syft"
    13  	cliTypePrefix = typePrefix + "-cli"
    14  
    15  	// Events from the syft library
    16  
    17  	// FileIndexingStarted is a partybus event that occurs when the directory resolver begins indexing a filesystem
    18  	FileIndexingStarted partybus.EventType = typePrefix + "-file-indexing-started-event"
    19  
    20  	// AttestationStarted is a partybus event that occurs when starting an SBOM attestation process
    21  	AttestationStarted partybus.EventType = typePrefix + "-attestation-started-event"
    22  
    23  	// CatalogerTaskStarted is a partybus event that occurs when starting a task within a cataloger
    24  	CatalogerTaskStarted partybus.EventType = typePrefix + "-cataloger-task-started"
    25  
    26  	// PullSourceStarted is a partybus event that occurs when starting to pull a source (does not overlap with stereoscope image pull events,
    27  	// this covers any additional sources such as snap and git repos).
    28  	PullSourceStarted partybus.EventType = typePrefix + "-pull-source-started"
    29  
    30  	// Events exclusively for the CLI
    31  
    32  	// CLIAppUpdateAvailable is a partybus event that occurs when an application update is available
    33  	CLIAppUpdateAvailable partybus.EventType = cliTypePrefix + "-app-update-available"
    34  
    35  	// CLIReport is a partybus event that occurs when an analysis result is ready for final presentation to stdout
    36  	CLIReport partybus.EventType = cliTypePrefix + "-report"
    37  
    38  	// CLINotification is a partybus event that occurs when auxiliary information is ready for presentation to stderr
    39  	CLINotification partybus.EventType = cliTypePrefix + "-notification"
    40  )