renderer

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`

	// 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