provisioning

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportConfig

func ExportConfig(ctx context.Context, db *sqlite.DB) (*config.ProvisioningConfig, error)

ExportConfig reads the current database state and produces a ProvisioningConfig. Passwords are replaced with secret_ref placeholders (never exported).

func Reconcile

func Reconcile(ctx context.Context, cfg *config.ProvisioningConfig, db *sqlite.DB, chMgr *clickhouse.Manager, log *slog.Logger, adminEmails []string) error

Reconcile applies the provisioning config to the database. It runs in a single SQLite write transaction. On dry_run, the transaction is rolled back. adminEmails is used to determine global admin role precedence.

func ResolveSecrets

func ResolveSecrets(cfg *config.ProvisioningConfig)

ResolveSecrets resolves password values from environment variables. Must be called after ValidateConfig.

func ValidateConfig

func ValidateConfig(cfg *config.ProvisioningConfig) error

ValidateConfig checks the provisioning config for internal consistency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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