helpers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Err500 error = errors.New("Internal Error. The error message should have been logged")

Err500 is used to surface generic internal errors, such as an unexpected response from Graphql server.

View Source
var Err502 error = errors.New("Error querying the graphql server. The error message should have been logged")

Err502 is used to surface errors from the graphql server.

Functions

func FindArtifactWithDigest

func FindArtifactWithDigest(ctx context.Context, gqlClient graphql.Client,
	digest string) (gql.AllArtifactTree, error)

Queries for an artifact by digest and returns its id. The digest must uniquely identify an artifact, otherwise an error is returned.

func FindPackageWithPurl

Returns the version node of the package that matches the input purl. The purl must uniquely identify a package, otherwise an error is returned.

func GetVersionsOfAllPackageTree

Returns all of the version nodes of the AllPkgTree fragment input

func GetVersionsOfPackagesResponse

Returns all of the version nodes of the Packages query result

Types

This section is empty.

Jump to

Keyboard shortcuts

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