parsers

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

Package parsers provides parser helpers to extract payloads for each event type that the syft library publishes onto the event bus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAppUpdateAvailable

func ParseAppUpdateAvailable(e partybus.Event) (string, error)

func ParseCatalogerFinished

func ParseCatalogerFinished(e partybus.Event) (presenter.Presenter, error)

func ParseCatalogerStarted

func ParseCatalogerStarted(e partybus.Event) (*cataloger.Monitor, error)

Types

type ErrBadPayload

type ErrBadPayload struct {
	Type  partybus.EventType
	Field string
	Value interface{}
}

func (*ErrBadPayload) Error

func (e *ErrBadPayload) Error() string

Jump to

Keyboard shortcuts

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