parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDocumentTree

func ParseDocumentTree(ctx context.Context, docTree processor.DocumentTree) ([]assembler.Graph, error)

ParseDocumentTree takes the DocumentTree and create graph inputs (nodes and edges) per document node.

func RegisterDocumentParser

func RegisterDocumentParser(p func() common.DocumentParser, d processor.DocumentType) error

func Subscribe

func Subscribe(ctx context.Context, transportFunc func([]assembler.Graph) error) error

Subscribe is used by NATS JetStream to stream the documents received from the processor and parse them them via ParseDocumentTree

Types

This section is empty.

Directories

Path Synopsis
The Vulnerability attestation parser parses the attestation defined by by the certifier using the predicate type"https://in-toto.io/attestation/vuln/v0.1" Based on the information contained, a package node is generated with just purl and digest (if found).
The Vulnerability attestation parser parses the attestation defined by by the certifier using the predicate type"https://in-toto.io/attestation/vuln/v0.1" Based on the information contained, a package node is generated with just purl and digest (if found).

Jump to

Keyboard shortcuts

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