parsers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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 ParseAttestationStartedEvent

func ParseAttestationStartedEvent(e partybus.Event) (io.Reader, progress.Progressable, *monitor.GenericTask, error)

func ParseCLINotification

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

func ParseCLIReport

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

func ParseCatalogerTaskStarted

func ParseCatalogerTaskStarted(e partybus.Event) (progress.StagedProgressable, *monitor.GenericTask, error)

func ParseFileIndexingStarted

func ParseFileIndexingStarted(e partybus.Event) (string, progress.StagedProgressable, error)

Types

type ErrBadPayload

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

func (*ErrBadPayload) Error

func (e *ErrBadPayload) Error() string

type UpdateCheck

type UpdateCheck struct {
	New     string
	Current string
}

func ParseCLIAppUpdateAvailable

func ParseCLIAppUpdateAvailable(e partybus.Event) (*UpdateCheck, error)

Jump to

Keyboard shortcuts

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