Documentation
¶
Index ¶
- func CleanupUnknownSettings(ctx context.Context, settingsMgr SettingsPruner)
- func Contains(slice []string, item string) bool
- func DerefString(p *string) string
- func EnsureEncryptionKey(ctx context.Context, cfg *config.Config, ...)
- func ExtractCategoryMetadata(model any, categoryIDsInOrder []string) map[string]map[string]string
- func InitializeAutoLogin(ctx context.Context, cfg *config.Config)
- func InitializeDefaultSettings(ctx context.Context, cfg *config.Config, settingsMgr SettingsManager)
- func InitializeNonAgentFeatures(ctx context.Context, cfg *config.Config, ...)
- func LoadAgentToken(ctx context.Context, cfg *config.Config, ...)
- func MigrateGitOpsSyncIntervals(ctx context.Context, ...)
- func MigrateSchedulerCronValues(ctx context.Context, ...)
- func ParseKeywords(keywordsStr string) []string
- func ParseMetaTag(tag string) map[string]string
- func TestDockerConnection(ctx context.Context, testFunc func(context.Context) error)
- func UpdateIfChanged(target any, value any) bool
- type IntervalMigrationItem
- type SettingsManager
- type SettingsPruner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupUnknownSettings ¶
func CleanupUnknownSettings(ctx context.Context, settingsMgr SettingsPruner)
func DerefString ¶
func EnsureEncryptionKey ¶
func ExtractCategoryMetadata ¶
ExtractCategoryMetadata extracts category metadata from struct fields with catmeta tags Returns a map of category ID to category metadata in field order
func InitializeDefaultSettings ¶
func InitializeDefaultSettings(ctx context.Context, cfg *config.Config, settingsMgr SettingsManager)
func LoadAgentToken ¶
func ParseKeywords ¶
ParseKeywords parses a comma-separated keywords string into a slice Returns an empty slice if the input is empty or contains only whitespace
func ParseMetaTag ¶
ParseMetaTag parses a struct tag meta value formatted as `k=v;other=val;...` Returns a map of key-value pairs extracted from the tag
func TestDockerConnection ¶
func UpdateIfChanged ¶
UpdateIfChanged updates the target value if it differs from the new value. It returns true if an update occurred. Supported types: *string, *bool, **string. For *string and *bool targets, if the value is a pointer of the same type, the update only happens if the value pointer is not nil.