action

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildISORun added in v0.0.14

func BuildISORun(cfg *v1.BuildConfig) (err error)

BuildISORun will install the system from a given configuration

func ChrootHook added in v0.0.14

func ChrootHook(config *v1.RunConfig, hook string, chrootDir string, bindMounts map[string]string) (err error)

ChrootHook executes Hook inside a chroot environment

func Hook added in v0.0.14

func Hook(config *v1.RunConfig, hook string) error

Hook is RunStage wrapper that only adds logic to ignore errors in case v1.RunConfig.Strict is set to false

func InstallImagesSetup

func InstallImagesSetup(config *v1.RunConfig) error

InstallImagesSetup defines the parameters of active, passive and recovery images of an installation

func InstallRun

func InstallRun(config *v1.RunConfig) (err error)

InstallRun will install the system from a given configuration

func InstallSetup

func InstallSetup(config *v1.RunConfig) error

InstallSetup will set installation parameters according to the given configuration flags

func ResetImagesSetup

func ResetImagesSetup(config *v1.RunConfig) error

ResetImagesSetup defines the parameters of active and passive images as they are used during the reset.

func ResetRun

func ResetRun(config *v1.RunConfig) (err error)

ResetRun will reset the cos system to by following several steps

func ResetSetup

func ResetSetup(config *v1.RunConfig) error

ResetSetup will set installation parameters according to the given configuration flags

func SetPartitionsFromScratch

func SetPartitionsFromScratch(config *v1.RunConfig)

SetPartitionsFromScratch initiates all defaults partitions in order is they would be on a fresh installation. It does not run any kind of block device analysis it only populates partitions from defaults or configurations.

func SetupLuet

func SetupLuet(config *v1.RunConfig)

SetupLuet sets the Luet object with the appropriate plugins

Types

type UpgradeAction

type UpgradeAction struct {
	Config *v1.RunConfig
}

UpgradeAction represents the struct that will run the upgrade from start to finish

func NewUpgradeAction

func NewUpgradeAction(config *v1.RunConfig) *UpgradeAction

func (*UpgradeAction) Debug

func (u *UpgradeAction) Debug(s string, args ...interface{})

func (*UpgradeAction) Error

func (u *UpgradeAction) Error(s string, args ...interface{})

func (*UpgradeAction) Info

func (u *UpgradeAction) Info(s string, args ...interface{})

func (*UpgradeAction) Run

func (u *UpgradeAction) Run() (err error)

Jump to

Keyboard shortcuts

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