action

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GB = 1024 * MB
View Source
var MB = int64(1024 * 1024)

Functions

func BuildDiskRun added in v0.0.15

func BuildDiskRun(cfg *v1.BuildConfig, imgType string, oemLabel string, recoveryLabel string, output string) (err error)

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 CreateFinalImage added in v0.0.15

func CreateFinalImage(c *v1.BuildConfig, img string, parts ...string) error

CreateFinalImage creates the final image by truncating the image with the proper sizes, concatenating the contents of the given parts and creating the partition table on the image

func CreatePart added in v0.0.15

func CreatePart(c *v1.BuildConfig, img string, rootDir string, label string, fs string, size int64) error

CreatePart creates, truncates, and formats an img.part file. if rootDir is passed it will use that as the rootdir for the part creation, thus copying the contents into the newly created part file

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 Raw2Azure added in v0.0.15

func Raw2Azure(source string, fs v1.FS, logger v1.Logger, keepOldImage bool) error

Raw2Azure transforms an image from RAW format into Azure format THIS REMOVES THE SOURCE IMAGE BY DEFAULT

func Raw2Gce added in v0.0.15

func Raw2Gce(source string, fs v1.FS, logger v1.Logger, keepOldImage bool) error

Raw2Gce transforms an image from RAW format into GCE format THIS REMOVES THE SOURCE IMAGE BY DEFAULT

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