GrypeReport Class

Summary

A Grype JSON report (-o json).
Assembly
Cake.Grype.dll
Namespace
Cake.Grype.Json
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["GrypeReport"] class Type type-node

Syntax

public sealed class GrypeReport

Constructors

Name Summary
GrypeReport()

Methods

Name Value Summary
AtOrAbove(GrypeSeverity) IEnumerable<GrypeMatch>
Gets the matches with a severity at or above severity. Unknown (unassessed) matches are only included for a threshold of Unknown.
CountBySeverity() IReadOnlyDictionary<GrypeSeverity, int>
Counts the matches per severity. Every severity is present, with zero if nothing matched it.
get_Descriptor() GrypeDescriptor
get_Distro() GrypeDistro
get_IgnoredMatches() IReadOnlyList<GrypeIgnoredMatch>
get_Matches() IReadOnlyList<GrypeMatch>
get_Source() GrypeReportSource
set_Descriptor()
set_Distro()
set_IgnoredMatches()
set_Matches()
set_Source()

Extension Methods

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