Documentation
¶
Index ¶
- func ApplyRequestedRuntimeIdentity(ctx context.Context, cfg *RuntimeIdentityConfig) error
- func CleanupUnknownSettings(ctx context.Context, settingsMgr SettingsPruner)
- func EnsureEncryptionKey(ctx context.Context, cfg *RuntimeConfig, ...)
- func InitializeAutoLogin(ctx context.Context, cfg *RuntimeConfig)
- func InitializeDefaultSettings(ctx context.Context, cfg *RuntimeConfig, settingsMgr SettingsManager)
- func InitializeNonAgentFeatures(ctx context.Context, cfg *RuntimeConfig, ...)
- func LoadAgentToken(ctx context.Context, cfg *RuntimeConfig, ...)
- func MigrateGitOpsSyncIntervals(ctx context.Context, ...)
- func MigrateSchedulerCronValues(ctx context.Context, ...)
- func TestDockerConnection(ctx context.Context, testFunc func(context.Context) error)
- type IntervalMigrationItem
- type RuntimeConfig
- type RuntimeIdentityConfig
- type SettingsManager
- type SettingsPruner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRequestedRuntimeIdentity ¶
func ApplyRequestedRuntimeIdentity(ctx context.Context, cfg *RuntimeIdentityConfig) error
ApplyRequestedRuntimeIdentity switches the current process to the configured runtime UID/GID before the rest of the app initializes.
func CleanupUnknownSettings ¶
func CleanupUnknownSettings(ctx context.Context, settingsMgr SettingsPruner)
func EnsureEncryptionKey ¶
func InitializeAutoLogin ¶
func InitializeAutoLogin(ctx context.Context, cfg *RuntimeConfig)
func InitializeDefaultSettings ¶
func InitializeDefaultSettings(ctx context.Context, cfg *RuntimeConfig, settingsMgr SettingsManager)
func InitializeNonAgentFeatures ¶
func InitializeNonAgentFeatures( ctx context.Context, cfg *RuntimeConfig, createAdminFunc func(context.Context) error, reconcileDefaultAdminAPIKeyFunc func(context.Context) error, autoLoginInitFunc func(context.Context) error, migrateOidcFunc func(context.Context) error, migrateDiscordFunc func(context.Context) error, )
func LoadAgentToken ¶
Types ¶
type IntervalMigrationItem ¶
type RuntimeConfig ¶
type RuntimeIdentityConfig ¶ added in v1.19.0
type RuntimeIdentityConfig struct {
PUID string
PGID string
DockerHost string
DockerConfig string
DatabaseURL string
}
RuntimeIdentityConfig contains the config-backed environment values used to switch the process runtime identity before the application initializes.
type SettingsManager ¶
type SettingsPruner ¶
Click to show internal directories.
Click to hide internal directories.