Documentation ¶
Index ¶
- Variables
- func FindArtifactWithDigest(ctx context.Context, gqlClient graphql.Client, digest string) (gql.AllArtifactTree, error)
- func FindPackageWithPurl(ctx context.Context, gqlClient graphql.Client, purl string) (gql.AllPkgTreeNamespacesPackageNamespaceNamesPackageNameVersionsPackageVersion, ...)
- func GetVersionsOfAllPackageTree(trie gql.AllPkgTree) ...
- func GetVersionsOfPackagesResponse(packages []gql.PackagesPackagesPackage) ...
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 ¶
func FindPackageWithPurl(ctx context.Context, gqlClient graphql.Client, purl string) (gql.AllPkgTreeNamespacesPackageNamespaceNamesPackageNameVersionsPackageVersion, error)
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 ¶
func GetVersionsOfAllPackageTree(trie gql.AllPkgTree) []gql.AllPkgTreeNamespacesPackageNamespaceNamesPackageNameVersionsPackageVersion
Returns all of the version nodes of the AllPkgTree fragment input
func GetVersionsOfPackagesResponse ¶
func GetVersionsOfPackagesResponse(packages []gql.PackagesPackagesPackage) []gql.AllPkgTreeNamespacesPackageNamespaceNamesPackageNameVersionsPackageVersion
Returns all of the version nodes of the Packages query result
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.