GrypeDbStatusReader Class

Summary

Runs grype db status.
graph BT Type-->Base0["GrypeTool<GrypeDbStatusSettings>"] Base0-->Base1["Tool<GrypeDbStatusSettings>"] Type["GrypeDbStatusReader"] class Type type-node

Syntax

public sealed class GrypeDbStatusReader : GrypeTool<GrypeDbStatusSettings>

Constructors

Methods

Name Value Summary
AcceptsExitCode(int, string) bool
Determines whether a non-zero exit code is expected for this command and must not throw.
Read(GrypeDbStatusSettings) GrypeDbStatus
Reads the database status. A missing or invalid database is returned with Cake.Grype.Db.GrypeDbStatus.Valid false instead of throwing.

Extension Methods

Name Value Summary
Dump<GrypeDbStatusReader>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<GrypeDbStatusReader>(GrypeDbStatusReader[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<GrypeDbStatusReader>(string) void
Requires the Cake.Issues addin
NotNull<GrypeDbStatusReader>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<GrypeDbStatusReader>(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<GrypeDbStatusReader>(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