templates

package
v0.0.0-...-09bfc21 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scripts embed.FS

Functions

func GetBootstrapIgnitionTemplateData

func GetBootstrapIgnitionTemplateData(ocpReleaseImage types.ReleaseImage, registryDataPath, installIgnitionConfig, coreosImagePath 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(diskSize, baseIsoSize, recoveryIsoSize, dataIsoSize int64, baseImageFile, applianceImageFile, recoveryIsoFile, dataIsoFile, cfgFile string) interface{}

func GetImageSetTemplateData

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

func GetInstallIgnitionTemplateData

func GetInstallIgnitionTemplateData(registryDataPath, corePassHash string) interface{}

func GetRegistryEnv

func GetRegistryEnv(registryData string) string

func GetUserCfgTemplateData

func GetUserCfgTemplateData(grubMenuEntryName string, grubDefault int) 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) *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