GrypeDbImporter Class

Summary

Runs grype db import: imports a vulnerability database archive from a file or URL.
graph BT Type-->Base0["GrypeTool<GrypeDbImportSettings>"] Base0-->Base1["Tool<GrypeDbImportSettings>"] Type["GrypeDbImporter"] class Type type-node

Syntax

public sealed class GrypeDbImporter : GrypeTool<GrypeDbImportSettings>

Constructors

Methods

Name Value Summary
Import(FilePath, GrypeDbImportSettings) void
Imports a database archive from disk.
Import(Uri, GrypeDbImportSettings) void
Imports a database archive from a URL. A checksum=sha256:… query parameter is verified by Grype.

Extension Methods

Name Value Summary
Dump<GrypeDbImporter>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<GrypeDbImporter>(GrypeDbImporter[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<GrypeDbImporter>(string) void
Requires the Cake.Issues addin
NotNull<GrypeDbImporter>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<GrypeDbImporter>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<GrypeDbImporter>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin