Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Check ¶
type Check interface { // GetName returns the name of the precheck step; this is shown to the user. GetName() string // Run executes the precheck step. Run() (*Report, error) }
Check represents a single precheck step.
type DisksCheck ¶
type DisksCheck struct {
// contains filtered or unexported fields
}
DisksCheck performs disk configuration checking:
- finding the root filesystem partition
- checking if the device is MBR
- checking whether the root mount is physically located on a single disk. The check fails, for example, when the root mount is on an LVM logical volume that spans multiple disks.
- check for GRUB
- warning for any mount points from partitions from other devices
func (*DisksCheck) GetName ¶
func (c *DisksCheck) GetName() string
GetName returns the name of the precheck step; this is shown to the user.
func (*DisksCheck) Run ¶
func (c *DisksCheck) Run() (r *Report, err error)
Run executes the precheck step.
type OSVersionCheck ¶
OSVersionCheck is a precheck.Check that verifies the disk's operating system is importable.
func (*OSVersionCheck) GetName ¶
func (c *OSVersionCheck) GetName() string
GetName returns the name of the precheck step; this is shown to the user.
func (*OSVersionCheck) Run ¶
func (c *OSVersionCheck) Run() (*Report, error)
Run executes the precheck step.
type PowershellCheck ¶
type PowershellCheck struct{}
PowershellCheck is a precheck.Check that verifies Powershell is installed, and that its version is sufficient to perform translation.
func (*PowershellCheck) GetName ¶
func (c *PowershellCheck) GetName() string
GetName returns the name of the precheck step; this is shown to the user.
func (*PowershellCheck) Run ¶
func (c *PowershellCheck) Run() (*Report, error)
Run executes the precheck step.
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
Report contains the results of running one or more precheck steps.
type Result ¶
type Result int
Result indicates the result of the check.
const ( // Passed means the check passed. Passed Result = iota // Failed means the check ran and found an error such that // the machine is not importable. Failed // Skipped means the check didn't run. Skipped // Unknown means the test couldn't run, and that the user // should run a manual verification. Unknown )
type SHA2DriverSigningCheck ¶
SHA2DriverSigningCheck is a precheck.Check that confirms a Windows 2008 system has KB4474419 installed.
func (*SHA2DriverSigningCheck) GetName ¶
func (s *SHA2DriverSigningCheck) GetName() string
GetName returns the name of the precheck step; this is shown to the user.
func (*SHA2DriverSigningCheck) Run ¶
func (s *SHA2DriverSigningCheck) Run() (*Report, error)
Run executes the precheck step.