parsers

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 6 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 ParseAttestationStartedEvent added in v0.66.0

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

func ParseCLINotification added in v0.85.0

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

func ParseCLIReport added in v0.85.0

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

func ParseCatalogerTaskStarted added in v0.78.0

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

func ParseFileIndexingStarted added in v0.19.0

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 added in v0.89.0

type UpdateCheck struct {
	New     string
	Current string
}

func ParseCLIAppUpdateAvailable added in v0.85.0

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