install

package
v1.9.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PullAndValidateInstallerImage

func PullAndValidateInstallerImage(ctx context.Context, reg config.Registries, ref string) error

PullAndValidateInstallerImage pulls down the installer and validates that it can run.

func RunInstallerContainer

func RunInstallerContainer(disk, platform, ref string, cfg configcore.Config, cfgContainer configcore.Container, opts ...Option) error

RunInstallerContainer performs an installation via the installer container.

Types

type Option

type Option func(o *Options) error

Option is a functional option.

func OptionsFromUpgradeRequest

func OptionsFromUpgradeRequest(r runtime.Runtime, in *machineapi.UpgradeRequest) []Option

OptionsFromUpgradeRequest builds installer options from upgrade request.

func WithExtraKernelArgs

func WithExtraKernelArgs(s []string) Option

WithExtraKernelArgs sets the extra args.

func WithForce

func WithForce(b bool) Option

WithForce sets the force option.

func WithOptions

func WithOptions(opts Options) Option

WithOptions sets Options as a whole.

func WithPull

func WithPull(b bool) Option

WithPull sets the pull option.

func WithUpgrade

func WithUpgrade(b bool) Option

WithUpgrade sets the upgrade option.

func WithZero

func WithZero(b bool) Option

WithZero sets the zero option.

type Options

type Options struct {
	Pull            bool
	Force           bool
	Upgrade         bool
	Zero            bool
	ExtraKernelArgs []string
}

Options describes the install options.

func DefaultInstallOptions

func DefaultInstallOptions() Options

DefaultInstallOptions returns default options.

func (*Options) Apply

func (o *Options) Apply(opts ...Option) error

Apply list of Option.

Jump to

Keyboard shortcuts

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