migrations

package
v4.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 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