model

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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

type Severity

type Severity string

these are the levels of severity the system can handle

const (
	SeverityInfo    Severity = "info"
	SeverityWarning Severity = "warning"
	SeverityBlocker Severity = "blocker"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL