Documentation ¶
Index ¶
- Variables
- func BuildDiskRun(cfg *v1.BuildConfig, imgType string, oemLabel string, recoveryLabel string, ...) (err error)
- func BuildISORun(cfg *v1.BuildConfig) (err error)
- func ChrootHook(config *v1.RunConfig, hook string, chrootDir string, ...) (err error)
- func CreateFinalImage(c *v1.BuildConfig, img string, parts ...string) error
- func CreatePart(c *v1.BuildConfig, img string, rootDir string, label string, fs string, ...) error
- func Hook(config *v1.RunConfig, hook string) error
- func InstallImagesSetup(config *v1.RunConfig) error
- func InstallRun(config *v1.RunConfig) (err error)
- func InstallSetup(config *v1.RunConfig) error
- func Raw2Azure(source string, fs v1.FS, logger v1.Logger, keepOldImage bool) error
- func Raw2Gce(source string, fs v1.FS, logger v1.Logger, keepOldImage bool) error
- func ResetImagesSetup(config *v1.RunConfig) error
- func ResetRun(config *v1.RunConfig) (err error)
- func ResetSetup(config *v1.RunConfig) error
- func SetPartitionsFromScratch(config *v1.RunConfig)
- func SetupLuet(config *v1.RunConfig)
- type UpgradeAction
Constants ¶
This section is empty.
Variables ¶
var GB = 1024 * MB
var MB = int64(1024 * 1024)
Functions ¶
func BuildDiskRun ¶ added in v0.0.15
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
Hook is RunStage wrapper that only adds logic to ignore errors in case v1.RunConfig.Strict is set to false
func InstallImagesSetup ¶
InstallImagesSetup defines the parameters of active, passive and recovery images of an installation
func InstallRun ¶
InstallRun will install the system from a given configuration
func InstallSetup ¶
InstallSetup will set installation parameters according to the given configuration flags
func Raw2Azure ¶ added in v0.0.15
Raw2Azure transforms an image from RAW format into Azure format THIS REMOVES THE SOURCE IMAGE BY DEFAULT
func Raw2Gce ¶ added in v0.0.15
Raw2Gce transforms an image from RAW format into GCE format THIS REMOVES THE SOURCE IMAGE BY DEFAULT
func ResetImagesSetup ¶
ResetImagesSetup defines the parameters of active and passive images as they are used during the reset.
func ResetSetup ¶
ResetSetup will set installation parameters according to the given configuration flags
func SetPartitionsFromScratch ¶
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.
Types ¶
type UpgradeAction ¶
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)