This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Grype.
Summary
Base class for the Grype commands.
- Assembly
- Cake
.Grype .dll - Namespace
- Cake
.Grype - Base Types
-
- Tool
<TSettings>
- Tool
- Derived Types
graph BT
Type-->Base0["Tool<TSettings>"]
Type["GrypeTool<TSettings>"]
class Type type-node
Derived0["GrypeDbImporter"]-->Type
click Derived0 "/api/Cake.Grype.Db/GrypeDbImporter"
Derived1["GrypeDbChecker"]-->Type
click Derived1 "/api/Cake.Grype.Db/GrypeDbChecker"
Derived2["GrypeVersionReader"]-->Type
click Derived2 "/api/Cake.Grype/GrypeVersionReader"
Derived3["GrypeDbUpdater"]-->Type
click Derived3 "/api/Cake.Grype.Db/GrypeDbUpdater"
Derived4["GrypeScanner"]-->Type
click Derived4 "/api/Cake.Grype.Scan/GrypeScanner"
Derived5["GrypeDbDeleter"]-->Type
click Derived5 "/api/Cake.Grype.Db/GrypeDbDeleter"
Derived6["GrypeDbStatusReader"]-->Type
click Derived6 "/api/Cake.Grype.Db/GrypeDbStatusReader"
Syntax
public abstract class GrypeTool<TSettings> : Tool<TSettings> where TSettings : GrypeSettings
Type Parameters
| Name | Description |
|---|---|
| TSettings | The settings type. |
Constructors
| Name | Summary |
|---|---|
| GrypeTool |
Initializes a new instance of the GrypeTool<TSettings> class.
|
Methods
| Name | Value | Summary |
|---|---|---|
| AcceptsExitCode |
bool |
Determines whether a non-zero exit code is expected for this command and must not throw.
|
| Create |
Process |
Creates a
ProcessArgumentBuilder containing the command words followed by the global flags.
|
| Get |
IEnumerable |
Gets the possible names of the tool executable.
|
| GetToolName |
string |
Gets the name of the tool.
|
| MakeAbsolute |
FilePath |
Makes a path absolute against
ResolveWorkingDirectory(TSettings).
|
| ProcessExitCode |
void | |
| Resolve |
DirectoryPath |
Gets the absolute directory that relative paths are resolved against: the settings' working directory
if set, otherwise the Cake working directory.
|
| RunAndReadJson |
T |
Runs a command with
-q and -o json, and parses its standard output.
|
| TryParseJson |
bool |
Parses JSON without throwing.
static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
| IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
| NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
From StringExtensions
Requires the Cake.Issues addin
|
