templates

package
v0.0.0-...-03813b7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scripts embed.FS

Functions

func GetBootstrapIgnitionTemplateData

func GetBootstrapIgnitionTemplateData(isLiveISO, enableInteractiveFlow bool, ocpReleaseImage types.ReleaseImage, installIgnitionConfig, coreosImagePath, rendezvousHostEnvPlaceholder string) interface{}

func GetDeployIgnitionTemplateData

func GetDeployIgnitionTemplateData(targetDevice, postScript string, sparseClone, dryRun bool) interface{}

func GetFilePathByTemplate

func GetFilePathByTemplate(templateFile, location string) string

func GetGuestfishScriptTemplateData

func GetGuestfishScriptTemplateData(isCompact bool, diskSize, baseIsoSize, recoveryIsoSize, dataIsoSize int64,
	baseImageFile, applianceImageFile, recoveryIsoFile, dataIsoFile, userCfgFile, grubCfgFile, tempDir string) interface{}

func GetImageSetTemplateData

func GetImageSetTemplateData(applianceConfig *config.ApplianceConfig, blockedImages, additionalImages, operators string) interface{}

func GetInstallIgnitionTemplateData

func GetInstallIgnitionTemplateData(isLiveISO, enableInteractiveFlow bool, corePassHash string) interface{}

func GetPinnedImageSetTemplateData

func GetPinnedImageSetTemplateData(images, role string) interface{}

func GetRegistryEnv

func GetRegistryEnv(registryImage, registryData, registryUpgrade string) string

func GetUpgradeISOEnv

func GetUpgradeISOEnv(releaseImage, releaseVersion string) string

func GetUserCfgTemplateData

func GetUserCfgTemplateData(grubMenuEntryName string, enableFips bool) interface{}

func RenderTemplateFile

func RenderTemplateFile(fileName string, templateData interface{}, outputDir string) error

Types

type AgentPartitions

type AgentPartitions struct {
	RecoveryPartition, DataPartition, RootPartition *Partition
}

type Partition

type Partition struct {
	StartSector, EndSector, Size int64
}

type Partitions

type Partitions interface {
	GetAgentPartitions(diskSize, baseIsoSize, recoveryIsoSize, dataIsoSize int64, isCompact bool) *AgentPartitions
	GetCoreOSPartitions(coreosImagePath string) ([]Partition, error)
	GetBootPartitionsSize(baseImageFile string) int64
}

func NewPartitions

func NewPartitions() Partitions

Jump to

Keyboard shortcuts

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