install

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunInstallerContainer added in v0.5.0

func RunInstallerContainer(disk, platform, ref string, cfg config.Provider, opts ...Option) error

RunInstallerContainer performs an installation via the installer container.

Types

type Option added in v0.5.0

type Option func(o *Options) error

Option is a functional option.

func OptionsFromUpgradeRequest added in v0.8.0

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

OptionsFromUpgradeRequest builds installer options from upgrade request.

func WithExtraKernelArgs added in v0.5.0

func WithExtraKernelArgs(s []string) Option

WithExtraKernelArgs sets the extra args.

func WithForce added in v0.5.0

func WithForce(b bool) Option

WithForce sets the force option.

func WithOptions added in v0.8.0

func WithOptions(opts Options) Option

WithOptions sets Options as a whole.

func WithPull added in v0.5.0

func WithPull(b bool) Option

WithPull sets the pull option.

func WithUpgrade added in v0.5.0

func WithUpgrade(b bool) Option

WithUpgrade sets the upgrade option.

func WithZero added in v0.5.0

func WithZero(b bool) Option

WithZero sets the zero option.

type Options added in v0.5.0

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

Options describes the install options.

func DefaultInstallOptions added in v0.5.0

func DefaultInstallOptions() Options

DefaultInstallOptions returns default options.

func (*Options) Apply added in v0.8.0

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