Documentation ¶
Overview ¶
Package eventhandler will provide all functions to handle the events
Index ¶
- type Handler
- func (h *Handler) AnalyzeStartedHandler(line *frame.Line, value interface{}) error
- func (h *Handler) CatalogerStartedHandler(line *frame.Line, m interface{}) error
- func (h *Handler) CollectLayersHandler(line *frame.Line, value interface{}) error
- func (h *Handler) CopyImageHandler(line *frame.Line, value interface{}) error
- func (h *Handler) FetchImageHandler(line *frame.Line, value interface{}) error
- func (h *Handler) PullDockerImageHandler(line *frame.Line, value interface{}) error
- func (h *Handler) ReadImageHandler(line *frame.Line, value interface{}) error
- func (h *Handler) StartScanHandler(line *frame.Line, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is the handler for all events.
func NewHandler ¶
NewHandler will initialize a handler.
func (*Handler) AnalyzeStartedHandler ¶
AnalyzeStartedHandler will generate a spinner during analyzing images.
func (*Handler) CatalogerStartedHandler ¶
CatalogerStartedHandler periodically writes catalog statistics to a single line.
func (*Handler) CollectLayersHandler ¶ added in v1.7.2
CollectLayersHandler generates a spinner while reading the layers of an image
func (*Handler) CopyImageHandler ¶
CopyImageHandler will render a spinner and record the process for copying image.
func (*Handler) FetchImageHandler ¶
FetchImageHandler periodically writes an image save and write-to-disk process in the form of a progress bar.
func (*Handler) PullDockerImageHandler ¶
PullDockerImageHandler periodically writes a formatted line widget representing a docker image pull event. This function is modified based on 'github.com/anchore/syft/ui/event_handlers.PullDockerImageHandler'.
func (*Handler) ReadImageHandler ¶
ReadImageHandler periodically writes an image read/parse/build-tree status in the form of a progress bar.