GrypeOutputFormat Class

Summary

A Grype report format (-o).
Assembly
Cake.Grype.dll
Namespace
Cake.Grype.Scan
Base Types
  • Enum
graph BT Type-->Base0["Enum"] Type["GrypeOutputFormat"] class Type type-node

Syntax

public sealed class GrypeOutputFormat : Enum

Fields

Name Constant Value Summary
CycloneDx 2
CycloneDX XML with vulnerabilities (cyclonedx).
static
CycloneDxJson 3
CycloneDX JSON with vulnerabilities (cyclonedx-json).
static
Json 1
Grype's native JSON (json); readable with GrypeReadJson.
static
Sarif 4
SARIF (sarif), for code-scanning dashboards.
static
Table 0
The human-readable table (table), Grype's default.
static
Template 5
A Go template (template); requires Template.
static
value__

Extension Methods

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