migration

package
v4.4.0-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffStringMap

func DiffStringMap(old, new map[string]string) map[string]Diff

DiffStringMap creates a diff between the two maps.

func MigrateEnv

func MigrateEnv() map[string]Diff

MigrateEnv migrates the currently set environment variables and returns the diff.

Types

type Diff

type Diff struct {
	Old string `yaml:"old,omitempty"`
	New string `yaml:"new"` // new is intentionally not omitempty to show change
}

Diff holds the difference between two strings.

type Migration

type Migration struct {
	Name       string
	TileScript string
	GoFunc     func(env map[string]string)
}

Migration holds the information necessary to modify the values in the tile.

func DeleteWhitelistKeys

func DeleteWhitelistKeys() Migration

DeleteWhitelistKeys removes the whitelist keys used prior to 4.0

func FullMigration

func FullMigration() Migration

FullMigration holds the complete migration path.

func NoOp

func NoOp() Migration

NoOp is an empty migration.

Jump to

Keyboard shortcuts

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