renderer

package
v1.3.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 8 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
	ShadowFileMode     os.FileMode = 0600 // Shadow files (password hashes) - root only
)

Variables

View Source
var (
	DefaultServiceConfigPath = "/etc/flightctl/service-config.yaml"
	DefaultAAPClientIDPath   = "/etc/flightctl/pki/aap-client-id"
	DefaultAuthCACertPath    = "/etc/flightctl/pki/auth/ca.crt"
)

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
	ActionCopyBinary
	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"`
	VarTmpOutputDir          string `mapstructure:"var-tmp-dir"`
	VarLibOutputDir          string `mapstructure:"var-lib-dir"`

	// Source directories for binary search
	BinSourceDirs []string `mapstructure:"bin-source-dirs"`

	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"`
	ImagebuilderApi    ImageConfig `mapstructure:"imagebuilder-api"`
	ImagebuilderWorker ImageConfig `mapstructure:"imagebuilder-worker"`
	Grafana            ImageConfig `mapstructure:"grafana"`
	Prometheus         ImageConfig `mapstructure:"prometheus"`
	TelemetryGateway   ImageConfig `mapstructure:"telemetry-gateway"`
	UserinfoProxy      ImageConfig `mapstructure:"userinfo-proxy"`
	Gateway            ImageConfig `mapstructure:"gateway"`
	RemoteAccess       ImageConfig `mapstructure:"remote-access"`
}

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