preflight

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 34 Imported by: 1

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 added in v1.14.0

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

type CheckFunc added in v1.14.0

type CheckFunc func() error

type CleanUpFunc added in v1.14.0

type CleanUpFunc func() error

type FixFunc added in v1.14.0

type FixFunc func() error

type Flags added in v1.14.0

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

type LabelName added in v1.28.0

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

type LabelValue added in v1.28.0

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

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

	// dns
	Dnsmasq
	SystemdResolved
)

Jump to

Keyboard shortcuts

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