preflight

package
v2.34.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	None = labels{}
)

Functions

func CleanUpHost

func CleanUpHost() error

func RegisterSettings

func RegisterSettings(config crcConfig.Schema)

func SetupHost

func SetupHost(config crcConfig.Storage, checkOnly bool) error

SetupHost performs the prerequisite checks and setups the host to run the cluster

func StartPreflightChecks

func StartPreflightChecks(config crcConfig.Storage) error

StartPreflightChecks performs the preflight checks before starting the cluster

Types

type Check

type Check struct {
	// contains filtered or unexported fields
}

type CheckFunc

type CheckFunc func() error

type CleanUpFunc

type CleanUpFunc func() error

type FixFunc

type FixFunc func() error

type Flags

type Flags uint32
const (
	// Indicates a PreflightCheck should only be run as part of "crc setup"
	SetupOnly Flags = 1 << iota
	NoFix
	CleanUpOnly
	StartUpOnly
)

type LabelName

type LabelName uint32
const (
	Os LabelName = iota
	NetworkMode
)
const (
	Distro LabelName = iota + lastLabelName
	DNS
	SystemdUser
)

type LabelValue

type LabelValue uint32
const (
	// os
	Darwin LabelValue = iota
	Linux
	Windows

	// network mode
	User
	System
)
const (
	// distro
	UbuntuLike LabelValue = iota + lastLabelValue
	Other

	// dns
	Dnsmasq
	SystemdResolved

	// systemd user session
	Supported
	Unsupported
)

Jump to

Keyboard shortcuts

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