helper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ConvertLicenseInputSpecToLicenseSpec added in v0.2.0

func ConvertLicenseInputSpecToLicenseSpec(licenseInput *model.LicenseInputSpec) *model.LicenseSpec

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 ValidateLicenseInput added in v0.2.0

func ValidateLicenseInput(license *model.LicenseInputSpec) error

func ValidateNoVul added in v0.2.0

func ValidateNoVul(vulnerability model.VulnerabilityInputSpec) 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 ValidateVexInput added in v0.2.0

func ValidateVexInput(vexStatement model.VexStatementInputSpec) error

ValidateVexInput

For [status] “not_affected”, a VEX statement SHOULD provide a [justification]. If [justification] is not provided then [impact_statement] MUST be provided. For [status] “affected”, MUST include one [action_statement]

func ValidateVulnerabilityIDInputSpec added in v0.2.0

func ValidateVulnerabilityIDInputSpec(vulnerability model.VulnerabilityInputSpec) error

func ValidateVulnerabilitySpec added in v0.2.0

func ValidateVulnerabilitySpec(vulnerability model.VulnerabilitySpec) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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