migrations

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateKeys

func UpdateKeys(config configx.Values, m map[string]string) error

UpdateKeys replace a key with a new one

func UpdateVals

func UpdateVals(config configx.Values, m map[string]string) (bool, error)

UpdateVals replace a val with a new one

func UpgradeConfigsIfRequired

func UpgradeConfigsIfRequired(config configx.Values, targetVersion *version.Version) (bool, error)

UpgradeConfigsIfRequired applies all registered configMigration functions Returns true if there was a change and save is required, error if something nasty happened

Types

type ReplacerFunc

type ReplacerFunc func(map[string]interface{}) map[string]interface{}

Jump to

Keyboard shortcuts

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