Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckConfig ¶
type CheckConfig struct {
Name string `yaml:"name"`
Type CheckType `yaml:"type"`
Severity Severity `yaml:"severity"`
Options map[string]string `yaml:"options"`
Message string `yaml:"message"`
Fix string `yaml:"fix"`
}
this is the type for each of the checks
type CheckType ¶
type CheckType string
these are the enums for the checks that the system can handle
const ( TypeEnvExists CheckType = "env_exists" TypeCommandExists CheckType = "command_exists" TypeFileExists CheckType = "file_exists" TypeDirectoryExists CheckType = "directory_exists" TypeHttpReachable CheckType = "http_reachable" TypeTcpReachable CheckType = "tcp_reachable" TypePortFree CheckType = "port_free" )
type PrebootConfig ¶
type PrebootConfig struct {
Version int `yaml:"version"`
Defaults map[string]interface{} `yaml:"defaults"`
Checks []CheckConfig `yaml:"checks"`
}
this is the type for the global preboot config in its yaml file
Click to show internal directories.
Click to hide internal directories.