renderer

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegularFileMode    os.FileMode = 0644 // Regular files
	ExecutableFileMode os.FileMode = 0755 // Executable files and directories
)

Variables

This section is empty.

Functions

func RenderQuadlets

func RenderQuadlets(config *RendererConfig, log logrus.FieldLogger) error

RenderQuadlets orchestrates all installation operations

Types

type ActionType

type ActionType int
const (
	ActionCopyFile ActionType = iota
	ActionCopyDir
	ActionCreateEmptyFile
	ActionCreateEmptyDir
)

type ImageConfig

type ImageConfig struct {
	Image string `mapstructure:"image"`
	Tag   string `mapstructure:"tag"`
}

type InstallAction

type InstallAction struct {
	Action      ActionType
	Source      string
	Destination string
	Template    bool
	Mode        os.FileMode
}

type RendererConfig

type RendererConfig struct {
	// Output directories
	ReadOnlyConfigOutputDir  string `mapstructure:"readonly-config-dir"`
	WriteableConfigOutputDir string `mapstructure:"writeable-config-dir"`
	QuadletFilesOutputDir    string `mapstructure:"quadlet-dir"`
	SystemdUnitOutputDir     string `mapstructure:"systemd-dir"`
	BinOutputDir             string `mapstructure:"bin-dir"`

	FlightctlServicesTagOverride string `mapstructure:"flightctl-services-tag-override"`
	FlightctlUiTagOverride       bool   `mapstructure:"flightctl-ui-tag-override"`

	// Images
	Api               ImageConfig `mapstructure:"api"`
	Periodic          ImageConfig `mapstructure:"periodic"`
	Worker            ImageConfig `mapstructure:"worker"`
	AlertExporter     ImageConfig `mapstructure:"alert-exporter"`
	CliArtifacts      ImageConfig `mapstructure:"cli-artifacts"`
	AlertmanagerProxy ImageConfig `mapstructure:"alertmanager-proxy"`
	PamIssuer         ImageConfig `mapstructure:"pam-issuer"`
	Ui                ImageConfig `mapstructure:"ui"`
	DbSetup           ImageConfig `mapstructure:"db-setup"`
	Db                ImageConfig `mapstructure:"db"`
	Kv                ImageConfig `mapstructure:"kv"`
	Alertmanager      ImageConfig `mapstructure:"alertmanager"`
}

func NewRendererConfig

func NewRendererConfig() *RendererConfig

func (*RendererConfig) ApplyFlightctlServicesTagOverride

func (config *RendererConfig) ApplyFlightctlServicesTagOverride(log logrus.FieldLogger)

Jump to

Keyboard shortcuts

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