ingestor

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssembler

func GetAssembler(
	ctx context.Context,
	childLogger *zap.SugaredLogger,
	graphqlEndpoint string,
	transport http.RoundTripper,
) func([]assembler.IngestPredicates) error

func GetCollectSubEmit

func GetCollectSubEmit(ctx context.Context, csubClient csub_client.Client) func([]*parser_common.IdentifierStrings) error

func GetProcessor

func GetProcessor(ctx context.Context) func(*processor.Document) (processor.DocumentTree, error)

func Ingest

func Ingest(
	ctx context.Context,
	d *processor.Document,
	graphqlEndpoint string,
	transport http.RoundTripper,
	csubClient csub_client.Client,
) error

Synchronously ingest document using GraphQL endpoint

func MergedIngest

func MergedIngest(
	ctx context.Context,
	docs []*processor.Document,
	graphqlEndpoint string,
	transport http.RoundTripper,
	csubClient csub_client.Client,
) error

Types

This section is empty.

Directories

Path Synopsis
key
ingest_predicates
ingest_predicates is a parser that is generally unsafe due to the fact that it does not validate the facts that it is emiting without a backing attestations.
ingest_predicates is a parser that is generally unsafe due to the fact that it does not validate the facts that it is emiting without a backing attestations.
vuln
Package vuln attestation parser parses the attestation defined by by the certifier using the predicate type "https://in-toto.io/attestation/vuln/v0.1" Three different types of ingest predicates are created.
Package vuln attestation parser parses the attestation defined by by the certifier using the predicate type "https://in-toto.io/attestation/vuln/v0.1" Three different types of ingest predicates are created.

Jump to

Keyboard shortcuts

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