mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 12:45:19 +00:00
autogenerated docs
This commit is contained in:
parent
1b3666276e
commit
fdaf68b8b5
7 changed files with 472 additions and 76 deletions
49
modules/suboptions/tempSensorOptions.nix
Normal file
49
modules/suboptions/tempSensorOptions.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
lib,
|
||||
}:
|
||||
|
||||
let
|
||||
tempReadingOptions = {
|
||||
options = {
|
||||
label = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
description = "Friendly label of the reading.";
|
||||
};
|
||||
enabled = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Whether this reading is enabled.";
|
||||
};
|
||||
warningTemp = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.float;
|
||||
default = null;
|
||||
description = "Warning temperature threshold.";
|
||||
};
|
||||
criticalTemp = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.float;
|
||||
default = null;
|
||||
description = "Critical temperature threshold.";
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
options = {
|
||||
name = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
description = "Friendly name of the sensor.";
|
||||
};
|
||||
enabled = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Whether sensor is enabled.";
|
||||
};
|
||||
readings = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.submodule tempReadingOptions);
|
||||
default = { };
|
||||
description = "Overrides for specific readings of the sensor, by label.";
|
||||
};
|
||||
};
|
||||
}
|
||||
27
modules/suboptions/vulnixWhitelistRule.nix
Normal file
27
modules/suboptions/vulnixWhitelistRule.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
lib,
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
cve = lib.mkOption {
|
||||
type = lib.types.nullOr (lib.types.listOf lib.types.str);
|
||||
default = null;
|
||||
description = ''
|
||||
List of CVE identifiers to match. The whitelist rule is valid as long as the detected CVEs are a subset of the CVEs listed here.
|
||||
If additional CVEs are detected, this whitelist rule is not effective anymore. If null, all CVEs are matched.'';
|
||||
};
|
||||
until = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
Date in the form "YYYY-MM-DD" which confines this rule's lifetime. Null means forever.
|
||||
On the specified date and later, this whitelist rule is not effective anymore.'';
|
||||
};
|
||||
issueUrl = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
description = "URL or list of URLs that point to any issue tracker. Informational only.";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue