parsers

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 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 ParseAppUpdateAvailable

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

func ParseExit added in v0.35.0

func ParseExit(e partybus.Event) (func() error, error)

func ParseFileDigestsCatalogingStarted added in v0.15.0

func ParseFileDigestsCatalogingStarted(e partybus.Event) (progress.StagedProgressable, error)

func ParseFileIndexingStarted added in v0.19.0

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

func ParseFileMetadataCatalogingStarted added in v0.15.0

func ParseFileMetadataCatalogingStarted(e partybus.Event) (progress.StagedProgressable, error)

func ParseImportStarted added in v0.10.0

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

func ParsePackageCatalogerStarted added in v0.15.0

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

func ParseSecretsCatalogingStarted added in v0.15.0

func ParseSecretsCatalogingStarted(e partybus.Event) (*file.SecretsMonitor, error)

func ParseUploadAttestation added in v0.46.0

func ParseUploadAttestation(e partybus.Event) (progress.StagedProgressable, 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