query

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(workspace string, apiKey string) (bool, error)

func Detect added in v0.0.7

func Detect(sb *types.Sbom, excludeSelf bool, workspace string, apiKey string) (*[]types.Image, int, error)

func ForBaseImageInDb added in v0.0.7

func ForBaseImageInDb(digest digest.Digest, workspace string, apiKey string) (*[]types.Image, error)

ForBaseImageInDb returns images with matching digest in :docker.image/blob-digest or :docker.image/diff-chain-id

func ForBaseImageInGraphQL added in v0.0.11

func ForBaseImageInGraphQL(cfg *v1.ConfigFile) (*types.BaseImagesByDiffIdsQuery, error)

func ForBaseImageInIndex added in v0.0.7

func ForBaseImageInIndex(digest digest.Digest, workspace string, apiKey string) (*[]types.Image, error)

func ForBaseImageWithoutCve added in v0.0.7

func ForBaseImageWithoutCve(cve string, name string, sb *types.Sbom, workspace string, apiKey string) (*[]types.Image, error)

func ForCvesAndBaseImagesAsync added in v0.0.14

func ForCvesAndBaseImagesAsync(sb *types.Sbom, includeCves bool, includeBaseImages bool, workspace string, apiKey string) *types.Sbom

func ForImageInGraphQL added in v0.0.17

func ForImageInGraphQL(sb *types.Sbom) (*types.ImageByDigestQuery, error)

func ForRepositoryInDb added in v0.0.7

func ForRepositoryInDb(repo string, workspace string, apiKey string) (*types.Repository, error)

func ForVulnerabilitiesInGraphQL added in v0.0.20

func ForVulnerabilitiesInGraphQL(sb *types.Sbom) (*types.VulnerabilitiesByPurls, error)

func QueryCves

func QueryCves(sb *types.Sbom, cve string, workspace string, apiKey string) (*[]types.Cve, error)

Types

type CveResult

type CveResult struct {
	Cves []types.Cve `edn:"cves"`
}

type ImageQueryResult added in v0.0.7

type ImageQueryResult struct {
	Query struct {
		Data [][]types.Image `edn:"data"`
	} `edn:"query"`
}

type QueryResult

type QueryResult struct {
	Query struct {
		Data []CveResult `edn:"data"`
	} `edn:"query"`
}

type RepositoryQueryResult added in v0.0.7

type RepositoryQueryResult struct {
	Query struct {
		Data [][]types.Repository `edn:"data"`
	} `edn:"query"`
}

Jump to

Keyboard shortcuts

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