preflight

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Constants here from Hardware Requirements in the documentaiton
	// https://docs.harvesterhci.io/v1.3/install/requirements/#hardware-requirements
	MinCPUTest         = 8
	MinCPUProd         = 16
	MinMemoryTest      = 32
	MinMemoryProd      = 64
	MinNetworkGbpsTest = 1
	MinNetworkGbpsProd = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUCheck

type CPUCheck struct{}

func (CPUCheck) Run

func (c CPUCheck) Run() (msg string, err error)

type Check

type Check interface {
	Run() (string, error)
}

The Run() method of a preflight.Check returns a string. If the string is empty, it means the check passed. Otherwise, the string contains some text explaining why the check failed. The error value will be set if the check itself failed to run at all for some reason.

type KVMHostCheck

type KVMHostCheck struct{}

func (KVMHostCheck) Run

func (c KVMHostCheck) Run() (msg string, err error)

type MemoryCheck

type MemoryCheck struct{}

func (MemoryCheck) Run

func (c MemoryCheck) Run() (msg string, err error)

type NetworkSpeedCheck

type NetworkSpeedCheck struct {
	Dev string
}

func (NetworkSpeedCheck) Run

func (c NetworkSpeedCheck) Run() (msg string, err error)

type VirtCheck

type VirtCheck struct{}

func (VirtCheck) Run

func (c VirtCheck) Run() (msg string, err error)

Jump to

Keyboard shortcuts

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