migrations

package
v1.29.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotApplicable = errors.New("no migration applied")
View Source
var GeneralMigrations []GeneralMigrationFunc
View Source
var PluginMigrations = make(map[string]PluginMigrationFunc)
View Source
var PluginOptionMigrations = make(map[string]PluginOptionMigrationFunc)

Functions

func AddGeneralMigration added in v1.29.0

func AddGeneralMigration(f GeneralMigrationFunc)

func AddPluginMigration

func AddPluginMigration(name string, f PluginMigrationFunc)

func AddPluginOptionMigration added in v1.29.0

func AddPluginOptionMigration(name string, f PluginOptionMigrationFunc)

func AsStringSlice added in v1.29.0

func AsStringSlice(raw interface{}) ([]string, error)

func CreateTOMLStruct

func CreateTOMLStruct(category, name string) pluginTOMLStruct

Types

type GeneralMigrationFunc added in v1.29.0

type GeneralMigrationFunc func(string, string, *ast.Table) ([]byte, string, error)

type PluginMigrationFunc

type PluginMigrationFunc func(*ast.Table) ([]byte, string, error)

type PluginOptionMigrationFunc added in v1.29.0

type PluginOptionMigrationFunc PluginMigrationFunc

Jump to

Keyboard shortcuts

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