helper

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertArtInputSpecToArtSpec

func ConvertArtInputSpecToArtSpec(artInput *model.ArtifactInputSpec) *model.ArtifactSpec

TODO: maybe use generics for ArtifactInputSpec and ArtifactSpec?

func ConvertBuilderInputSpecToBuilderSpec

func ConvertBuilderInputSpecToBuilderSpec(input *model.BuilderInputSpec) *model.BuilderSpec

func ConvertCveInputSpecToCveSpec

func ConvertCveInputSpecToCveSpec(cveInput *model.CVEInputSpec) *model.CVESpec

TODO: maybe use generics for CVEInputSpec and CVESpec?

func ConvertGhsaInputSpecToGhsaSpec

func ConvertGhsaInputSpecToGhsaSpec(ghsaInput *model.GHSAInputSpec) *model.GHSASpec

TODO: maybe use generics for GHSAInputSpec and GHSASpec?

func ConvertOsvInputSpecToOsvSpec

func ConvertOsvInputSpecToOsvSpec(osvInput *model.OSVInputSpec) *model.OSVSpec

TODO: maybe use generics for OSVInputSpec and OSVSpec?

func ConvertPkgInputSpecToPkgSpec

func ConvertPkgInputSpecToPkgSpec(pkgInput *model.PkgInputSpec) *model.PkgSpec

TODO: maybe use generics for PkgInputSpec and PkgSpec?

func ConvertSrcInputSpecToSrcSpec

func ConvertSrcInputSpecToSrcSpec(srcInput *model.SourceInputSpec) *model.SourceSpec

TODO: maybe use generics for SourceInputSpec and SourceSpec?

func ValidateCveOrGhsaIngestionInput

func ValidateCveOrGhsaIngestionInput(cveOrGhsa model.CveOrGhsaInput, path string) error

func ValidateCveOrGhsaQueryFilter

func ValidateCveOrGhsaQueryFilter(cveOrGhsa *model.CveOrGhsaSpec) error

func ValidatePackageOrArtifactInput

func ValidatePackageOrArtifactInput(item *model.PackageOrArtifactInput, path string) error

func ValidatePackageOrArtifactQueryFilter

func ValidatePackageOrArtifactQueryFilter(subject *model.PackageOrArtifactSpec) error

func ValidatePackageOrSourceInput

func ValidatePackageOrSourceInput(item *model.PackageOrSourceInput, path string) error

func ValidatePackageOrSourceQueryFilter

func ValidatePackageOrSourceQueryFilter(subject *model.PackageOrSourceSpec) error

func ValidatePackageSourceOrArtifactInput

func ValidatePackageSourceOrArtifactInput(item *model.PackageSourceOrArtifactInput, path string) error

func ValidatePackageSourceOrArtifactQueryFilter

func ValidatePackageSourceOrArtifactQueryFilter(subject *model.PackageSourceOrArtifactSpec) error

func ValidateVulnerabilityIngestionInput

func ValidateVulnerabilityIngestionInput(vulnerability model.VulnerabilityInput, path string, noVulnAllowed bool) error

func ValidateVulnerabilityQueryFilter

func ValidateVulnerabilityQueryFilter(vulnerability *model.VulnerabilitySpec, noVulnAllowed bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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